/* Сайт «Сезон гарбузів» — pumpkinseason.kopachev.life. Дизайн 2026-10 (попередній — git-тег site-design-v1). */
@font-face { font-family: "Unbounded"; font-weight: 200 900; font-display: swap; src: url("/assets/fonts/Unbounded-cyrillic.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 200 900; font-display: swap; src: url("/assets/fonts/Unbounded-latin.woff2") format("woff2"); 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: "Manrope"; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/Manrope-cyrillic.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/Manrope-latin.woff2") format("woff2"); 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: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("/assets/fonts/JetBrainsMono-400-cyrillic.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("/assets/fonts/JetBrainsMono-400-latin.woff2") format("woff2"); 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; }

:root {
  --bg: #0E0C09; --bg2: #15110C; --card: #17130E; --card2: #1C1711; --kbd: #241E16;
  --ink: #F3EADB; --ink2: #E2D8C6; --muted: #B9AD9A; --faint: #8F8576;
  --line: rgba(243,234,219,.12); --line2: rgba(243,234,219,.22);
  --accent: #F0893A; --on-accent: #1A1107;
  --display: "Unbounded", system-ui, sans-serif; --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
  --shadow: 0 44px 90px -28px rgba(0,0,0,.8), 0 0 0 1px rgba(255,235,205,.07);
  --scrim: linear-gradient(180deg, rgba(14,12,9,0) 38%, rgba(14,12,9,.86) 100%);
  --vignette: radial-gradient(120% 95% at 50% 42%, rgba(0,0,0,0) 52%, rgba(0,0,0,.55) 100%);
  --side: linear-gradient(90deg, rgba(14,12,9,.9) 0%, rgba(14,12,9,.55) 40%, rgba(14,12,9,0) 76%);
  --gut: 32px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--ink); }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -.02em; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* мова: показуємо лише блоки поточної */
html[data-lang="uk"] [lang="en"]:not(html), html[data-lang="en"] [lang="uk"]:not(html) { display: none !important; }

.wrap { max-width: 1320px; margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.eyebrow { font: 400 13px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.mono { font-family: var(--mono); font-weight: 400; }
.muted { color: var(--muted); }
.h-sec { margin-top: 18px; font-weight: 700; font-size: clamp(34px, 4.6vw, 68px); line-height: 1.02; letter-spacing: -.025em; }
.h-mid { margin-top: 18px; font-weight: 700; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.05; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.sec-head > p { max-width: 440px; font-size: 17px; line-height: 1.65; color: var(--muted); }
.mob { display: none; }
.mob-b { display: none; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 18px 30px; border-radius: 999px; border: 1px solid transparent;
  font: 700 17px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s ease, background-color .35s ease, border-color .35s ease; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 18px 40px -12px rgba(240,137,58,.55); }
.btn-primary:hover { color: var(--on-accent); }
.btn-ghost { color: var(--ink); font-weight: 600; border-color: rgba(243,234,219,.3); background: rgba(14,12,9,.35); }
.btn-sm { padding: 12px 20px; font-size: 15px; }
.btn .arr { transition: transform .35s var(--ease); }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line2); font: 400 13px/1 var(--mono); color: #E6DCCB; text-decoration: none; }
.chip { font: 400 13px/1 var(--mono); color: var(--ink2); border: 1px solid rgba(243,234,219,.18); border-radius: 999px; padding: 10px 16px; }
.tag { align-self: flex-start; font: 400 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; border-radius: 999px; padding: 7px 12px; }
.tag-accent { color: var(--on-accent); background: var(--accent); }
.tag-line { color: var(--ink2); border: 1px solid rgba(243,234,219,.25); }
.tag-dash { color: var(--muted); border: 1px dashed rgba(243,234,219,.25); }

/* ---------- навігація ---------- */
.nav { position: relative; z-index: 3; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font: 700 17px/1 var(--display); letter-spacing: .02em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.nl { color: #E6DCCB; text-decoration: none; padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease), color .3s; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.langs { display: flex; border: 1px solid var(--line2); border-radius: 999px; overflow: hidden; }
.langs button { border: 0; background: transparent; color: #E6DCCB; font: 400 13px/1 var(--mono); padding: 0 14px; min-height: 44px; cursor: pointer; transition: background-color .3s, color .3s; }
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.icon-btn { width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(14,12,9,.35); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }

/* мобільне меню */
.menu { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; padding: 24px 20px 32px; visibility: hidden; opacity: 0; transition: opacity .35s ease, visibility 0s linear .35s; }
html.menu-open .menu { visibility: visible; opacity: 1; transition: opacity .35s ease; }
html.menu-open { overflow: hidden; }
.menu-top { display: flex; align-items: center; justify-content: space-between; }
.menu-links { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.menu-links a { color: var(--ink); text-decoration: none; font: 700 34px/1.2 var(--display); padding: 10px 0; opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.menu-links a.acc { color: var(--accent); }
html.menu-open .menu-links a { opacity: 1; transform: none; }
html.menu-open .menu-links a:nth-child(2) { transition-delay: .05s; } html.menu-open .menu-links a:nth-child(3) { transition-delay: .1s; }
html.menu-open .menu-links a:nth-child(4) { transition-delay: .15s; } html.menu-open .menu-links a:nth-child(5) { transition-delay: .2s; } html.menu-open .menu-links a:nth-child(6) { transition-delay: .25s; }
.menu-foot { border-top: 1px solid var(--line); padding-top: 20px; font-size: 15px; line-height: 1.6; color: var(--muted); }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 50; pointer-events: none; }

/* ---------- фото-картки ---------- */
.shot { position: relative; margin: 0; border-radius: 24px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.shot > img, .fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ov { position: absolute; inset: 0; pointer-events: none; }
.ov-scrim { background: var(--scrim); } .ov-vig { background: var(--vignette); } .ov-side { background: var(--side); }
.zoom { transition: transform 1.2s var(--ease); }
.cap { position: absolute; left: 28px; right: 28px; bottom: 24px; display: flex; flex-direction: column; gap: 6px; transition: transform .6s var(--ease); }
.cap-lg { left: 36px; right: 36px; bottom: 32px; gap: 10px; }
.cap .k { font: 400 13px/1.4 var(--mono); color: var(--accent); }
.cap .t { font: 700 22px/1.15 var(--display); }
.cap-lg .t { font-size: clamp(24px, 2.6vw, 38px); line-height: 1.1; }
.cap .d { font-size: 15px; line-height: 1.5; color: var(--ink2); }
.cap-lg .d { font-size: 16px; line-height: 1.6; max-width: 560px; }
.cap-sm { left: 22px; right: 22px; bottom: 20px; font: 700 18px/1.2 var(--display); }

.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s5 { grid-column: span 5; } .s6 { grid-column: span 6; } .s7 { grid-column: span 7; } .s8 { grid-column: span 8; } .r2 { grid-row: span 2; }
.split { display: grid; gap: 40px 56px; align-items: center; }
.sp-1-2 { grid-template-columns: minmax(0,1fr) minmax(0,2fr); align-items: start; gap: 32px 48px; }
.sp-4-8 { grid-template-columns: minmax(0,4fr) minmax(0,8fr); align-items: start; gap: 32px 48px; }
.sp-5-7 { grid-template-columns: minmax(0,5fr) minmax(0,7fr); }
.sp-6-6 { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.sp-7-5 { grid-template-columns: minmax(0,7fr) minmax(0,5fr); }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.h-640 { min-height: 640px; } .h-660 { min-height: 660px; } .h-520 { min-height: 520px; } .h-400 { min-height: 400px; } .h-320 { min-height: 320px; } .h-310 { min-height: 310px; } .h-300 { min-height: 300px; } .h-250 { min-height: 250px; }

.tile { background: var(--card); border: 1px solid rgba(243,234,219,.08); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .5s var(--ease), border-color .5s, background-color .5s; text-decoration: none; color: var(--ink); }
.tile-2 { background: var(--card2); padding: 36px; gap: 14px; }
.tile .t { font-weight: 700; font-size: 18px; }
.tile .d { font-size: 15px; line-height: 1.65; color: var(--muted); }
.tile .h { font: 700 20px/1.2 var(--display); }

.stats { display: grid; border-top: 1px solid rgba(243,234,219,.16); }
.stats > div { padding: 24px 20px 0 0; }
.stats .n { font: 700 clamp(28px, 2.8vw, 38px)/1.1 var(--display); letter-spacing: -.02em; }
.stats .l { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--muted); }

.rows { border-top: 1px solid var(--line); }
.rows > * { border-bottom: 1px solid var(--line); }
kbd { font: 400 13px/1 var(--mono); background: var(--kbd); border: 1px solid rgba(243,234,219,.18); border-bottom-width: 3px; border-radius: 8px; padding: 6px 10px; color: var(--ink); }
.keys { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 32px; }
.keys > div { display: flex; align-items: center; gap: 16px; padding: 16px 0; }
.keys .kk { display: flex; gap: 6px; min-width: 112px; }
.keys .kd { font-size: 15px; color: var(--ink2); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 920px; display: flex; flex-direction: column; overflow: hidden; }
.hero-body { position: relative; z-index: 2; flex: 1; width: 100%; padding-top: 80px; padding-bottom: 56px; display: flex; flex-direction: column; justify-content: flex-end; gap: 28px; }
.h1 { font-weight: 800; font-size: clamp(50px, 8.4vw, 128px); line-height: .95; letter-spacing: -.03em; max-width: 1000px; text-shadow: 0 6px 40px rgba(0,0,0,.45); }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: inline-block; }
.hero-lead { max-width: 600px; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.55; color: #E9DFCE; }
.hero-meta { font: 400 13px/1.6 var(--mono); color: var(--muted); }
.mob-card { flex-direction: column; gap: 14px; padding: 20px; border-radius: 20px; background: rgba(28,23,17,.86); border: 1px solid var(--line); }
.mob-card .t { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; }
.mob-card .d { font-size: 15px; line-height: 1.55; color: var(--muted); }

.ticker-wrap { border-top: 1px solid rgba(243,234,219,.08); border-bottom: 1px solid rgba(243,234,219,.08); overflow: hidden; padding: 22px 0; }
.ticker { display: flex; width: max-content; gap: 48px; padding-right: 48px; font: 500 22px/1 var(--display); color: #6F6555; white-space: nowrap; }
.ticker i { font-style: normal; color: var(--accent); }

.banner { position: relative; height: 760px; overflow: hidden; }
.banner > img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }
.band { background: var(--bg2); border-top: 1px solid rgba(243,234,219,.07); border-bottom: 1px solid rgba(243,234,219,.07); }

.pt-140 { padding-top: 140px; } .pt-160 { padding-top: 160px; } .pt-120 { padding-top: 120px; }
.pb-120 { padding-bottom: 120px; } .pb-140 { padding-bottom: 140px; } .pb-160 { padding-bottom: 160px; }
.mt-160 { margin-top: 160px; }

.footer { padding-top: 56px; padding-bottom: 48px; border-top: 1px solid rgba(243,234,219,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 32px; }
.footer .links { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; font-size: 15px; }
.footer .legal { flex-basis: 100%; padding-top: 24px; border-top: 1px solid rgba(243,234,219,.07); font-size: 12px; line-height: 1.7; color: var(--faint); }
.footer .legal a { color: var(--faint); }

/* FAQ (details) */
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; font-weight: 700; font-size: 18px; }
.qa summary::-webkit-details-marker { display: none; }
.qa .plus { font-size: 26px; line-height: 1; color: var(--accent); transition: transform .4s var(--ease); }
.qa[open] .plus { transform: rotate(45deg); }
.qa p { margin: 0 0 24px; max-width: 640px; font-size: 16px; line-height: 1.7; color: var(--muted); }

/* документ (конфіденційність) */
.doc h2 { margin: 0 0 16px; font-weight: 700; font-size: 24px; line-height: 1.2; scroll-margin-top: 24px; }
.doc p, .doc li { font-size: 17px; line-height: 1.75; color: #D9CFBE; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.doc section { padding: 40px 0; border-top: 1px solid rgba(243,234,219,.1); }
.doc .lead-sec { background: var(--card2); border: 1px solid rgba(243,234,219,.1); border-radius: 24px; padding: 32px; margin-bottom: 24px; }
.doc .lead-sec p { margin: 0; color: var(--ink2); }
.doc a { color: var(--ink); text-underline-offset: 3px; }
.doc ul + h2, .doc p + h2 { margin-top: 32px; }
.toc { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; position: sticky; top: 24px; }
.toc a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 8px 0; transition: color .3s, padding-left .35s var(--ease); }

/* ---------- hover лише на пристроях з мишею ---------- */
@media (hover: hover) {
  .btn:hover { transform: translateY(-3px); }
  .btn:hover .arr { transform: translateX(4px); }
  .btn-ghost:hover { background-color: rgba(243,234,219,.12); color: var(--ink); }
  .nl:hover { background-size: 100% 1px; color: #fff; }
  .shot:hover .zoom { transform: scale(1.05); }
  .shot:hover .cap { transform: translateY(-6px); }
  .tile:hover { transform: translateY(-4px); border-color: rgba(243,234,219,.2); background-color: #211B14; }
  .toc a:hover { color: #fff; padding-left: 6px; }
  .langs button:hover { color: #fff; }
}

/* ---------- анімації ---------- */
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes ken { from { transform: scale(1.16); } to { transform: scale(1); } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes beat { 0%,100% { transform: scale(1); } 12% { transform: scale(1.18); } 24% { transform: scale(1); } 36% { transform: scale(1.12); } 48% { transform: scale(1); } }
@keyframes roll { 0% { transform: translateX(-140px) rotate(-200deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes rv { from { opacity: 0; translate: 0 56px; } to { opacity: 1; translate: 0 0; } }
@keyframes clipin { from { clip-path: inset(22% 0 0 0); scale: 1.18; } to { clip-path: inset(0 0 0 0); scale: 1; } }
@keyframes par { from { translate: 0 -7%; } to { translate: 0 7%; } }
@keyframes prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .35s ease both vt-out; }
::view-transition-new(root) { animation: .5s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: no-preference) {
  .ken { animation: ken 2.8s var(--ease) both; }
  .rise { animation: rise 1.1s var(--ease) both; }
  .fade { animation: fade 1s var(--ease) both; }
  .d1 { animation-delay: .15s; } .d2 { animation-delay: .3s; } .d3 { animation-delay: .45s; } .d4 { animation-delay: .6s; } .d5 { animation-delay: .75s; }
  .ticker { animation: drift 48s linear infinite; }
  .beat { animation: beat 2.4s ease-in-out 1.2s infinite; }
  .roll { animation: roll 1.4s var(--ease) .35s both; }
  @supports (animation-timeline: view()) {
    .rv { animation: rv linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .rv-img { animation: clipin linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
    .par { animation: par linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .progress { animation: prog linear both; animation-timeline: scroll(root); }
  }
  /* запасний варіант без scroll-driven animations (Firefox): site.js додає .io і .in */
  html.io .rv { opacity: 0; translate: 0 48px; transition: opacity .9s var(--ease), translate .9s var(--ease); }
  html.io .rv.in { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- адаптив ---------- */
@media (min-width: 961px) {
  .h1 .line > span { white-space: nowrap; }
}
@media (max-width: 960px) {
  .desk { display: none !important; }
  .mob { display: flex; }
  .mob-b { display: block; }
  .g12 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g12 > * { grid-column: span 2; grid-row: auto; }
  .g12 > .half { grid-column: span 1; }
  .split, .sp-1-2, .sp-4-8, .sp-5-7, .sp-6-6, .sp-7-5 { grid-template-columns: minmax(0,1fr); }
  .cols3 { grid-template-columns: minmax(0,1fr); }
  .hero { min-height: 760px; }
  .h-640, .h-660, .h-520 { min-height: 460px; }
  .banner { height: 560px; }
  .toc { display: none; }
}
@media (max-width: 600px) {
  :root { --gut: 20px; }
  .pt-140, .pt-160, .pt-120 { padding-top: 88px; }
  .pb-120, .pb-140, .pb-160 { padding-bottom: 88px; }
  .mt-160 { margin-top: 88px; }
  .g12 { gap: 14px; }
  .g12 > .half { grid-column: span 2; }
  .stats4 { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .cols2, .keys { grid-template-columns: minmax(0,1fr); }
  .h-640, .h-660, .h-520 { min-height: 420px; }
  .h-400, .h-320, .h-310, .h-300, .h-250 { min-height: 300px; }
  .banner { height: 520px; }
  .card-pad { padding: 28px !important; }
  .cap, .cap-lg { left: 22px; right: 22px; bottom: 22px; }
  .dronecap { left: 22px !important; right: 22px !important; top: auto !important; bottom: 28px !important; justify-content: flex-end !important; }
  .btn { padding: 16px 24px; font-size: 16px; }
  .doc p, .doc li { font-size: 16px; }
}
