
        /* === ОБЩИЕ СТИЛИ === */
        html {
            scroll-behavior: smooth;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #121212;
            color: white;
            line-height: 1.6;

        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        /* === ШАПКА === */
        header {
            background-color: #0a0a0a;
            padding: 15px 0;
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
            position: relative;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
        }

        .logo img {
            width: 80px;
            height: 80px;
            border-radius: 10%;
        }

        .logo span {
            font-size: 25px;
            font-weight: bold;
        }

        .logo-link {
            text-decoration: none;
            color: white;
        }

        .logo-link .logo span {
            font-size: 25px;
            font-weight: bold;
        }

        /* === ГЕРО-СЕКЦИЯ === */
        .hero {
            background-color: #121212;
            background-image: url('../img/background.webp');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            height: 700px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: white;
        }

        .hero h1 {
            font-size: 3rem;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        }

        /* === О нас === */
        .about {
            display: flex;
            padding: 60px 20px;
            margin-top: 100px;
            margin-bottom: 140px;
            scroll-margin-top: 210px;
            text-align: center;
        }

        .about h2 {
            font-size: 2.5rem;
            margin-bottom: 30px;
        }

        .about-text {
            background-color: rgba(30, 30, 30, 0.85);
            /* темнее и менее прозрачно */
            padding: 30px;
            border-radius: 12px;
            max-width: 800px;
            margin: 40px auto 0;
            font-size: 1.1rem;
            color: #f0f0f0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            text-align: justify;
        }

        /* === УСЛУГИ === */
        .services {
            padding: 80px 20px;
            text-align: center;
            scroll-margin-top: 100px;
        }

        .services h2 {
            font-size: 2.5rem;
            margin-bottom: 40px;
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin-top: 40px;
        }

        .service-card {
            background-color: #1e1e1e;
            padding: 25px;
            border-radius: 10px;
            text-align: center;
            transition: transform 0.3s;
            min-height: 200px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .service-card:hover {
            transform: translateY(-5px);
        }

        .service-card i {
            font-size: 2.5rem;
            margin-bottom: 15px;
            display: block;
            color: #ad8158;
        }

        .service-card h3 {
            font-size: 1.3rem;
            margin-bottom: 10px;
        }

        .service-card p {
            font-size: 0.9rem;
            color: #ccc;
            line-height: 1.4;
        }

        /* === ПОРТФОЛИО === */
        .portfolio {
            padding: 80px 20px;
            text-align: center;
            scroll-margin-top: 100px;
        }

        /* === ПОРТФОЛИО === */
        .portfolio-categories-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0;
            margin-top: 30px;
        }

        .category-card {
            position: relative;
            display: block;
            background-color: #1e1e1e;
            border-radius: 8px;
            overflow: hidden;
            /* КЛЮЧЕВОЙ ЭЛЕМЕНТ */
            text-decoration: none;
            color: white;
            transition: transform 0.3s, box-shadow 0.3s;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
            height: 280px;
            width: 100%;
        }

        .category-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            display: block;
            transition: transform 0.3s;
        }

        .category-card:hover img {
            transform: scale(1.03);
        }

        .category-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
            padding: 15px;
            text-align: center;
        }

        .category-overlay h3 {
            font-size: 1.2rem;
            margin: 0;
            font-weight: bold;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
        }


        /* === МОБИЛЬНЫЕ УСТРОЙСТВА === */
        @media (max-width: 768px) {
            .portfolio-categories-grid {
                grid-template-columns: 1fr;
                gap: 0;
            }

            .category-card {
                height: 240px;
            }

            .category-overlay h3 {
                font-size: 1.1rem;
            }
        }

        .portfolio h2 {
            font-size: 2.5rem;
            margin-bottom: 40px;
        }

        .portfolio-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 16px;
            margin-top: 20px;
        }


        /* === КОНТАКТЫ === */
        .contact {
            padding: 80px 20px;
            text-align: center;
            scroll-margin-top: 100px;
        }

        .contact h2 {
            font-size: 2.5rem;
            margin-bottom: 10px;
        }

        .contact p {
            color: #ccc;
            margin-bottom: 40px;
        }

        .contact-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }

        .contact-card {
            background-color: #1e1e1e;
            padding: 25px;
            border-radius: 10px;
            text-align: center;
            min-height: 200px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .contact-card i {
            font-size: 2.5rem;
            margin-bottom: 15px;
            display: block;
        }

        .contact-card h3 {
            font-size: 1.2rem;
            margin-bottom: 10px;
        }

        .contact-card p {
            font-size: 0.9rem;
            color: #cccccc;
            line-height: 1.4;
        }

        .contact-card a {
            color: #ad8158;
            text-decoration: none;
            font-weight: bold;
            font-size: 1rem;
            padding: 8px 16px;
            border-radius: 5px;
            display: inline-block;
            margin-top: 10px;
        }

        .contact-card a:hover {
            text-decoration: underline;
            background-color: rgba(173, 129, 88, 0.15);
        }

        /* === ФУТЕР === */
        footer {
            background-color: #0a0a0a;
            padding: 30px 20px;
            text-align: center;
            border-top: 1px solid #333;
        }

        .footer-logo {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-bottom: 20px;
        }

        .footer-logo img {
            width: 80px;
            height: 80px;
            border-radius: 10%;
        }

        .footer-logo span {
            font-size: 25px;
            font-weight: bold;
        }

        .copyright {
            color: #888;
            font-size: 0.9rem;
        }

        /* === МЕНЮ ПО ЦЕНТРУ === */
        .main-nav {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
        }

        .main-nav ul {
            display: flex;
            list-style: none;
            gap: 24px;
            margin: 0;
            padding: 0;
        }

        .main-nav a {
            color: white;
            text-decoration: none;
            font-size: 18px;
            font-weight: 500;
            transition: color 0.3s;
        }

        .main-nav a:hover {
            color: #ad8158;
        }

        /* === БУРГЕР-МЕНЮ === */
        .menu-toggle {
            display: none;
            position: relative;
            width: 30px;
            height: 21px;
            cursor: pointer;
            margin-left: auto;
        }

        .menu-toggle span {
            position: absolute;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: white;
            transition: all 0.3s ease;
        }

        .menu-toggle span:nth-child(1) {
            top: 0;
        }

        .menu-toggle span:nth-child(2) {
            top: 9px;
        }

        .menu-toggle span:nth-child(3) {
            top: 18px;
        }

        .menu-toggle.active span:nth-child(1) {
            transform: rotate(45deg);
            top: 9px;
            left: 0;
            width: 100%;
        }

        .menu-toggle.active span:nth-child(2) {
            opacity: 0;
        }

        .menu-toggle.active span:nth-child(3) {
            transform: rotate(-45deg);
            top: 9px;
            left: 0;
            width: 100%;
        }

        /* Мобильное меню */
        .mobile-nav {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background-color: #0a0a0a;
            padding: 20px 0;
            z-index: 999;
        }

        .mobile-nav ul {
            display: flex;
            flex-direction: column;
            align-items: center;
            list-style: none;
            margin: 0;
            padding: 0;
            gap: 20px;
        }

        .mobile-nav a {
            color: white;
            text-decoration: none;
            font-size: 18px;
            font-weight: 500;
        }

        .mobile-nav a:hover {
            color: #ad8158;
        }

        /* АДАПТИВНОСТЬ СМАРТФОН */
        @media (max-width: 768px) {
            .hero {
                height: 450px;
            }

            .hero h1 {
                font-size: 1.8rem;
            }

            .services h2 {
                font-size: 1.8rem;
            }

            .portfolio h2 {
                font-size: 1.8rem;
            }

            .services {
                scroll-margin-top: 50px;
                margin-top: 5px;
            }

            .portfolio {
                scroll-margin-top: 50px;
                margin-top: 5px;
            }

            .portfolio-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .contact h2 {
                font-size: 1.8rem;
            }

            .contact {
                scroll-margin-top: 50px;
                margin-top: 5px;
            }

            .service-card h3 {
                font-size: 1.2rem;
            }

            .contact-card a {
                font-size: 0.9rem;
                padding: 6px 12px;
            }

            .footer-logo span {
                font-size: 18px;
            }

            .logo-link .logo img {
                width: 80px;
                height: 80px;
            }

            .logo-link .logo span {
                font-size: 18px;
            }

            .main-nav {
                display: none;
            }

            .menu-toggle {
                display: flex;
            }

            .mobile-nav.active {
                display: block;
            }

            .about {
                padding: 60px 15px 35px;
                margin-bottom: 60px;
                margin-top: 70px;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                min-height: auto;
                scroll-margin-top: 150px;
            }

            .about h2 {
                font-size: 1.8rem;
                margin-bottom: 20px;
            }

            .about-text {
                padding: 20px 15px;
                font-size: 1rem;
                margin: 20px auto 0;
                max-width: 100%;
                text-align: justify;
            }
        }

        @media (min-width: 769px) and (max-width: 1024px) {
            .header-content {
                padding: 0 15px;
                flex-wrap: wrap;
            }

            .logo-link {
                margin-right: auto;
            }

            .main-nav {
                position: static;
                transform: none;
                width: auto;
                margin: 0;
                order: 1;
            }

            .main-nav ul {
                gap: 16px;
            }

            .main-nav a {
                font-size: 16px;
            }

            .menu-toggle {
                display: none;
            }

            .portfolio-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }
