/* ═══════════════════════════════════════════════════════════
   Starlit — нова головна. Підключається ЛИШЕ на front-page.php
   (старі стилі там вимкнені), тому базові селектори безпечні.
   Хедер/футер — у base.css.
════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--paper);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 40px; }

/* ─── HERO ─── */
.hero {
    min-height: 96vh; display: flex; align-items: center;
    padding-top: 80px; background: var(--ice-soft);
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -100px; right: -120px;
    width: 620px; height: 620px; border-radius: 50%;
    border: 1px solid var(--ice); pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; bottom: -140px; right: 80px;
    width: 380px; height: 380px; border-radius: 50%;
    border: 1px solid var(--ice); pointer-events: none;
}
.hero-inner {
    display: grid; grid-template-columns: 1fr 420px; gap: 80px; align-items: center;
    max-width: var(--container); margin: 0 auto; padding: 90px 40px;
}
.hero-tag {
    display: inline-block; font-size: 11px; font-weight: 600;
    letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal);
    margin-bottom: 26px;
}
.hero h1 {
    font-size: clamp(34px, 4.4vw, 54px); font-weight: 300; text-transform: uppercase;
    letter-spacing: 0.03em; line-height: 1.18; color: var(--petrol-deep);
    margin-bottom: 24px;
}
.hero h1 em { font-style: normal; font-weight: 600; color: var(--teal); }
.hero-sub {
    font-size: 17px; font-weight: 300; color: var(--ink); max-width: 480px;
    margin-bottom: 40px; line-height: 1.65;
}
.hero-ctas { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.btn-primary {
    display: inline-block; font-family: var(--font); font-size: 12.5px; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    background: var(--petrol); color: #fff;
    padding: 16px 34px; border-radius: 46px; text-decoration: none;
    border: none; transition: all 0.2s; cursor: pointer;
}
.btn-primary:hover { background: var(--petrol-deep); }
.btn-secondary {
    display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
    color: var(--petrol); text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}
.hero-stats { display: flex; flex-direction: column; gap: 16px; }
.stat-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
    padding: 26px 30px;
}
.stat-num { font-size: 42px; font-weight: 300; color: var(--petrol-deep); line-height: 1; }
.stat-label { font-size: 12.5px; color: var(--muted); margin-top: 8px; letter-spacing: 0.02em; }
.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ─── SECTION BASE ─── */
section { padding: var(--section-gap) 0; }
.section-tag {
    font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--teal); margin-bottom: 18px;
}
.section-title {
    font-size: clamp(27px, 3.2vw, 38px); font-weight: 300; text-transform: uppercase;
    letter-spacing: 0.03em; line-height: 1.22; color: var(--petrol-deep); margin-bottom: 16px;
}
.section-sub { font-size: 15px; color: var(--muted); max-width: 560px; line-height: 1.8; }
.section-head { margin-bottom: 56px; }

