/* SEMILIO — стилі сайту.
   Палітра «Дизайн 1»: папір, шавлія, лісовий зелений (лише акценти), корал, сонце.
   Шрифти: Nunito (усе), Caveat (рукописні примітки). */

@font-face { font-family: 'Nunito Variable'; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url(/fonts/nunito-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Nunito Variable'; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url(/fonts/nunito-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Nunito Variable'; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url(/fonts/nunito-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Caveat Variable'; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url(/fonts/caveat-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Caveat Variable'; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url(/fonts/caveat-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Caveat Variable'; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url(/fonts/caveat-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

:root {
  --paper: #FDF8EF;
  --tint: #EEF0E2;
  --sage: #7C9A74;
  --forest: #1C4A3C;
  --coral: #F4694D;
  --sun: #FDBE66;
  --ink: #17231E;
  --muted: #56655D;

  --card: #FFFCF6;
  --sun-soft: #FEE8C4;
  --coral-soft: #FDDCD3;
  --sage-soft: #DDE6D6;
  --line: rgba(28, 74, 60, .16);
  --line-2: rgba(28, 74, 60, .28);

  --f-main: 'Nunito Variable', Nunito, ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --f-hand: 'Caveat Variable', Caveat, 'Segoe Print', cursive;

  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --r: 26px;
  --r-sm: 16px;
  --sec: clamp(56px, 8vw, 112px);
  --head-h: 76px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ═══ Основа ═══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 500 17px/1.62 var(--f-main); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-main); font-weight: 900; line-height: 1.12; color: var(--forest); margin: 0 0 .5em; letter-spacing: -.012em; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sun); color: var(--ink); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--forest); color: var(--paper); padding: 10px 16px; border-radius: 12px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.wrap.narrow { max-width: 820px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.todo { background: var(--coral-soft); border-radius: 4px; padding: 0 .3em; }
.ic { width: 1.1em; height: 1.1em; flex: none; }

/* ═══ Кнопки, мітки, чіпи ══════════════════════════════════════ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 800 16px/1.1 var(--f-main); letter-spacing: .005em; text-decoration: none; cursor: pointer;
  padding: 15px 26px; border-radius: 999px; border: 2px solid var(--forest);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s;
}
.btn .ic { transition: transform .2s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn-primary { background: var(--coral); color: var(--ink); box-shadow: 3px 4px 0 var(--forest); }
.btn-primary:hover { transform: translate(-1px, -2px); box-shadow: 5px 6px 0 var(--forest); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--forest); }
.btn-ghost { background: transparent; color: var(--forest); }
.btn-ghost:hover { background: var(--sun-soft); }
.btn-dark { background: var(--forest); color: var(--paper); box-shadow: 3px 4px 0 var(--ink); }
.btn-dark:hover { transform: translate(-1px, -2px); box-shadow: 5px 6px 0 var(--ink); }
.btn-sm { padding: 10px 18px; font-size: 15px; box-shadow: 2px 3px 0 var(--forest); }
.btn-sm.btn-ghost { box-shadow: none; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 0; }

.tag { display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; background: var(--sun-soft); color: var(--forest); font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 24px 0; }
.chip { display: inline-flex; align-items: center; gap: .4em; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--forest); background: var(--card); color: var(--forest); font: 700 15px/1.2 var(--f-main); text-decoration: none; cursor: pointer; transition: background-color .15s; }
.chip:hover { background: var(--sun-soft); }
.chip.on { background: var(--sun); }

.more { display: inline-flex; align-items: center; gap: .4em; color: var(--coral); font-weight: 800; font-size: 15.5px; text-decoration: none; }
.more .ic { transition: transform .2s var(--ease); }

/* ═══ Картки ═══════════════════════════════════════════════════ */

.card {
  position: relative; background: var(--card); border: 1.5px solid var(--forest); border-radius: var(--r);
  box-shadow: 5px 6px 0 var(--sun-soft);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.card:has(.stretched):hover { transform: translate(-2px, -3px); box-shadow: 8px 10px 0 var(--sun); }
.card:has(.stretched):hover .more .ic { transform: translateX(4px); }
.stretched { text-decoration: none; }
.stretched::after { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.stretched:focus-visible { outline: none; }
.stretched:focus-visible::after { outline: 3px solid var(--coral); outline-offset: 4px; }

/* ═══ Текст з редактора ════════════════════════════════════════ */

.prose > :last-child { margin-bottom: 0; }
.prose a { color: var(--forest); font-weight: 700; text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--coral); }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 1.4em; }
.prose h3 { font-size: 21px; margin-top: 1.3em; }
.prose h4 { font-size: 18px; margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 0; margin: 0 0 1em; }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 28px; margin: .35em 0; }
.prose ul li::before {
  content: ''; position: absolute; left: 2px; top: .42em; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 14C2 7 7 2 14 2c0 7-5 12-12 12z' fill='%237C9A74'/%3E%3Cpath d='M2.5 13.5 9 7' stroke='%231C4A3C' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.prose ol { padding-left: 1.4em; }
.prose ol li { margin: .35em 0; }
.prose ol li::marker { color: var(--coral); font-weight: 900; }
.prose blockquote { margin: 1.4em 0; padding: 18px 22px; border-left: 4px solid var(--sun); background: var(--tint); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 1.05em; }
.prose hr { border: 0; height: 12px; margin: 2em 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 12'%3E%3Cpath d='M2 6c7-6 12 6 19 0s12 6 19 0 12 6 18 0' fill='none' stroke='%237C9A74' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center / 60px 12px; }
.prose img { border-radius: var(--r-sm); margin: 1.2em 0; }
.prose img.img-left { float: left; margin: .3em 1.4em 1em 0; max-width: 45%; }
.prose img.img-right { float: right; margin: .3em 0 1em 1.4em; max-width: 45%; }
.prose img.img-full { width: 100%; }
.prose::after { content: ''; display: table; clear: both; }
.prose strong { font-weight: 800; color: var(--forest); }

/* ═══ Шапка сайту ══════════════════════════════════════════════ */

.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1.5px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-head.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(28, 74, 60, .4); }
.head-row { display: flex; align-items: center; gap: 24px; min-height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark { width: 44px; height: 44px; flex: none; transition: transform .3s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 900; font-size: 25px; color: var(--forest); letter-spacing: -.02em; }
.brand-sub { font: 600 13px/1 var(--f-main); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }

.site-nav { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { padding: 10px 12px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; color: var(--ink); }
.nav-item > a:hover, .nav-item > a[aria-current] { color: var(--forest); text-decoration: underline wavy var(--coral); text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.sub-toggle { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: -8px; border: 0; background: none; border-radius: 8px; cursor: pointer; color: var(--forest); }
.sub-toggle .ic { transition: transform .2s; }
.has-sub.open .sub-toggle .ic { transform: rotate(180deg); }
.sub { list-style: none; margin: 0; padding: 10px; position: absolute; top: calc(100% + 8px); left: -10px; min-width: 290px; background: var(--card); border: 1.5px solid var(--forest); border-radius: 20px; box-shadow: 6px 7px 0 var(--sun-soft); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.sub::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-sub:hover .sub, .has-sub.open .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 12px; border-radius: 12px; font-weight: 700; font-size: 15.5px; text-decoration: none; color: var(--ink); }
.sub a:hover, .sub a[aria-current] { background: var(--tint); color: var(--forest); }
.nav-side { display: flex; align-items: center; gap: 16px; }
.langs { display: flex; gap: 2px; padding: 3px; border: 1.5px solid var(--line-2); border-radius: 999px; }
.langs a { padding: 5px 10px; border-radius: 999px; font-size: 13.5px; font-weight: 800; text-decoration: none; color: var(--muted); letter-spacing: .04em; }
.langs a:hover { color: var(--forest); }
.langs a.on { background: var(--forest); color: var(--paper); }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 14px; border: 1.5px solid var(--forest); background: var(--card); cursor: pointer; place-items: center; color: var(--forest); }
.burger .ic { width: 22px; height: 22px; }

@media (max-width: 1080px) {
  :root { --head-h: 68px; }
  .burger { display: grid; }
  .site-nav { position: fixed; inset: var(--head-h) 0 0; z-index: 49; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px; padding: 20px var(--gut) 40px; background: var(--paper); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .2s, transform .2s, visibility .2s; }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { flex-wrap: wrap; border-bottom: 1.5px dashed var(--line-2); }
  .nav-item > a { flex: 1; padding: 16px 4px; font-size: 21px; font-weight: 800; }
  .sub-toggle { width: 44px; height: 44px; margin: 0; }
  .sub { position: static; min-width: 0; width: 100%; padding: 0 0 12px; border: 0; box-shadow: none; background: none; display: none; opacity: 1; visibility: visible; transform: none; }
  .has-sub.open .sub { display: block; }
  .sub a { font-size: 17px; padding: 9px 8px; }
  .nav-side { flex-direction: column; align-items: flex-start; gap: 20px; }
  .nav-side .btn { width: 100%; padding: 16px; font-size: 17px; }
}
@media (max-width: 420px) { .brand-sub { display: none; } .brand-name { font-size: 23px; } }

/* ═══ Хлібні крихти, заголовок сторінки ════════════════════════ */

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 18px 0 0; font-size: 14.5px; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--sage); }
.crumbs a { text-decoration: none; font-weight: 700; color: var(--muted); }
.crumbs a:hover { color: var(--forest); }
.page-head { padding: clamp(28px, 5vw, 56px) 0 0; }
.page-head h1 { font-size: clamp(36px, 5.4vw, 62px); max-width: 18ch; }
.page-lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 62ch; }

/* ═══ Блоки: спільне ═══════════════════════════════════════════ */

.blk { padding-block: var(--sec); position: relative; }
.blk + .blk { padding-top: calc(var(--sec) * .6); }
.page-head + .blk, .crumbs + .blk:not(.blk-hero) { padding-top: clamp(28px, 4vw, 48px); }
.tint-band { background: var(--tint); border-radius: clamp(28px, 5vw, 56px); margin-inline: clamp(8px, 1.6vw, 24px); }
.blk + .tint-band, .tint-band + .blk { padding-top: var(--sec); }
.tint-band .card { background: var(--card); }
.sec-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .sec-lead { margin-inline: auto; }
.eyebrow { font: 700 clamp(22px, 2.2vw, 27px)/1.1 var(--f-hand); color: var(--coral); margin: 0 0 8px; transform: rotate(-1.5deg); transform-origin: left; }
.center .eyebrow { transform-origin: center; }
.sec-title { font-size: clamp(30px, 4.2vw, 48px); margin-bottom: .4em; }
.sec-lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 64ch; }
.sec-more { margin: 36px 0 0; text-align: center; }
.accent { color: var(--coral); position: relative; white-space: nowrap; }
.accent::after {
  content: ''; position: absolute; left: -2%; right: -2%; bottom: -.12em; height: .32em; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14C50 6 120 4 197 10' fill='none' stroke='%23FDBE66' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.hero-title, .sec-title { position: relative; z-index: 0; }
.doodle { position: absolute; pointer-events: none; }

/* ═══ Шапка з УТП ══════════════════════════════════════════════ */

.blk-hero { padding-top: clamp(32px, 5vw, 64px); }
.hero { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-title { font-size: clamp(40px, 6.2vw, 78px); line-height: 1.03; letter-spacing: -.025em; margin-bottom: .35em; }
.hero-inner .hero-title { font-size: clamp(36px, 5.2vw, 64px); }
.hero-lead { font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); max-width: 54ch; }
.hero-art { position: relative; margin: 0; }
.hero-art img { width: 100%; border-radius: 34px; }
.hero-art-fallback { aspect-ratio: 1 / .92; }
.hero-blob { position: absolute; inset: 4% 6%; background: var(--sun-soft); border: 2px solid var(--forest); border-radius: 58% 42% 52% 48% / 48% 56% 44% 52%; box-shadow: 10px 12px 0 var(--tint); display: grid; place-items: center; animation: blob 14s ease-in-out infinite alternate; }
.hero-grain { width: 46%; height: auto; }
.hero-blob .d1 { width: 34%; left: -8%; bottom: 2%; transform: rotate(-12deg); }
.hero-blob .d2 { width: 14%; right: 6%; top: 4%; }
.hero-blob .d3 { width: 9%; left: 12%; top: 14%; }
@keyframes blob { to { border-radius: 46% 54% 44% 56% / 56% 44% 56% 44%; } }
.hand-note { position: absolute; left: -2%; bottom: -6%; display: flex; align-items: flex-end; gap: 4px; font: 700 clamp(22px, 2.2vw, 28px)/1.05 var(--f-hand); color: var(--forest); transform: rotate(-4deg); max-width: 80%; }
.hand-note span { background: var(--paper); padding: 4px 10px; border-radius: 12px; }
.note-arrow { width: 54px; height: 54px; flex: none; order: 2; transform: scaleX(-1) rotate(-20deg); }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; width: 100%; justify-self: center; }
  .hand-note { left: 0; bottom: -4%; }
}

