/* ============================================
   АВГУСТ — Advertising Agency Landing Page
   Color palette: deep greens + white
   ============================================ */

:root {
    --green-900: #1a2e0a;
    --green-800: #2d5016;
    --green-700: #3a6820;
    --green-600: #4a7c28;
    --green-500: #5a9a30;
    --green-400: #6ab040;
    --green-300: #8ecc66;
    --green-200: #b5e090;
    --green-100: #e0f4cc;
    --green-50: #f0fae4;
    --white: #ffffff;
    --gray-50: #f8faf6;
    --gray-100: #eef2ea;
    --gray-200: #d8ddd4;
    --gray-600: #5a6354;
    --gray-800: #2a3024;
    --font: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(26, 46, 10, 0.08);
    --shadow-lg: 0 12px 48px rgba(26, 46, 10, 0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    color: var(--gray-800);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

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

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.btn--primary {
    background: var(--green-600);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(74, 124, 40, 0.3);
}

.btn--primary:hover {
    background: var(--green-500);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 124, 40, 0.4);
}

.btn--outline {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn--white {
    background: var(--white);
    color: var(--green-700);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn--white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn--full {
    width: 100%;
}

/* ---- Header ---- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    padding: 10px 0;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo__img {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav__link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: var(--transition);
}

.nav__link:hover::after {
    width: 100%;
}

.header.scrolled .nav__link {
    color: var(--gray-600);
}

.header.scrolled .nav__link:hover {
    color: var(--green-600);
}

.header__phone {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.header.scrolled .header__phone {
    color: var(--green-700);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.header.scrolled .burger span {
    background: var(--gray-800);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: url('assets/hero-grass.jpg') center/cover no-repeat;
    background-color: #2d5016;
}

/* Dark overlay for text readability */
.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(0, 0, 0, 0.45) 0%,
            rgba(0, 0, 0, 0.2) 40%,
            rgba(0, 0, 0, 0.15) 60%,
            rgba(0, 0, 0, 0.4) 100%
        );
}

/* Soft vignette for depth */
.hero__grass {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 120px 0 80px;
}

.hero__logo {
    max-width: clamp(280px, 50vw, 500px);
    height: auto;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.25));
    animation: fadeUp 1s ease-out;
}

.hero__title {
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 900;
    letter-spacing: 0.2em;
    line-height: 1;
    margin-bottom: 16px;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.2);
    animation: fadeUp 1s ease-out;
    /* Hidden — logo replaces the text title */
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.hero__desc {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    max-width: 560px;
    margin: 0 auto 40px;
    opacity: 0.85;
    line-height: 1.7;
    animation: fadeUp 1s ease-out 0.2s both;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 1s ease-out 0.4s both;
}

/* Floating particles */
.hero__particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.hero__particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero__particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 7s; }
.hero__particles span:nth-child(2) { left: 30%; top: 60%; animation-delay: 1.5s; animation-duration: 9s; width: 8px; height: 8px; }
.hero__particles span:nth-child(3) { left: 70%; top: 30%; animation-delay: 3s; animation-duration: 6s; }
.hero__particles span:nth-child(4) { left: 85%; top: 70%; animation-delay: 2s; animation-duration: 10s; width: 4px; height: 4px; }
.hero__particles span:nth-child(5) { left: 50%; top: 15%; animation-delay: 4s; animation-duration: 8s; width: 5px; height: 5px; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.15; }
    25% { transform: translate(20px, -30px) scale(1.2); opacity: 0.3; }
    50% { transform: translate(-10px, -60px) scale(1); opacity: 0.2; }
    75% { transform: translate(15px, -30px) scale(0.8); opacity: 0.25; }
}

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

/* ---- Section Titles ---- */
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    color: var(--green-800);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.section-title--left {
    text-align: left;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 1.05rem;
    margin-bottom: 56px;
}

/* ---- Services ---- */
.services {
    padding: 100px 0;
    background: var(--gray-50);
}

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

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: var(--transition);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green-500), var(--green-300));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card__icon {
    width: 56px;
    height: 56px;
    background: var(--green-50);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--green-600);
    transition: var(--transition);
}

.service-card:hover .service-card__icon {
    background: var(--green-600);
    color: var(--white);
}

.service-card__icon svg {
    width: 28px;
    height: 28px;
}

.service-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--green-900);
}

