/* ── Tokens ─────────────────────────────────── */
:root {
    --black: #000;
    --white: #fff;
    --grey: #828282;
    --grey-dark: #454545;
    --border: #e0e0e0;
    --card-brd: #f7f7f7;
    --sh-btn: 0 1px 2px rgba(0, 0, 0, .05);
    --sh-card: -4px 8px 20px rgba(0, 0, 0, .10);
    --r-sm: 8px;
    --r-md: 12px;

    /* Layout tokens — змінюються за breakpoint'ами */
    --px: 80px;
    /* горизонтальний відступ */
}

/* ── Планшет 768px ── */
@media (max-width: 991.98px) {
    :root {
        --px: 32px;
    }
}

/* ── Мобіль ── */
@media (max-width: 575.98px) {
    :root {
        --px: 16px;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--black);
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1050;
    height: 80px;
    background: var(--white);
    /* border-bottom: 1px solid #f0f0f0; */
    display: flex;
    align-items: center;
}

.nav-inner {
    width: 100%;
    padding: 0 var(--px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 20px;
    font-weight: 500;
    color: var(--black);
    text-decoration: none;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 48px;
}

.nav-link-item {
    font-size: 20px;
    font-weight: 500;
    color: var(--black);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.nav-link-item::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--black);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s cubic-bezier(.4, 0, .2, 1),
        box-shadow .25s ease;
}

.nav-link-item:hover::after {
    transform: scaleX(1);
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    padding: 14px 24px;
    border-radius: var(--r-sm);
    box-shadow: var(--sh-btn);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity .2s;
    white-space: nowrap;
}

.btn-nav:hover {
    opacity: .82;
    color: var(--white);
}

/* ── Burger ─────────────────────────────────── */
.burger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 5px;
}

.burger-btn span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transform-origin: center;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1), opacity .25s;
}

.burger-btn[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger-btn[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    /* border-bottom: 1px solid #f0f0f0; */
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.4, 0, .2, 1);
    z-index: 1040;
}

.mobile-menu.open {
    max-height: 360px;
}

.mobile-menu a {
    display: block;
    font-size: 20px;
    font-weight: 500;
    color: var(--black);
    text-decoration: none;
    padding: 15px 24px;
    border-bottom: 1px solid #f5f5f5;
}

.mobile-menu .btn-nav {
    display: block;
    margin: 16px 24px 20px;
    text-align: center;
    color: #fff;
}

/* Планшет і менше — показуємо бургер */
@media (max-width: 991.98px) {
    .nav-links {
        display: none;
    }

    .burger-btn {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero-section {
    padding: 110px var(--px) 0;
    text-align: center;
}

.hero-copy {
    max-width: 857px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--black);
}

.hero-sub {
    font-size: 24px;
    font-weight: 400;
    color: var(--grey);
    line-height: 1.5;
}

/* Hero image */
.hero-img-wrap {
    margin: 64px var(--px) 0;
}

.hero-img-wrap img {
    width: 100%;
    height: 640px;
    object-fit: cover;
    border-radius: var(--r-sm);
    display: block;
}

/* ── Hero адаптив ── */
@media (max-width: 991.98px) {

    /* 768px — планшет */
    .hero-section {
        padding-top: 60px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-sub {
        font-size: 18px;
    }

    .hero-img-wrap {
        margin-top: 40px;
    }

    .hero-img-wrap img {
        height: 400px;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding-top: 48px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-sub {
        font-size: 16px;
    }

    .hero-img-wrap img {
        height: 220px;
    }
}

/* ═══════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════ */
.testimonials-section {
    padding: 80px var(--px) 0;
}

.sec-heading {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--black);
}

.sec-sub {
    font-size: 24px;
    font-weight: 400;
    color: var(--grey);
    line-height: 1.5;
    margin-top: 8px;
}

.cards-row {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    overflow: visible;
}

.quote-card {
    flex: 1;
    background: var(--white);
    border: 1px solid var(--card-brd);
    border-radius: var(--r-md);
    box-shadow: var(--sh-card);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
    position: relative;
    z-index: 1;
    transition: transform .28s cubic-bezier(.22, .68, 0, 1.2),
        box-shadow .28s ease;
    will-change: transform;
}

.quote-card:hover {
    transform: scale(1.038) translateY(-5px);
    box-shadow: -6px 14px 34px rgba(0, 0, 0, .16);
    z-index: 2;
}

.quote-text {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--black);
}

.avatar-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-row img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.av-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--black);
    line-height: 1.5;
}

.av-desc {
    font-size: 16px;
    font-weight: 500;
    color: var(--grey);
    line-height: 1.5;
}

/* ── Testimonials адаптив ── */
@media (max-width: 991.98px) {
    .testimonials-section {
        padding-top: 60px;
    }

    .sec-heading {
        font-size: 28px;
    }

    .sec-sub {
        font-size: 18px;
    }

    /* На 768px — картки в ряд*/
    .cards-row {
        flex-wrap: wrap;
        padding-left: 20px;
        padding-right: 20px;
    }

    .quote-card {
        flex: 1 1 calc(100% - 16px);
        min-width: 280px;
    }

    /* Третя картка займає повну ширину якщо лишилась одна */
    .quote-card:last-child:nth-child(odd) {
        flex: 1 1 100%;
    }
}

