@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

:root {
    --primary: #262476;
    --primary-dark: #19174f;
    --primary-light: #4d4aa2;
    --accent: #9b7348;
    --accent-dark: #7e5b34;
    --accent-light: #dcc4a6;
    --bg-light: #efeff2;
    --bg-white: #faf8f4;
    --bg-dark: #12131b;
    --text-dark: #111111;
    --text-medium: #4c4a52;
    --text-light: #7c7783;
    --text-white: #fffdf9;
    --border: #d8d6dd;
    --shadow: rgba(25, 23, 79, 0.14);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow);
}

.btn-accent {
    background: var(--accent);
    color: var(--text-white);
}

.btn-accent:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(126, 91, 52, 0.18);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-white);
}

.section {
    padding: 80px 0;
}

.section-light {
    background: var(--bg-light);
}

.section-dark {
    background: var(--primary-dark);
    color: var(--text-white);
}

.section-title {
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-dark .section-title {
    color: var(--text-white);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-medium);
    margin-bottom: 48px;
    max-width: 600px;
}

.section-dark .section-subtitle {
    color: var(--accent-light);
}

/* ===== HEADER ===== */

.header {
    background: var(--bg-white);
    box-shadow: 0 10px 28px rgba(17,17,17,0.05);
    border-bottom: 1px solid rgba(38,36,118,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary-dark);
    color: var(--text-white);
    font-size: 13px;
    padding: 8px 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top a {
    color: var(--accent-light);
}

.header-top a:hover {
    color: var(--accent);
}

.header-main {
    padding: 16px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: var(--text-dark);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 12px 24px rgba(25,23,79,0.2);
}

.logo span {
    color: var(--accent);
}

.header-phone {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-dark);
}

.header-phone small {
    display: block;
    font-weight: 400;
    font-size: 12px;
    color: var(--text-light);
}

/* Navigation */

.nav {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 0;
}

.nav-list a {
    display: block;
    padding: 14px 20px;
    color: var(--text-white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    transition: background var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
    background: rgba(255,255,255,0.08);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 24px;
    cursor: pointer;
    padding: 14px 20px;
}

/* ===== HERO ===== */

.hero {
    background:
        radial-gradient(circle at 78% 18%, rgba(77,74,162,0.22), transparent 28%),
        linear-gradient(135deg, var(--primary-dark) 0%, #211f67 55%, var(--primary) 100%);
    color: var(--text-white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1558618666-fcd25c85f82e?w=800') center/cover;
    opacity: 0.16;
    mask-image: linear-gradient(to left, rgba(0,0,0,0.6), transparent);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.6), transparent);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    max-width: 650px;
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 20px;
    max-width: 500px;
    margin-bottom: 36px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.18);
}

.hero-stat strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
}

.hero-stat span {
    font-size: 14px;
    opacity: 0.8;
}

/* ===== ADVANTAGES ===== */

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.advantage-card {
    background: var(--bg-white);
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow);
    border-color: var(--primary-light);
}

.advantage-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: var(--primary);
}

.advantage-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.advantage-card p {
    font-size: 14px;
    color: var(--text-medium);
}

/* ===== CATALOG CATEGORIES ===== */

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.catalog-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 280px;
    cursor: pointer;
}

.catalog-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.catalog-card:hover img {
    transform: scale(1.05);
}

.catalog-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(18,19,27,0.9));
    color: var(--text-white);
}

.catalog-card-overlay h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.catalog-card-overlay span {
    font-size: 13px;
    opacity: 0.8;
}

/* ===== SERVICES ===== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px var(--shadow);
}

.service-card-img {
    height: 200px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--primary);
}

.service-card-body {
    padding: 24px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 16px;
}

.service-card ul {
    list-style: none;
    margin-bottom: 20px;
}

.service-card li {
    padding: 4px 0;
    font-size: 14px;
    color: var(--text-medium);
    padding-left: 20px;
    position: relative;
}

.service-card li::before {
    content: '\2714';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 12px;
}

.service-list {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.service-list li {
    padding: 8px 0 8px 28px;
    font-size: 15px;
    color: var(--text-medium);
    position: relative;
    border-bottom: 1px solid var(--border);
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li::before {
    content: '\2714';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
}

/* ===== PORTFOLIO ===== */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.portfolio-card {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    height: 320px;
    cursor: pointer;
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover img {
    transform: scale(1.05);
}

.portfolio-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(18,19,27,0.92));
    color: var(--text-white);
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition);
}