.service-card__text {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ---- About ---- */
.about {
    padding: 100px 0;
}

.about__image-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 64px;
    border-radius: var(--radius);
    overflow: hidden;
}

.about__photo {
    overflow: hidden;
    border-radius: var(--radius);
    max-height: 280px;
}

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

.about__photo:hover img {
    transform: scale(1.05);
}

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

.about__text {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 40px;
}

.about__stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat__number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--green-600);
    line-height: 1;
}

.stat__plus {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--green-400);
}

.stat__label {
    display: block;
    font-size: 0.82rem;
    color: var(--gray-600);
    margin-top: 6px;
    font-weight: 500;
}

.about__features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature:hover {
    background: var(--green-50);
    border-color: var(--green-100);
}

.feature__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--green-600);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.feature__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--green-900);
}

.feature__text {
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* ---- Portfolio ---- */
.portfolio {
    padding: 100px 0;
    background: var(--gray-50);
}

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

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

.portfolio-card--wide {
    grid-column: span 2;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.portfolio-card__bg {
    position: absolute;
    inset: 0;
    transition: var(--transition);
}

.portfolio-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-card__bg,
.portfolio-card:hover .portfolio-card__img {
    transform: scale(1.05);
}

.portfolio-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    color: var(--white);
    z-index: 1;
}

.portfolio-card__tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    backdrop-filter: blur(4px);
}

.portfolio-card__title {
    font-size: 1.15rem;
    font-weight: 700;
}

/* ---- CTA ---- */
.cta {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(160deg, #2d5016, #4a7c28, #3d6b1e);
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.cta__grass {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(87deg, transparent, transparent 3px, rgba(255, 255, 255, 0.02) 3px, rgba(255, 255, 255, 0.02) 4px),
        repeating-linear-gradient(93deg, transparent, transparent 5px, rgba(255, 255, 255, 0.015) 5px, rgba(255, 255, 255, 0.015) 6px);
    pointer-events: none;
}

.cta__inner {
    position: relative;
    z-index: 1;
}

.cta__title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta__text {
    font-size: 1.05rem;
    opacity: 0.85;
    max-width: 480px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

/* ---- Contact ---- */
.contact {
    padding: 100px 0;
}

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

.contact__text {
    color: var(--gray-600);
    margin-bottom: 36px;
    line-height: 1.7;
}

.contact__person {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 28px;
    padding: 16px 20px;
    background: var(--green-50);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--green-500);
}

.contact__person strong {
    font-size: 1.05rem;
    color: var(--green-900);
}

.contact__person span {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    color: var(--green-600);
    background: var(--green-50);
    border-radius: 12px;
    padding: 10px;
}

.contact__item a,
.contact__item span {
    color: var(--gray-800);
    text-decoration: none;
    font-size: 0.92rem;
}

.contact__item a:hover {
    color: var(--green-600);
}

.contact__item strong {
    display: block;
    font-size: 0.78rem;
    color: var(--gray-600);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

/* Form */
.contact__form {
    background: var(--gray-50);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font);
    font-size: 0.92rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--gray-800);
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-200);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 3px rgba(90, 154, 48, 0.1);
}

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

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6354' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

/* ---- Footer ---- */
.footer {
    background: var(--green-900);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 64px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.logo--footer {
    display: inline-block;
    margin-bottom: 12px;
}

.logo--footer .logo__img {
    height: 50px;
}

.footer__tagline {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer__links h4 {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.footer__links a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.88rem;
    padding: 4px 0;
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--green-300);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    font-size: 0.82rem;
    text-align: center;
}

/* ---- Animations on scroll ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .about__image-row {
        grid-template-columns: 1fr 1fr;
    }

    .about__image-row .about__photo:first-child {
        grid-column: span 2;
    }

    .about__grid,
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .portfolio-card--wide {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 20px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav.open {
        right: 0;
    }

    .nav.open .nav__link {
        color: var(--gray-800);
        font-size: 1.1rem;
    }

    .header__phone {
        display: none;
    }

    .burger {
        display: flex;
        z-index: 1001;
    }

    .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(5px, -5px);
    }

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

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

    .about__image-row {
        grid-template-columns: 1fr;
    }

    .about__image-row .about__photo:first-child {
        grid-column: span 1;
    }

    .about__photo {
        max-height: 200px;
    }

    .about__stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact__form {
        padding: 28px;
    }

    .hero__title {
        letter-spacing: 0.12em;
    }
}