/* ─── TABS (FOR WHOM) ─── */
.for-whom {
    background: linear-gradient(155deg, var(--petrol-deep), var(--petrol-mid));
    color: #fff;
}
.for-whom .section-tag { color: var(--teal-light); }
.for-whom .section-title { color: #fff; }
.for-whom .section-sub { color: rgba(255,255,255,.7); }
.tabs-nav {
    display: flex; gap: 4px; border-bottom: 1px solid var(--line-light); margin-bottom: 48px;
    flex-wrap: wrap;
}
.tab-btn {
    font-family: var(--font); font-size: 12.5px; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,.55);
    background: none; border: none; padding: 14px 28px; cursor: pointer;
    border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.2s;
}
.tab-btn.active { color: var(--teal-light); border-bottom-color: var(--teal-light); }
.tab-btn:hover { color: #fff; }
.tab-content { display: none; }
.tab-content.active { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.tab-text h3 { font-size: 26px; font-weight: 600; color: #fff; margin-bottom: 20px; }
.tab-text p { color: rgba(255,255,255,.75); line-height: 1.8; margin-bottom: 24px; }
.tab-benefits { list-style: none; }
.tab-benefits li {
    font-size: 14px; color: rgba(255,255,255,.85); padding: 10px 0;
    border-bottom: 1px solid var(--line-light);
    display: flex; align-items: center; gap: 12px;
}
.tab-benefits li::before {
    content: ''; display: block; width: 6px; height: 6px; border-radius: 50%;
    background: var(--teal-light); flex-shrink: 0;
}
.tab-brands-col h4 {
    font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(255,255,255,.45); margin-bottom: 20px;
}
.brand-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-chip {
    font-size: 12px; font-weight: 500; border: 1px solid var(--line-light); color: rgba(255,255,255,.85);
    padding: 8px 18px; border-radius: 30px; cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.brand-chip:hover { border-color: var(--teal-light); color: var(--teal-light); }
.tab-cta { margin-top: 32px; }

/* ─── TAB VISUALS ─── */
.tab-photo {
    width: 100%; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; margin-bottom: 22px;
}
.tab-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─── BRAND GRID ─── */
.brands-section { background: var(--paper); }
.filter-row {
    display: flex; gap: 4px; margin-bottom: 48px; background: var(--ice-soft);
    border-radius: 40px; padding: 4px; width: fit-content;
}
.filter-btn {
    font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
    text-transform: uppercase; background: none; border: none; border-radius: 30px;
    padding: 10px 22px; cursor: pointer; color: var(--muted); transition: all 0.2s;
}
.filter-btn.active { background: var(--petrol); color: #fff; }
.brands-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.brand-card {
    background: var(--paper); padding: 34px 26px; display: flex; flex-direction: column; gap: 12px;
    transition: background 0.2s; text-decoration: none; color: inherit; cursor: pointer;
}
.brand-card:hover { background: var(--ice-soft); }
.brand-cat { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.brand-name { font-size: 20px; font-weight: 600; color: var(--petrol-deep); line-height: 1.2; }
.brand-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }
.brand-for {
    font-size: 11px; color: var(--muted); opacity: .8; margin-top: auto;
    padding-top: 12px; border-top: 1px solid var(--line);
}

/* ─── ABOUT / CEO ─── */
.about-section { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: center; }
.about-photo-wrap { position: relative; }
.about-photo {
    width: 100%; aspect-ratio: 4/5; border-radius: 14px; overflow: hidden;
    background: var(--ice-soft); position: relative;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-caption { margin-top: 20px; }
.about-name { font-size: 19px; font-weight: 600; color: var(--petrol-deep); }
.about-role { font-size: 13px; color: var(--muted); margin-top: 4px; }
.about-text p { font-size: 15px; color: var(--ink); line-height: 1.85; margin-bottom: 18px; }
.about-text p:last-of-type { margin-bottom: 0; }
.about-values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; margin-top: 30px; }
.about-value {
    font-size: 13.5px; color: var(--ink); display: flex; align-items: flex-start; gap: 10px;
    padding-top: 14px; border-top: 1px solid var(--line);
}
.about-value::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
    margin-top: 6px; flex-shrink: 0;
}

/* ─── WE CLOSE ALL NEEDS ─── */
.needs-section { background: var(--ice-soft); }
.needs-bg-photo {
    width: 100%; border-radius: 14px; overflow: hidden; margin-bottom: 48px; max-height: 320px;
}
.needs-bg-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.needs-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
    background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.need-card { background: var(--ice-soft); padding: 38px 34px; transition: background 0.2s; }
.need-card:hover { background: var(--paper); }
.need-icon { font-size: 26px; margin-bottom: 18px; display: block; color: var(--teal); }
.need-title { font-size: 20px; font-weight: 600; color: var(--petrol-deep); margin-bottom: 12px; }
.need-text { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ─── CASES ─── */
.cases-section { background: var(--paper); }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.case-card { border: 1px solid var(--line); border-radius: 12px; padding: 34px; position: relative; }
.case-type { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-bottom: 20px; }
.case-quote { font-size: 17px; font-weight: 400; font-style: italic; line-height: 1.55; color: var(--ink); margin-bottom: 24px; }
.case-author { font-size: 13px; color: var(--muted); }
.case-author strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.case-result { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.case-result span { font-size: 26px; font-weight: 600; color: var(--petrol-deep); display: block; }

/* ─── MEDIA ─── */
.media-section { background: var(--paper); }
.media-logos {
    display: flex; gap: 40px; flex-wrap: wrap; align-items: center; padding: 36px 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 56px;
}
.media-logo { font-size: 17px; font-weight: 600; color: var(--ice); letter-spacing: 0.06em; text-transform: uppercase; }
.media-articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.media-article { border-bottom: 2px solid var(--line); padding-bottom: 22px; }
.media-article a { text-decoration: none; color: inherit; }
.media-source { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.media-headline { font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.5; }

/* ─── LEAD FORM ─── */
.form-section { background: linear-gradient(155deg, var(--petrol-deep), var(--petrol-mid)); padding: 120px 0; }
.form-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.form-left .section-tag { color: var(--teal-light); }
.form-left .section-title { color: #fff; }
.form-left p { color: rgba(255,255,255,.7); font-size: 15px; line-height: 1.8; margin-top: 20px; }
.form-left .contact-line {
    margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--line-light);
    font-size: 13px; color: rgba(255,255,255,.6);
}
.form-left .contact-line a { color: var(--teal-light); text-decoration: none; }
.form-section form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-section label {
    display: flex; flex-direction: column; gap: 6px; font-size: 11px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,.55);
}
.form-section input, .form-section select, .form-section textarea {
    font-family: var(--font); font-size: 14px; background: rgba(255,255,255,.06);
    border: 1px solid var(--line-light); border-radius: 8px; color: #fff;
    padding: 12px 16px; outline: none; transition: border-color 0.2s; width: 100%;
}
.form-section input::placeholder, .form-section textarea::placeholder { color: rgba(255,255,255,.35); }
.form-section input:focus, .form-section select:focus, .form-section textarea:focus { border-color: var(--teal-light); }
.form-section select option { background: var(--petrol-deep); }
.form-section textarea { min-height: 90px; resize: vertical; }
.brands-check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.form-section label.check-label {
    display: flex; flex-direction: row; align-items: center; gap: 8px; font-size: 12px;
    letter-spacing: 0.03em; text-transform: none; color: rgba(255,255,255,.65); cursor: pointer;
}
.check-label input[type=checkbox] { width: 14px; height: 14px; padding: 0; accent-color: var(--teal-light); flex-shrink: 0; }
.btn-submit {
    font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; background: var(--teal); color: #fff; border: none;
    border-radius: 40px; padding: 18px 40px; cursor: pointer; width: 100%; margin-top: 8px; transition: background 0.2s;
}
.btn-submit:hover { background: var(--teal-light); color: var(--petrol-deep); }
.btn-submit[disabled] { opacity: .6; cursor: wait; }
.form-note { font-size: 12px; color: rgba(255,255,255,.4); text-align: center; }
.form-error { font-size: 13px; color: #ffb4a8; text-align: center; display: none; }
.form-section .invalid { border-color: #ff9d8a; }
.form-section .field-msg {
    font-size: 11px; font-weight: 500; letter-spacing: .02em; text-transform: none;
    color: #ffb4a8;
}
.brands-check-grid.invalid { border: none; }
.form-success { display: none; text-align: center; padding: 40px 0; color: #fff; }
.form-success .c {
    width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.08);
    border: 2px solid var(--teal-light); display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; color: var(--teal-light); font-size: 1.8rem;
}
.form-success h3 { font-size: 24px; font-weight: 600; margin-bottom: 10px; }
.form-success p { color: rgba(255,255,255,.7); font-size: 15px; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.hero-content > * { animation: fadeUp 0.7s ease both; }
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.35s; }
.hero-content > *:nth-child(4) { animation-delay: 0.5s; }

@media (max-width: 880px) {
    .container { padding-left: 22px; padding-right: 22px; }
    .hero-inner { grid-template-columns: 1fr; gap: 48px; padding-left: 22px; padding-right: 22px; }
    .hero { padding-top: 66px; }
    .brands-grid { grid-template-columns: repeat(2, 1fr); }
    .needs-grid, .cases-grid, .media-articles { grid-template-columns: 1fr; }
    .tab-content.active, .form-inner { grid-template-columns: 1fr; gap: 36px; }
    .about-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
    .about-photo { max-width: 280px; margin: 0 auto; }
    .about-values { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .hero-inner { padding: 56px 22px; gap: 36px; }
    .hero-tag { margin-bottom: 18px; }
    .hero h1 { margin-bottom: 18px; }
    .hero-sub { margin-bottom: 28px; }
    .hero-ctas { flex-direction: column; align-items: flex-start; gap: 14px; }
    .btn-primary { width: 100%; text-align: center; }
    .stats-row { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat-card { padding: 18px 16px; }
    .stat-num { font-size: 30px; }
    .container { padding: 0 22px; }
    section { padding: 60px 0; }
    .brands-grid { grid-template-columns: 1fr; }
    .filter-row { flex-wrap: wrap; width: 100%; }
    .tabs-nav { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .tab-btn { white-space: nowrap; padding: 12px 18px; }
    .brand-chips { gap: 8px; }
    .form-row { grid-template-columns: 1fr; }
    .brands-check-grid { grid-template-columns: 1fr; }
    .media-logos { gap: 22px; }
}