/* ═══ Регалії ══════════════════════════════════════════════════ */

.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 20px; }
@media (max-width: 560px) { .stats { gap: 12px; } .stat { padding: 18px 10px; } .stat-label { font-size: 14.5px; } }
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 18px; background: var(--card); border: 1.5px solid var(--forest); border-radius: var(--r); box-shadow: 5px 6px 0 var(--sun-soft); }
.stat-ic { width: 60px; height: 60px; display: grid; place-items: center; margin-bottom: 8px; }
.stat-ic img, .stat-doodle { width: 60px; height: 60px; object-fit: contain; position: static; }
.stat-val { font-weight: 900; font-size: clamp(40px, 4.6vw, 58px); line-height: 1; color: var(--forest); letter-spacing: -.03em; }
.stat:nth-child(3n+2) .stat-val { color: var(--coral); }
.stat-label { margin-top: 8px; font-weight: 700; color: var(--muted); font-size: 16px; line-height: 1.35; }

/* ═══ Послуги ══════════════════════════════════════════════════ */

.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.svc-card { padding: 26px 26px 24px; display: flex; flex-direction: column; }
.svc-art { width: 84px; height: 84px; border-radius: 26px; background: var(--tint); display: grid; place-items: center; margin-bottom: 18px; transition: transform .3s var(--ease); }
.svc-card:nth-child(3n+2) .svc-art { background: var(--sun-soft); }
.svc-card:nth-child(3n) .svc-art { background: var(--coral-soft); }
.svc-card:hover .svc-art { transform: rotate(-6deg); }
.svc-ic, .svc-img { width: 60px; height: 60px; object-fit: contain; }
.svc-title { font-size: 21px; margin-bottom: .45em; }
.svc-text { color: var(--muted); font-size: 15.5px; line-height: 1.55; margin-bottom: 16px; flex: 1; }

