﻿/* ================================
   КЛОВЕРТЕКС — главная страница
   Адаптивные стили
   ================================ */

:root {
    --green: #71b52d;
    --green-dark: #4e8e1e;
    --green-soft: #eef7e7;
    --orange: #f29a16;
    --pink: #e60072;
    --blue: #169bd5;
    --dark: #202420;
    --text: #444944;
    --muted: #747a75;
    --light: #f5f6f3;
    --white: #ffffff;
    --border: #e3e7e1;
    --shadow: 0 18px 50px rgba(31, 42, 30, 0.10);
    --radius: 20px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

a {
    color: inherit;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(227, 231, 225, 0.9);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    display: block;
    width: 190px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

    .main-nav a {
        text-decoration: none;
        font-size: 14px;
        font-weight: 700;
        color: var(--dark);
    }

        .main-nav a:not(.login-button):hover {
            color: var(--green-dark);
        }

.login-button {
    padding: 11px 22px;
    border-radius: 999px;
    color: var(--white) !important;
    background: var(--green);
    transition: transform 0.2s ease, background 0.2s ease;
}

    .login-button:hover {
        background: var(--green-dark);
        transform: translateY(-1px);
    }

.menu-toggle,
.menu-button {
    display: none;
}

/* Hero */

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: radial-gradient(circle at 78% 42%, rgba(113, 181, 45, 0.18), transparent 25%), linear-gradient(120deg, #f8faf6 0%, #ffffff 58%, #f0f7ea 100%);
}

    .hero::after {
        content: "";
        position: absolute;
        width: 430px;
        height: 430px;
        right: -140px;
        bottom: -180px;
        border-radius: 50%;
        background: var(--green);
        opacity: 0.10;
    }

.hero-content {
    min-height: 650px;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.eyebrow,
.section-label {
    margin: 0 0 15px;
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.hero h1 {
    margin: 0;
    color: var(--dark);
    font-size: clamp(44px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.hero-description {
    max-width: 610px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    transition: transform 0.2s ease, background 0.2s ease;
}

    .button:hover {
        transform: translateY(-2px);
    }

.button-primary {
    color: var(--white);
    background: var(--green);
}

    .button-primary:hover {
        background: var(--green-dark);
    }

.button-light {
    color: var(--dark);
    background: var(--white);
    border: 1px solid var(--border);
}

.hero-card {
    width: min(100%, 390px);
    min-height: 390px;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow);
    position: relative;
    transform: rotate(-3deg);
}

    .hero-card strong {
        position: relative;
        z-index: 2;
        color: var(--green);
        font-size: 32px;
        letter-spacing: -0.05em;
    }

    .hero-card span {
        position: relative;
        z-index: 2;
        color: var(--muted);
        font-size: 12px;
        letter-spacing: 0.22em;
        text-transform: uppercase;
    }

.paint-dot {
    position: absolute;
    border-radius: 50%;
}

.paint-dot-green {
    width: 130px;
    height: 130px;
    top: 65px;
    left: 35px;
    background: var(--green);
    opacity: 0.22;
}

.paint-dot-orange {
    width: 75px;
    height: 75px;
    right: 45px;
    top: 75px;
    background: var(--orange);
    opacity: 0.28;
}

.paint-dot-pink {
    width: 110px;
    height: 110px;
    right: 45px;
    bottom: 55px;
    background: var(--pink);
    opacity: 0.18;
}

/* Facts */

.facts {
    background: var(--dark);
    color: var(--white);
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.fact {
    min-height: 140px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

    .fact:first-child {
        padding-left: 0;
    }

    .fact:last-child {
        border-right: 0;
    }

    .fact strong {
        color: var(--green);
        font-size: 38px;
        line-height: 1;
    }

    .fact span {
        margin-top: 9px;
        color: #c7cbc7;
        font-size: 13px;
    }

/* Sections */

.section {
    padding: 100px 0;
}

    .section h2,
    .contact-banner h2 {
        margin: 0;
        color: var(--dark);
        font-size: clamp(32px, 4vw, 52px);
        line-height: 1.08;
        letter-spacing: -0.035em;
    }

.section-about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 90px;
}

.about-text {
    max-width: 650px;
    font-size: 17px;
}

    .about-text p {
        margin: 0 0 20px;
    }

        .about-text p:last-child {
            margin-bottom: 0;
        }

/* Products */

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

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 44px;
}

.text-link {
    color: var(--green-dark);
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
}

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

.product-card {
    min-height: 310px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 5px 25px rgba(30, 40, 30, 0.05);
}

    .product-card::after {
        content: "";
        position: absolute;
        width: 150px;
        height: 150px;
        right: -70px;
        bottom: -70px;
        border-radius: 50%;
        opacity: 0.12;
    }

.product-card-green::after {
    background: var(--green);
}

.product-card-orange::after {
    background: var(--orange);
}

.product-card-blue::after {
    background: var(--blue);
}

.product-card-pink::after {
    background: var(--pink);
}

.product-number {
    color: #a2a7a2;
    font-size: 12px;
    font-weight: 800;
}

.product-card h3 {
    margin: 60px 0 12px;
    color: var(--dark);
    font-size: 25px;
}

.product-card p {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 14px;
}

.product-card a {
    position: relative;
    z-index: 2;
    color: var(--green-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

/* Advantages */

.advantages-grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--border);
}

.advantage {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 18px;
    padding: 32px 35px 32px 0;
    border-bottom: 1px solid var(--border);
}

    .advantage:nth-child(even) {
        padding-left: 35px;
        border-left: 1px solid var(--border);
    }

.advantage-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--green-dark);
    background: var(--green-soft);
    font-size: 19px;
    font-weight: 800;
}

.advantage h3 {
    margin: 0 0 7px;
    color: var(--dark);
    font-size: 19px;
}

.advantage p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* Contact banner */

.contact-banner {
    padding: 65px 0;
    background: var(--green);
}

.contact-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.section-label-light {
    color: rgba(255, 255, 255, 0.72);
}

.contact-banner h2 {
    color: var(--white);
}

.contact-banner p:not(.section-label) {
    max-width: 620px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.82);
}

/* Contacts */

.contacts-section {
    background: #fbfcfa;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 100px;
}

.contacts-intro {
    max-width: 560px;
    margin-top: 25px;
    color: var(--muted);
}

.contact-list {
    border-top: 1px solid var(--border);
}

.contact-item {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border);
}

.contact-label {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.contact-item strong,
.contact-item a {
    color: var(--dark);
    text-decoration: none;
    font-size: 15px;
}

/* Footer */

.site-footer {
    color: #c4c9c4;
    background: #181b18;
}

.footer-main {
    min-height: 240px;
    padding: 55px 0 45px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 50px;
}

.footer-brand img {
    width: 175px;
    height: auto;
    display: block;
    margin-bottom: 15px;
    filter: saturate(0.95);
}

.footer-brand p {
    margin: 0;
    color: #929892;
    font-size: 13px;
}

.footer-address span,
.socials > span {
    color: #7f867f;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.footer-address p {
    margin: 12px 0 0;
    line-height: 1.7;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

    .social-links a {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #d7dbd7;
        border: 1px solid #3a403a;
        border-radius: 50%;
        transition: background 0.2s ease, color 0.2s ease;
    }

        .social-links a:hover {
            color: var(--white);
            background: var(--green-dark);
            border-color: var(--green-dark);
        }

    .social-links svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
    }

.footer-bottom {
    min-height: 70px;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #303530;
    color: #737973;
    font-size: 12px;
}

    .footer-bottom a {
        color: #929892;
        text-decoration: none;
    }

/* Responsive */

@media (max-width: 1000px) {
    .main-nav {
        gap: 18px;
    }

        .main-nav a {
            font-size: 13px;
        }

    .hero-content {
        grid-template-columns: 1fr 0.65fr;
        gap: 30px;
    }

    .hero-card {
        width: 310px;
        min-height: 310px;
    }

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

    .about-grid,
    .contacts-grid {
        gap: 50px;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(calc(100% - 30px), var(--container));
    }

    .header-inner {
        min-height: 76px;
    }

    .logo {
        width: 155px;
    }

    .menu-button {
        width: 42px;
        height: 42px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 1px solid var(--border);
        border-radius: 10px;
        cursor: pointer;
    }

        .menu-button span {
            width: 19px;
            height: 2px;
            background: var(--dark);
            border-radius: 2px;
        }

    .menu-toggle {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .main-nav {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        padding: 20px 15px 25px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 15px 30px rgba(20, 30, 20, 0.08);
    }

        .main-nav a {
            padding: 12px 10px;
        }

        .main-nav .login-button {
            text-align: center;
            margin-top: 8px;
        }

    .menu-toggle:checked ~ .main-nav {
        display: flex;
    }

    .hero,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        padding: 75px 0 65px;
        grid-template-columns: 1fr;
    }

    .hero-card {
        width: 260px;
        min-height: 260px;
        margin: 15px auto 0;
    }

        .hero-card strong {
            font-size: 24px;
        }

        .hero-card span {
            font-size: 9px;
        }

    .paint-dot-green {
        width: 90px;
        height: 90px;
        top: 45px;
    }

    .paint-dot-orange {
        width: 55px;
        height: 55px;
    }

    .paint-dot-pink {
        width: 75px;
        height: 75px;
    }

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

    .fact,
    .fact:first-child {
        min-height: 120px;
        padding: 22px 15px;
        border-bottom: 1px solid rgba(255,255,255,0.12);
    }

        .fact:nth-child(2) {
            border-right: 0;
        }

        .fact:nth-child(3),
        .fact:nth-child(4) {
            border-bottom: 0;
        }

    .section {
        padding: 70px 0;
    }

    .about-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        margin-bottom: 30px;
    }

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

    .product-card {
        min-height: 260px;
    }

        .product-card h3 {
            margin-top: 45px;
        }

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

    .advantage,
    .advantage:nth-child(even) {
        padding: 25px 0;
        border-left: 0;
    }

    .contact-banner {
        padding: 50px 0;
    }

    .contact-banner-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-main {
        padding: 45px 0 35px;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .hero h1 {
        font-size: 42px;
    }

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

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .fact strong {
        font-size: 31px;
    }

    .fact span {
        font-size: 12px;
    }
}