.portfolio-card:hover .portfolio-card-info {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-card-info h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.portfolio-card-info p {
    font-size: 13px;
    opacity: 0.8;
}

/* ===== CTA BANNER ===== */

.cta-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--text-white);
    padding: 60px 0;
    text-align: center;
}

.cta-banner h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.cta-banner p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

/* ===== CONTACT FORM ===== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
}

.contact-info-item h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.contact-info-item p {
    font-size: 14px;
    color: var(--text-medium);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    transition: border-color var(--transition);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(38,36,118,0.12);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* ===== FOOTER ===== */

.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about .logo {
    margin-bottom: 16px;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: background var(--transition);
}

.footer-socials a:hover {
    background: var(--primary);
}

.footer h4 {
    color: var(--text-white);
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 14px;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

/* ===== PAGE HEADER ===== */

.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--text-white);
    padding: 48px 0;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 8px;
}

.breadcrumbs {
    font-size: 14px;
    opacity: 0.7;
}

.breadcrumbs a {
    color: var(--accent-light);
}

.breadcrumbs a:hover {
    color: var(--accent);
}

/* ===== CATALOG PAGE ===== */

.catalog-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.category-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
}

.category-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 8px 30px var(--shadow);
    transform: translateY(-2px);
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--primary);
}

.category-card ul {
    list-style: none;
}

.category-card li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(38,36,118,0.08);
    font-size: 14px;
    color: var(--text-medium);
}

.category-card li:last-child {
    border-bottom: none;
}

.category-card li a:hover {
    color: var(--primary);
}

/* ===== ABOUT PAGE ===== */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--text-medium);
    line-height: 1.8;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    height: 400px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--primary-light);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item {
    padding: 32px 16px;
}

.stat-item strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
}

.stat-item span {
    font-size: 14px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.tech-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.tech-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--primary);
}

.tech-card p {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.7;
}

/* ===== DELIVERY/PAYMENT ===== */

.info-content {
    max-width: 800px;
}

.info-content h2 {
    font-size: 24px;
    margin: 32px 0 16px;
    color: var(--primary);
}

.info-content h2:first-child {
    margin-top: 0;
}

.info-content p {
    margin-bottom: 16px;
    color: var(--text-medium);
    line-height: 1.8;
}

.info-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.info-content li {
    margin-bottom: 8px;
    color: var(--text-medium);
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.info-table th,
.info-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.info-table th {
    background: var(--bg-light);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--primary);
}

/* ===== SCROLL ANIMATIONS ===== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate {
    opacity: 0;
}

.animate.visible {
    animation-duration: 0.7s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.animate-up.visible {
    animation-name: fadeInUp;
}

.animate-left.visible {
    animation-name: fadeInLeft;
}

.animate-right.visible {
    animation-name: fadeInRight;
}

.animate-scale.visible {
    animation-name: scaleIn;
}

.delay-1 { animation-delay: 0.1s !important; }
.delay-2 { animation-delay: 0.2s !important; }
.delay-3 { animation-delay: 0.3s !important; }
.delay-4 { animation-delay: 0.4s !important; }
.delay-5 { animation-delay: 0.5s !important; }
.delay-6 { animation-delay: 0.6s !important; }

/* ===== PRODUCT CARDS ===== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow);
    border-color: var(--primary-light);
}

.product-card-img {
    height: 180px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.product-card-body {
    padding: 20px;
}

.product-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.product-card p {
    font-size: 13px;
    color: var(--text-medium);
    margin-bottom: 12px;
    line-height: 1.5;
}

.product-card .price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--primary);
}

.product-card .price small {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-light);
}

.product-card .btn {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    font-size: 13px;
}

/* ===== PROJECT DETAIL ===== */

.project-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.project-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.project-gallery-item {
    height: 200px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.project-gallery-item:first-child {
    grid-column: 1 / -1;
    height: 300px;
}

.project-info h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.project-info p {
    color: var(--text-medium);
    margin-bottom: 16px;
    line-height: 1.7;
}

.project-specs {
    list-style: none;
    margin: 20px 0;
}

.project-specs li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.project-specs li strong {
    color: var(--primary);
}

@media (max-width: 768px) {
    .project-detail {
        grid-template-columns: 1fr;
    }

    .project-gallery {
        grid-template-columns: 1fr;
    }

    .project-gallery-item:first-child {
        height: 200px;
    }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero h1 {
        font-size: 36px;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-main .container {
        flex-wrap: wrap;
    }

    .nav-list {
        display: none;
        flex-direction: column;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .catalog-grid,
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid,
    .about-content {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 48px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .advantages-grid,
    .stats-row {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }
}