/* ═══ Портфоліо ════════════════════════════════════════════════ */

.filter { display: flex; flex-wrap: wrap; gap: 10px; margin: -8px 0 28px; }
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.work-card { overflow: hidden; display: flex; flex-direction: column; }
.work-card[hidden] { display: none; }
.work-cover { aspect-ratio: 4 / 3; background: var(--tint); border-bottom: 1.5px solid var(--forest); overflow: hidden; }
.work-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.work-card:hover .work-cover img { transform: scale(1.04); }
.work-ph { width: 100%; height: 100%; display: grid; place-items: center; }
.work-ph .svc-ic { width: 96px; height: 96px; }
.work-body { padding: 20px 24px 24px; }
.work-title { font-size: 21px; margin-bottom: .35em; }
.work-text { color: var(--muted); font-size: 15.5px; line-height: 1.5; margin: 0; }

/* ═══ Текст і картинка ═════════════════════════════════════════ */

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split-left .split-art { order: -1; }
.split-solo { grid-template-columns: 1fr; max-width: 860px; }
.split-art { margin: 0; }
.split-art img { border-radius: 30px; width: 100%; }
.perks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 18px; }
.perks li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; }
.perk-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--forest); display: grid; place-items: center; }
.perk-ic img, .perk-ic .doodle { width: 36px; height: 36px; position: static; object-fit: contain; }
.perks h3 { font-size: 18.5px; margin: 4px 0 .25em; }
.perks .prose { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-left .split-art { order: 0; } .split-art { max-width: 560px; } }

