/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: all 0.3s ease;
}

/* CSS Variables for Theme */
:root {
    --primary-color: #20B2AA;
    --primary-dark: #008B8B;
    --secondary-color: #48CAE4;
    --accent-color: #00CED1;
    --bg-color: #0A0A0A;
    --surface-color: #1A1A1A;
    --text-color: #FFFFFF;
    --text-secondary: #B0B0B0;
    --border-color: #333333;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Light Theme */
body.light-theme {
    --bg-color: #F8F9FA;
    --surface-color: #FFFFFF;
    --text-color: #2C2C2C;
    --text-secondary: #6C757D;
    --border-color: #E9ECEF;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow);
}

body.light-theme .btn-primary {
    background: #000000;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(32, 178, 170, 0.4);
}

body.light-theme .btn-primary:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

body.light-theme .btn-secondary {
    background: transparent;
    color: #000000;
    border: 2px solid #000000;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

body.light-theme .btn-secondary:hover {
    background: #000000;
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

body.light-theme .navbar {
    background: rgba(248, 249, 250, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo {
    width: 25vw;
    height: auto;
    max-width: 200px;
    filter: invert(0);
    transition: filter 0.3s ease;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    border-radius: 1px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-icon {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background: var(--gradient);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: 0.3s;
    border-radius: 2px;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    animation: slow-panorama 30s linear infinite alternate;
}

/* Background images for slides */
.hero-slide:nth-child(1) {
    background-image: url('../../../assets/images/gallery/portfolio-01.jpg');
}

.hero-slide:nth-child(2) {
    background-image: url('../../../assets/images/gallery/portfolio-02.jpg');
}

.hero-slide:nth-child(3) {
    background-image: url('../../../assets/images/gallery/portfolio-03.jpg');
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

body.light-theme .hero-slide::after {
    background: rgba(255, 255, 255, 0.6);
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

body.light-theme .hero-overlay {
    color: #2C2C2C;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-title .accent {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-theme .hero-title .accent {
    background: #000000;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

body.light-theme .hero-subtitle {
    color: rgba(44, 44, 44, 0.8);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

body.light-theme .stat-number {
    color: #000000;
}

.stat-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

body.light-theme .stat-text {
    color: rgba(44, 44, 44, 0.7);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: white;
    text-align: center;
    animation: bounce 2s infinite;
}

body.light-theme .hero-scroll {
    color: #2C2C2C;
}

.hero-scroll i {
    display: block;
    margin-top: 5px;
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Panorama effect for desktop */
@keyframes slow-panorama {
    0% {
        background-position: 40% center;
    }
    100% {
        background-position: 60% center;
    }
}

/* Pause animation on hover */
.hero:hover .hero-slide {
    animation-play-state: paused;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--surface-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
    text-align: left;
}

.service-card li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background: var(--bg-color);
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 2rem;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.gallery-actions {
    text-align: center;
}

/* About Section with background image */
.about {
    padding: 100px 0;
    background: var(--surface-color);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/images/gallery/portfolio-01.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.1;
    z-index: 0;
}

body.light-theme .about::before {
    opacity: 0.05;
}

.about-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.features {
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.feature i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.feature h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.about-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
}

/* Process Section */
.process {
    padding: 100px 0;
    background: var(--bg-color);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    position: relative;
    padding: 2rem;
    background: var(--surface-color);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    position: relative;
}

.step:not(:last-child) .step-number::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 50px;
    height: 2px;
    background: var(--gradient);
    transform: translateY(-50%);
}

.step h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.step p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Delivery & Warranty Section */
.delivery-warranty {
    padding: 100px 0;
    background: var(--surface-color);
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: transparent;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: none;
    transition: all 0.3s ease;
}

.info-icon {
    width: auto;
    height: auto;
    margin: 0 auto 1.5rem;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon img {
    width: 60px;
    height: 60px;
    filter: brightness(0) saturate(100%) invert(64%) sepia(85%) saturate(2498%) hue-rotate(158deg) brightness(91%) contrast(85%);
}

/* Black icons in light theme */
body.light-theme .info-icon img {
    filter: brightness(0);
}

.info-card h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.info-card ul {
    list-style: none;
    text-align: left;
}

.info-card li {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5;
}

.info-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Contacts Section */
.contacts {
    padding: 100px 0;
    background: var(--bg-color);
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-details h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-details p,
.contact-details a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-color);
}

.contact-form-wrapper {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.contact-form h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Footer */
.footer {
    background: var(--surface-color);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 25vw;
    height: auto;
    max-width: 200px;
    filter: invert(0);
    transition: filter 0.3s ease;
}

/* Invert logo in footer in light theme */
body.light-theme .footer-logo img {
    filter: invert(1);
}

.footer-logo span {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Logo in burger menu */
.nav-menu-logo {
    display: none;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    width: 100%;
}

.burger-logo {
    width: 80%;
    max-width: 200px;
    height: auto;
    filter: brightness(0);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--surface-color);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary-color);
}

.modal-content h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* RESPONSIVE DESIGN - ИСПРАВЛЕННЫЕ СТИЛИ */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Fixed Navigation Menu */
.nav-menu {
    position: fixed;
    top: 45px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--surface-color);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0 1rem 2rem 1rem;
    transition: left 0.3s ease;
    border-top: none;
    overflow-y: auto;
    margin-top: -1px;
}
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin-bottom: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        padding: 0.8rem;
        font-size: 1.1rem;
    }
    
    .nav-menu-logo {
        display: block;
    }
    
    .burger {
        display: flex;
    }
    
    .nav-logo {
        font-size: 1.2rem;
    }
    
    .logo {
        width: 120px;
        max-width: 120px;
    }
    
    .nav-controls {
        order: -1;
        margin-right: 1rem;
    }
    
    /* Hero Section - ПОЛНОСТЬЮ ПЕРЕРАБОТАННАЯ */
    .hero {
        height: 100vh;
        padding: 0 15px;
    }
    
    .hero-slide {
        background-size: cover;
        background-position: center center;
        animation: mobile-panorama 20s linear infinite alternate;
    }
    
    /* Mobile panorama animation */
    @keyframes mobile-panorama {
        0% {
            background-position: 20% center;
        }
        100% {
            background-position: 80% center;
        }
    }
    
    .hero-overlay {
        max-width: 100%;
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }
    
    /* Fixed Hero Stats Layout */
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-bottom: 2rem;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-stats .stat:nth-child(3) {
        grid-column: 1 / -1;
        justify-self: center;
    }
    
    .stat-number {
        font-size: 2rem;
        margin-bottom: 0.3rem;
    }
    
    .stat-text {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    /* Fixed Hero Buttons */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        margin-bottom: 2rem;
    }
    
    .hero-buttons .btn {
        min-width: 200px;
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    /* Hero Scroll - Fixed Position */
    .hero-scroll {
        bottom: 80px;
        font-size: 0.9rem;
    }
    
    /* Typography - Mobile */
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    /* Sections Padding - Mobile */
    .services,
    .gallery,
    .about,
    .process,
    .delivery-warranty,
    .contacts {
        padding: 60px 0;
    }
    
    /* Services Section - Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
        margin: 0 auto;
        max-width: 400px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }
    
    .service-card li {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    /* Gallery Section - Mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-item {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .gallery-filter {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.8rem;
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-width: auto;
    }
    
    .gallery-overlay {
        padding: 1.5rem;
    }
    
    .gallery-overlay h4 {
        font-size: 1.1rem;
    }
    
    .gallery-overlay p {
        font-size: 0.85rem;
    }
    
    /* About Section - ПОЛНОСТЬЮ ПЕРЕРАБОТАННАЯ */
    .about::before {
        background-attachment: scroll; /* Fixed для мобильных */
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }
    
    .about-text {
        order: 1;
    }
    
    .about-image {
        order: 2;
    }
    
    .about-text h2 {
        text-align: center;
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .about-text p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .feature {
        margin-bottom: 1.2rem;
        align-items: flex-start;
    }
    
    .feature i {
        font-size: 1.1rem;
        margin-top: 0.3rem;
        flex-shrink: 0;
    }
    
    .feature h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .feature p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .about-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .about-image img {
        height: 250px;
        width: 100%;
        object-fit: cover;
        border-radius: 12px;
    }
    
    /* Process Section - Mobile */
    .steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .step {
        padding: 1.5rem;
        text-align: center;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .step:not(:last-child) .step-number::after {
        display: none;
    }
    
    .step h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .step p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Delivery & Warranty - Mobile */
    .info-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-card {
        padding: 1.5rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .info-icon img {
        width: 50px;
        height: 50px;
    }
    
    .info-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .info-card li {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
        line-height: 1.4;
    }
    
    /* Contacts Section - Mobile */
    .contacts-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-item {
        margin-bottom: 1.5rem;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        flex-shrink: 0;
    }
    
    .contact-icon i {
        font-size: 1.1rem;
    }
    
    .contact-details h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .contact-details p,
    .contact-details a {
        font-size: 0.9rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
        margin-top: 1rem;
    }
    
    .contact-form h3 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }
    
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 0.95rem;
    }
    
    /* Footer - Mobile */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-logo img {
        width: 150px;
        max-width: 150px;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        font-size: 0.85rem;
        padding-top: 1.5rem;
    }
    
    /* Modal - Mobile */
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .modal-content h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .modal-form input,
    .modal-form select,
    .modal-form textarea {
        padding: 10px;
        font-size: 0.95rem;
    }
}

/* ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ОЧЕНЬ МАЛЕНЬКИХ ЭКРАНОВ */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    /* Hero - Small Mobile */
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-stats {
        max-width: 280px;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-text {
        font-size: 0.8rem;
    }
    
    .hero-buttons .btn {
        min-width: 180px;
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    /* Typography - Small Mobile */
    .section-title {
        font-size: 1.7rem;
        padding: 0 0.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
    
    /* Navigation - Small Mobile */
    .logo {
        width: 100px;
        max-width: 100px;
    }
    
    .nav-logo {
        font-size: 1rem;
    }
    
    .nav-link {
        font-size: 1rem;
    }
    
    /* Cards - Small Mobile */
    .service-card,
    .info-card {
        padding: 1.2rem;
        margin: 0 0.5rem;
    }
    
    .service-card h3,
    .info-card h3 {
        font-size: 1.1rem;
    }
    
    .service-card p,
    .info-card li {
        font-size: 0.85rem;
    }
    
    /* Gallery - Small Mobile */
    .gallery-filter {
        padding: 0 0.5rem;
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    /* About - Small Mobile */
    .about-text h2 {
        font-size: 1.7rem;
        padding: 0 0.5rem;
    }
    
    .about-text p {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
    
    .feature h4 {
        font-size: 0.95rem;
    }
    
    .feature p {
        font-size: 0.85rem;
    }
    
    /* Process - Small Mobile */
    .step {
        padding: 1.2rem;
    }
    
    .step h3 {
        font-size: 1rem;
    }
    
    .step p {
        font-size: 0.85rem;
    }
    
    /* Footer - Small Mobile */
    .footer-logo img {
        width: 120px;
        max-width: 120px;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.85rem;
    }
    
    /* Modal - Small Mobile */
    .modal-content {
        padding: 1.2rem;
        margin: 5% auto;
    }
    
    .close {
        font-size: 24px;
        top: 10px;
        right: 15px;
    }
}

/* ИСПРАВЛЕНИЯ ДЛЯ ПЛАНШЕТОВ */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .contacts-content {
        gap: 3rem;
    }
}