@media (max-width: 575.98px) {
    .cards-row {
        flex-direction: column;
    }

    .quote-card {
        flex: 1 1 100%;
    }
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
    margin-top: 80px;
    padding: 48px var(--px);
    background: var(--white);
    border-top: 1px solid #e8e8e8;
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    gap: 0;
    min-height: 120px;
}

.footer-brand-col {
    flex: 0 0 auto;
    padding-right: 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-brand {
    font-size: 24px;
    font-weight: 400;
    color: var(--black);
    text-decoration: none;
    display: block;
}

.social-icons {
    display: flex;
    gap: 8px;
    margin-top: 80px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    color: var(--black);
    font-size: 20px;
    text-decoration: none;
    transition: background .2s, transform .2s, box-shadow .25s ease;
}

.social-btn img {
    width: 24px;
    height: 24px;
    display: block;
}

.social-btn:hover {
    background: #f2f2f2;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .10);
}

.footer-nav-cols {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 32px;
}

.footer-col {
    min-width: 120px;
}

.footer-topic {
    font-size: 16px;
    font-weight: 500;
    color: var(--black);
    line-height: 1.5;
    margin-bottom: 24px;
}

.foot-link {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--grey-dark);
    text-decoration: none;
    margin-bottom: 24px;
    position: relative;
}

.foot-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: var(--grey-dark);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s cubic-bezier(.4, 0, .2, 1),
        box-shadow .25s ease;
}

.foot-link:hover {
    color: var(--black);
}

.foot-link:hover::after {
    transform: scaleX(1);
}

/* ── Footer адаптив ── */

/* Планшет 768px — бренд і навігація залишаються в ряд */
@media (max-width: 991.98px) {
    .footer-inner {
        flex-direction: row;
        align-items: flex-start;
        gap: 32px;
        min-height: auto;
    }

    .footer-brand-col {
        flex: 0 0 auto;
        padding-right: 0;
    }

    .footer-nav-cols {
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 24px;
    }

    .footer-col {
        min-width: 100px;
    }
}

/* Мобіль — складаємо вертикально */
@media (max-width: 575.98px) {
    footer {
        margin-top: 60px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 40px;
    }

    .footer-nav-cols {
        justify-content: flex-start;
        gap: 24px;
    }

    .footer-col {
        min-width: calc(50% - 12px);
    }
}

/* ═══════════════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════════════ */
.contact-page {
    padding: 80px var(--px) 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    column-gap: 80px;
    align-items: start;
}

.contact-left {
    grid-column: 1;
    grid-row: 1;
}

.contact-right {
    grid-column: 2;
    grid-row: 1;
}

.contact-title {
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--black);
    margin-bottom: 24px;
}

.contact-sub {
    font-size: 24px;
    font-weight: 400;
    color: var(--grey);
    line-height: 1.5;
    margin-bottom: 40px;
}

/* Form */
.form-row {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--black);
    line-height: 1.5;
    margin-bottom: 8px;
}

.form-control {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--grey);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    box-shadow: var(--sh-btn);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.form-control::placeholder {
    color: var(--grey);
}

.form-control:focus {
    border-color: var(--black);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .08);
    color: var(--black);
}

textarea.form-control {
    resize: vertical;
    min-height: 123px;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--white);
    background: var(--black);
    border: none;
    border-radius: var(--r-sm);
    box-shadow: var(--sh-btn);
    cursor: pointer;
    line-height: 1.5;
    transition: opacity .2s, transform .2s;
    margin-top: 8px;
}

.btn-submit:hover {
    opacity: .84;
    transform: translateY(-2px);
}

.contact-img {
    width: 100%;
    /*  height: 100%; */
    min-height: 500px;
    object-fit: cover;
    border-radius: var(--r-sm);
    display: block;
}

/* ── Contact адаптив ── */
@media (max-width: 991.98px) {

    /* 768px — одна колонка, зображення знизу */
    .contact-page {
        grid-template-columns: 1fr;
        column-gap: 0;
        padding-top: 60px;
    }

    .contact-left {
        grid-column: 1;
        grid-row: 1;
    }

    .contact-right {
        grid-column: 1;
        grid-row: 2;
        margin-top: 40px;
    }

    .contact-title {
        font-size: 40px;
        margin-top: 38px;
        text-align: center;
    }

    .contact-sub {
        font-size: 18px;
        margin-bottom: 32px;
        text-align: center;
    }

    .contact-img {
        min-height: 340px;
    }
}

@media (max-width: 575.98px) {
    .contact-page {
        padding-top: 48px;
    }

    .contact-title {
        font-size: 32px;
    }

    .contact-sub {
        font-size: 16px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-img {
        min-height: 240px;
    }
}

/* ── img-contact helper ── */
.img-contact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--r-sm);
}


/* Десктоп: форма ліворуч, фото праворуч */
.contact-left {
    grid-column: 1;
    grid-row: 1;
}

.contact-right {
    grid-column: 2;
    grid-row: 1;
}

/* Мобайл: фото першим, форма другою */
@media (max-width: 991.98px) {
    .contact-page {
        grid-template-columns: 1fr;
        padding-left: 80px;
        padding-right: 80px;
    }

    .contact-left {
        grid-column: 1;
        grid-row: 2;
    }

    /* форма — друга */
    .contact-right {
        grid-column: 1;
        grid-row: 1;
    }


    .form-row {
        display: block;
    }
}



.error-message {
    color: #e53e3e;
    font-size: 13px;
    margin-top: 5px;
    min-height: 20px;
}