/* ═══ Список «що входить» і картки ═════════════════════════════ */

.feat-grid, .card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }
.feat { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 20px; border-radius: 20px; background: color-mix(in srgb, var(--card) 70%, transparent); border: 1.5px dashed var(--line-2); }
.feat-ic { width: 48px; height: 48px; border-radius: 50%; background: var(--sun-soft); display: grid; place-items: center; color: var(--forest); }
.feat:nth-child(3n+2) .feat-ic { background: var(--sage-soft); }
.feat:nth-child(3n) .feat-ic { background: var(--coral-soft); }
.feat-ic img { width: 34px; height: 34px; object-fit: contain; }
.ic-check { width: 22px; height: 22px; stroke-width: 2.4; }
.feat-title { font-size: 18px; margin: 4px 0 .3em; }
.feat .prose { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.info-card { overflow: hidden; display: flex; flex-direction: column; }
.info-img { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1.5px solid var(--forest); background: var(--tint); }
.info-img img { width: 100%; height: 100%; object-fit: cover; }
.info-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.info-title { font-size: 20px; margin-bottom: .4em; }
.info-body .prose { color: var(--muted); font-size: 15.5px; line-height: 1.55; flex: 1; }
.info-link { margin: 14px 0 0; }

/* ═══ Етапи ════════════════════════════════════════════════════ */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 28px; position: relative; counter-reset: s; }
.steps::before { content: ''; position: absolute; left: 28px; right: 28px; top: 28px; border-top: 2.5px dashed var(--sage); z-index: 0; }
.step { position: relative; z-index: 1; }
.step-num { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px; background: var(--sun); border: 2px solid var(--forest); font-weight: 900; font-size: 22px; color: var(--forest); box-shadow: 3px 3px 0 var(--forest); }
.step:nth-child(even) .step-num { background: var(--coral-soft); }
.step-title { font-size: 19px; margin-bottom: .35em; }
.step .prose { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
@media (max-width: 700px) {
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps::before { left: 27px; right: auto; top: 28px; bottom: 28px; border-top: 0; border-left: 2.5px dashed var(--sage); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; }
  .step-num { grid-row: span 2; margin: 0; }
  .step-title { margin-top: 12px; }
}

/* ═══ Ціни ═════════════════════════════════════════════════════ */

.price-grid { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.price-grid.n1 { max-width: 560px; }
.price-grid.n2 { max-width: 900px; }
.price { padding: 30px 28px 28px; display: flex; flex-direction: column; }
.price-hl { background: #FFF4DF; box-shadow: 7px 8px 0 var(--coral); }
.price-img { margin: -30px -28px 22px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r) var(--r) 0 0; border-bottom: 1.5px solid var(--forest); }
.price-img img { width: 100%; height: 100%; object-fit: cover; }
.price-name { font-size: 21px; margin-bottom: .3em; }
.price-val { margin: 0 0 16px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.price-num { font-weight: 900; font-size: clamp(38px, 4vw, 48px); line-height: 1; color: var(--forest); letter-spacing: -.02em; }
.price-hl .price-num { color: var(--coral); }
.price-unit { font-weight: 700; color: var(--muted); }
.price-text { font-size: 16px; flex: 1; }
.price-cta { margin: 22px 0 0; }
.price-cta .btn { width: 100%; }
.price-note { max-width: 720px; margin: 28px auto 0; text-align: center; color: var(--muted); font-size: 15.5px; }

/* ═══ FAQ ══════════════════════════════════════════════════════ */

.faq { border-top: 1.5px dashed var(--line-2); }
.faq-item { border-bottom: 1.5px dashed var(--line-2); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 4px; cursor: pointer; font-weight: 800; font-size: 19px; color: var(--forest); line-height: 1.3; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ic { width: 30px; height: 30px; padding: 5px; flex: none; border-radius: 50%; background: var(--sun-soft); transition: transform .25s var(--ease), background-color .2s; }
.faq-item[open] .faq-ic { transform: rotate(45deg); background: var(--coral-soft); }
.faq-item summary:hover .faq-ic { background: var(--sun); }
.faq-a { padding: 0 4px 22px; color: var(--muted); max-width: 70ch; }

/* ═══ Галерея ══════════════════════════════════════════════════ */

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.gal-item { margin: 0; }
.gal-item img { border-radius: 20px; border: 1.5px solid var(--forest); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gal-item figcaption { font: 700 21px/1.2 var(--f-hand); color: var(--forest); margin-top: 8px; padding-left: 4px; }

/* ═══ Заклик до дії ════════════════════════════════════════════ */

.cta-box { position: relative; overflow: hidden; border-radius: clamp(28px, 4vw, 44px); padding: clamp(32px, 5vw, 64px); display: grid; gap: 28px; align-items: center; }
.cta-box.has-img { grid-template-columns: 1.3fr .7fr; }
.cta-tint { background: var(--tint); }
.cta-coral { background: var(--coral); color: var(--ink); }
.cta-coral .sec-title { color: var(--ink); }
.cta-paper { background: var(--card); border: 1.5px solid var(--forest); box-shadow: 7px 8px 0 var(--sun-soft); }
.cta-text { position: relative; z-index: 1; max-width: 660px; }
.cta-text .prose { font-size: 18px; color: var(--muted); }
.cta-coral .cta-text .prose { color: var(--ink); }
.cta-d1 { width: 150px; right: -20px; bottom: -26px; opacity: .9; transform: rotate(8deg); }
.cta-art { margin: 0; position: relative; z-index: 1; }
.cta-art img { max-height: 280px; width: auto; margin-inline: auto; }
@media (max-width: 760px) { .cta-box.has-img { grid-template-columns: 1fr; } .cta-d1 { width: 100px; } }

/* ═══ Контакти і форма ═════════════════════════════════════════ */

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-list li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; }
.contact-list .ic { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--sun-soft); color: var(--forest); }
.contact-list li:nth-child(even) .ic { background: var(--sage-soft); }
.contact-list small { display: block; font-size: 13.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.contact-list a { font-weight: 800; color: var(--forest); text-decoration: none; font-size: 17.5px; word-break: break-word; }
.contact-list a:hover { color: var(--coral); }
.contact-art { margin: 32px 0 0; max-width: 360px; }
.form-card { padding: clamp(24px, 3.5vw, 40px); }
.form-title { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: .8em; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.req-form { position: relative; }
.form-fields { display: grid; gap: 16px; }
.fld { display: grid; gap: 6px; }
.fld label { font-weight: 800; font-size: 15px; color: var(--forest); }
.fld label span { color: var(--coral); }
.fld input, .fld select, .fld textarea {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff;
  font-size: 16.5px; font-weight: 600; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.fld textarea { resize: vertical; min-height: 110px; }
.fld select { appearance: none; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%231C4A3C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 20px; }
.fld input:hover, .fld select:hover, .fld textarea:hover { border-color: var(--sage); }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 4px var(--sun-soft); }
.fld .bad { border-color: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--coral); }
.check a { color: var(--forest); font-weight: 700; }
.form-err { margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--coral-soft); color: var(--ink); font-weight: 700; font-size: 15px; }
.form-ok { text-align: center; padding: 24px 8px; }
.form-ok:focus { outline: none; }
.ok-doodle { position: static; width: 84px; height: 84px; margin: 0 auto 8px; display: block; }
.form-ok-title { font-weight: 900; font-size: 28px; color: var(--forest); margin-bottom: .3em; }

/* ═══ Текст (юридичні сторінки) ════════════════════════════════ */

.rich { font-size: 17px; }
.blk-rich .sec-title { font-size: clamp(26px, 3.2vw, 36px); }

/* ═══ Кейс ═════════════════════════════════════════════════════ */

.case { padding: clamp(28px, 5vw, 56px) 0 var(--sec); }
.case-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-bottom: clamp(36px, 5vw, 64px); }
.case-head h1 { font-size: clamp(34px, 4.8vw, 56px); }
.case-client { font: 700 26px/1.1 var(--f-hand); color: var(--coral); margin: -4px 0 16px; }
.case-sum { font-size: 18.5px; color: var(--muted); }
.case-cover { margin: 0; }
.case-cover img { border-radius: 28px; border: 1.5px solid var(--forest); box-shadow: 8px 9px 0 var(--sun-soft); width: 100%; }
.case-body { max-width: 760px; margin: 0 auto 48px; font-size: 17.5px; }
.case-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 40px; }
.case-gallery figure { margin: 0; }
.case-gallery img { border-radius: 22px; border: 1.5px solid var(--forest); width: 100%; }
.case-services { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 28px; }
.case-back { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 0; }
@media (max-width: 900px) { .case-head { grid-template-columns: 1fr; } .case-gallery { grid-template-columns: 1fr; } }

/* ═══ 404 ══════════════════════════════════════════════════════ */

.e404 { text-align: center; padding: clamp(56px, 10vw, 120px) 0; }
.e404 h1 { font-size: clamp(40px, 6vw, 72px); }
.e404 .page-lead { margin-inline: auto; }
.e404 .chips { justify-content: center; margin: 32px auto; max-width: 900px; }

/* ═══ Підвал ═══════════════════════════════════════════════════ */

.site-foot { margin-top: clamp(40px, 6vw, 80px); background: var(--tint); border-radius: clamp(28px, 5vw, 56px) clamp(28px, 5vw, 56px) 0 0; padding: clamp(44px, 6vw, 72px) 0 24px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.foot-tag { font: 700 24px/1.15 var(--f-hand); color: var(--forest); margin: 16px 0 18px; max-width: 18ch; }
.foot-h { font-weight: 900; font-size: 16px; color: var(--forest); margin: 6px 0 14px; letter-spacing: .02em; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-col a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px; }
.foot-col a:hover { color: var(--coral); }
.foot-contacts li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 15.5px; }
.foot-contacts .ic { color: var(--sage); margin-top: 3px; }
.foot-contacts span { color: var(--muted); }
.soc { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.soc a { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); text-decoration: none; font-weight: 700; font-size: 14px; color: var(--forest); }
.soc a:hover { border-color: var(--forest); background: var(--card); }
.foot-bottom { margin-top: 44px; padding-top: 20px; border-top: 1.5px dashed var(--line-2); font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; } .foot-brand, .foot-grid > .foot-col:last-child { grid-column: 1 / -1; } }

/* ═══ Cookies ══════════════════════════════════════════════════ */

.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 420px; padding: 18px 20px; background: var(--card); border: 1.5px solid var(--forest); border-radius: 20px; box-shadow: 6px 7px 0 var(--sun-soft); font-size: 14.5px; }
.cookie p { margin: 0 0 12px; }
.cookie a { color: var(--forest); font-weight: 700; }
.cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 480px) { .cookie { left: 8px; right: 8px; bottom: 8px; max-width: none; } }

/* ═══ Поява блоків при прокрутці ═══════════════════════════════ */

.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; } }

@media print {
  .site-head, .site-foot, .cookie, .btn, .filter { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; }
}
