/* 05 «Агенція»: спільні стилі для чотирьох сторінок. */
body { font-family: Rubik, system-ui, sans-serif; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.015em; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 500; text-decoration: none; white-space: nowrap; border: 0; cursor: pointer; font-size: 16px; transition: transform .2s var(--ease), box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-outline { border: 1.5px solid var(--text); color: var(--text); }

/* Шапка з активною сторінкою */
.top { background: var(--ink); color: #F5EDD8; }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 76px; }
.top .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #F5EDD8; font-weight: 600; font-size: 20px; letter-spacing: .04em; }
.top .brand img { width: 46px; height: 46px; }
.top nav { margin-left: auto; }
.top ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none; color: #D9D1BC; font-weight: 500; }
.top nav a:hover { color: #F5EDD8; background: rgba(245,237,216,.08); }
.top nav a[aria-current="page"] { background: #F5EDD8; color: #27383F; }
.top .btn-primary { background: #8DBE5E; color: #16220E; }
.menu-btn { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(245,237,216,.3); background: transparent; color: #F5EDD8; font-size: 22px; cursor: pointer; }
/* Перемикач мови: та сама сторінка іншою мовою, видно і на телефоні */
.lang { display: flex; gap: 2px; padding: 2px; border-radius: 999px; border: 1px solid rgba(245,237,216,.28); }
.lang a { display: grid; place-items: center; min-width: 44px; min-height: 40px; padding: 0 10px; border-radius: 999px; color: #D9D1BC; text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: .04em; }
.lang a:hover { color: #F5EDD8; }
.lang a[aria-current="true"] { background: rgba(245,237,216,.14); color: #F5EDD8; }
@media (max-width: 900px) {
  .lang { margin-left: auto; }
  .menu-btn { display: grid; place-items: center; order: 1; margin-left: 8px; }
  .top .btn { display: none; }
  .top nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: var(--ink); padding: 8px 16px 20px; z-index: 20; }
  .top nav[data-open="true"] { display: block; }
  .top ul { flex-direction: column; }
}

/* Заголовок внутрішньої сторінки */
.page-head { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; }
.crumbs a { color: var(--muted); }
.page-head h1 { font-size: clamp(34px, 4.6vw, 60px); margin-top: 14px; }
.page-head p { color: var(--muted); font-size: 19px; margin-top: 14px; max-width: 56ch; }

.sec { padding: 88px 0; }
.sec h2 { font-size: clamp(28px, 3.4vw, 42px); }
.sec .lead { color: var(--muted); font-size: 18px; margin-top: 12px; max-width: 58ch; }

.price { font-weight: 600; font-size: 30px; color: var(--accent-text); letter-spacing: -.02em; }
.price small { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; white-space: nowrap; }

/* Великий заклик унизу кожної сторінки */
.cta-band { background: var(--accent); color: var(--on-accent); border-radius: 32px; padding: 56px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; margin-bottom: 88px; }
.cta-band h2 { font-size: clamp(26px, 3vw, 38px); }
.cta-band p { opacity: .9; margin-top: 10px; }
.cta-band .btn { background: var(--bg); color: var(--text); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 32px 24px; } }

footer { background: var(--ink); color: #D9D1BC; padding: 56px 0 32px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer h3 { color: #F5EDD8; font-size: 16px; margin-bottom: 10px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer a { color: #D9D1BC; text-decoration: none; display: inline-flex; min-height: 40px; align-items: center; gap: 8px; }
footer a:hover { color: #F5EDD8; text-decoration: underline; }
footer .brand { display: flex; align-items: center; gap: 12px; color: #F5EDD8; font-weight: 600; font-size: 20px; }
footer .brand img { width: 48px; }
footer .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(245,237,216,.12); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; } }

/* ---- Головна (index.html) ---- */
/* Герой: на весь перший екран, фото вулиці під ним (assets/bg.css) */
.hero { min-height: calc(100svh - 76px); display: grid; align-items: center; padding: 56px 0 72px; }
.hero .copy { max-width: 760px; }
.hero h1 { font-size: clamp(34px, 5vw, 66px); line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; }
.hero p { color: var(--muted); font-size: clamp(18px, 1.5vw, 21px); margin-top: 18px; max-width: 44ch; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
@media (max-width: 860px) { .hero { align-items: start; padding-top: 40px; } }
.pop { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 18px; }
.pop-card { text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: transform .3s var(--ease), box-shadow .3s; }
.pop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pop-card i { font-size: 30px; color: var(--accent-text); }
.pop-card h3 { font-size: 21px; } .pop-card p { color: var(--muted); }
.pop-card .price { margin-top: auto; padding-top: 12px; }
.pop-card.dark { background: var(--ink); color: #F5EDD8; border: 0; }
.pop-card.dark p { color: #D9D1BC; } .pop-card.dark i, .pop-card.dark .price { color: #A6D07A; }
@media (max-width: 860px) { .pop { grid-template-columns: 1fr; } }
.all { margin-top: 24px; } .all a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; color: var(--accent-text); }
.how { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.how img { border-radius: 28px; aspect-ratio: 4/5; object-fit: cover; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: s; display: grid; gap: 4px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 600; color: var(--accent-text); }
.steps b { font-weight: 600; font-size: 18px; } .steps span { color: var(--muted); }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } .how img { aspect-ratio: 16/10; } }
.channels { padding-top: 0; }
.ch { margin-top: 28px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.ch a { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .25s var(--ease), border-color .2s; }
.ch a:hover { transform: translateY(-3px); border-color: var(--leaf); }
.ch a > i:first-child { font-size: 34px; color: var(--accent-text); }
.ch b { display: block; font-weight: 600; font-size: 18px; } .ch span { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .ch { grid-template-columns: 1fr; } }

/* ---- Послуги (/services) ---- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button { min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; cursor: pointer; font-weight: 500; transition: background-color .2s, color .2s; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: #F5EDD8; border-color: var(--ink); }
.svcs { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 18px; }
.svc { scroll-margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 14px; animation: pop .35s var(--ease); }
.svc.hit { outline: 3px solid var(--leaf); outline-offset: 3px; }
@keyframes pop { from { opacity: 0; transform: scale(.97); } }
.svc .h { display: flex; gap: 14px; align-items: start; }
.svc .h > i { width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; font-size: 24px; color: var(--accent-text); }
.svc h3 { font-size: 20px; line-height: 1.25; } .svc .meta { font-size: 14px; color: var(--muted); margin-top: 2px; }
.svc .desc { font-size: 15px; color: var(--muted); }
.svc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.svc li { display: flex; gap: 10px; } .svc li i { color: var(--accent-text); margin-top: 4px; flex: none; }
.svc .note { display: flex; gap: 8px; font-size: 14px; color: var(--muted); background: var(--surface-2); padding: 10px 12px; border-radius: 12px; }
.svc .note i { margin-top: 3px; flex: none; }
.svc .f { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.svc .go { font-weight: 500; color: var(--accent-text); display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.svc.feat { background: var(--ink); color: #F5EDD8; border: 0; }
.svc.feat .meta, .svc.feat .desc, .svc.feat .price small { color: #C9C1AB; } .svc.feat .h > i { background: rgba(245,237,216,.1); color: #A6D07A; }
.svc.feat .note { background: rgba(245,237,216,.08); color: #D9D1BC; }
.svc.feat li i, .svc.feat .price, .svc.feat .go { color: #A6D07A; } .svc.feat .f { border-color: rgba(245,237,216,.2); }
@media (max-width: 400px) { .svc { padding: 22px 18px; } }

/* ---- Команда (/team) ---- */
.lead-member { display: grid; grid-template-columns: 380px 1fr; gap: 0 48px; align-items: center; }
.lead-member .photo-ph { grid-row: span 4; aspect-ratio: 4/5; border-radius: 28px; }
.lead-member h3 { font-size: 30px; align-self: end; }
.lead-member .role { font-weight: 500; color: var(--accent-text); margin-top: 6px; }
.lead-member .bio { font-size: 19px; color: var(--muted); margin-top: 14px; max-width: 52ch; align-self: start; }
.grid { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid .photo-ph { aspect-ratio: 1; border-radius: 24px; }
.grid h3 { font-size: 20px; margin-top: 16px; } .grid .role { color: var(--accent-text); font-weight: 500; font-size: 15px; margin-top: 4px; } .grid .bio { color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) { .lead-member { grid-template-columns: 1fr; } .lead-member .photo-ph { grid-row: auto; aspect-ratio: 4/3; margin-bottom: 20px; } .grid { grid-template-columns: 1fr; } }
.values { background: var(--surface); border-block: 1px solid var(--line); margin-bottom: 88px; }
.vals { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.vals i { font-size: 34px; color: var(--accent-text); } .vals h3 { font-size: 20px; margin-top: 12px; } .vals p { color: var(--muted); margin-top: 8px; max-width: 52ch; }
@media (max-width: 760px) { .vals { grid-template-columns: 1fr; } }

/* ---- Контакти (/contacts) ---- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.ways { display: grid; gap: 12px; }
.way { display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: center; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .25s var(--ease); }
a.way:hover { transform: translateX(4px); }
.way > i:first-child { font-size: 28px; color: var(--accent-text); }
.way b { display: block; font-weight: 600; } .way span { color: var(--muted); font-size: 15px; }
.way.main { background: var(--ink); color: #F5EDD8; border: 0; } .way.main span { color: #D9D1BC; } .way.main i { color: #A6D07A; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 32px; display: grid; gap: 18px; }
.form h2 { font-size: 26px; }
.field { display: grid; gap: 6px; } .field label { font-weight: 500; } .field .opt { font-weight: 400; color: var(--muted); }
.field .hint { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; color: var(--text); background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; min-height: 52px; padding: 12px 14px; }
.field textarea { resize: vertical; }
.field select { width: 100%; min-width: 0; text-overflow: ellipsis; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--leaf) 25%, transparent); }
.field .err { display: none; color: #B42318; font-size: 14px; }
.field[data-invalid="true"] input { border-color: #B42318; } .field[data-invalid="true"] .err { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field .err { color: #FDA29B; } }
.ok { color: var(--accent-text); font-weight: 500; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } .form { padding: 24px 18px; } }
.faq .wrap { max-width: 860px; } .faq h2 { margin-bottom: 20px; }
.faq details { border-top: 1px solid var(--line); } .faq details:last-child { border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.faq summary { cursor: pointer; min-height: 60px; display: flex; align-items: center; font-weight: 500; font-size: 18px; padding: 10px 0; }
.faq details p { color: var(--muted); padding-bottom: 18px; }
.faq details a { color: var(--accent-text); }

/* CMS: справжнє фото члена команди замість заглушки. */
.photo-ph.has-img { padding: 0; overflow: hidden; background: var(--surface-2); }
.photo-ph.has-img img { width: 100%; height: 100%; object-fit: cover; opacity: 1; margin: 0; }
/* Пастка для ботів у формі: людина поля не бачить і не заповнює. */
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Ferdinand (/ferdinand) ---- */
.hero-f { padding: 88px 0 72px; border-bottom: 1px solid var(--line); }
.hero-f .eyebrow { color: var(--accent-text); font-weight: 500; }
.hero-f h1 { font-size: clamp(36px, 5vw, 64px); margin-top: 14px; max-width: 18ch; }
.hero-f p { color: var(--muted); font-size: 19px; margin-top: 18px; max-width: 58ch; }
.hero-f .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.three { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.three .pop-card:hover { transform: none; box-shadow: none; }
.sec.tight { padding-top: 0; }
.plain > * { max-width: 760px; }
.plain p, .plain li { color: var(--muted); font-size: 18px; }
.plain p { margin-top: 14px; }
.plain a { color: var(--accent-text); }
.ticks { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; }
.ticks li i { color: var(--accent-text); font-size: 22px; margin-top: 2px; }
.buy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.plain .price-big { font-size: clamp(40px, 5vw, 56px); font-weight: 600; margin-top: 18px; color: var(--text); }
.plain .price-big span { font-size: 20px; font-weight: 400; color: var(--muted); }
.form { grid-template-columns: minmax(0, 1fr); } .form input { width: 100%; }
.form > .err { color: #B42318; font-size: 15px; } .form > .err a { color: inherit; }
.form .note { font-size: 14px; color: var(--muted); }
.form button.btn { justify-content: center; border: 0; cursor: pointer; font: inherit; font-weight: 500; white-space: normal; text-align: center; padding-block: 10px; }
.form button.btn.ghost { border: 1.5px solid var(--text); color: var(--text); background: none; }
.form button.btn-primary:disabled { opacity: .6; cursor: progress; }
@media (max-width: 860px) { .three, .buy { grid-template-columns: minmax(0, 1fr); } .hero-f { padding: 56px 0 48px; } }

/* ---- Приватність і умови (/privacy) ---- */
.doc > * { max-width: 760px; }
.doc h2 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 48px; }
.doc p, .doc li { color: var(--muted); font-size: 17px; }
.doc p { margin-top: 12px; }
.doc ul { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.doc b { color: var(--text); font-weight: 500; }
.short { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px 28px; margin-top: 8px; }
.short ul { margin-top: 0; }
.draft { background: #FFE9A8; color: #3A2A00; border-radius: 14px; padding: 12px 16px; font-size: 15px; margin-top: 18px; max-width: 60ch; }
