/* polyakov.diglab.ru — стили страницы. Палитра и ритм взяты из концепции конструктора. */
:root {
  --ink: #0D1D3B; --navy: #012063; --blue: #053EB5; --teal: #098F7F;
  --muted: #56617A; --body: #3B4763; --line: #EEF3FC; --line2: #E6EDFB; --line3: #E3EAF8;
  --tint: #F8FAFE; --pale: #D3E2FB;
  --gutter: clamp(20px, 5vw, 80px);
  --font: 'Helvetica Neue Cyr', 'Helvetica Neue', Helvetica, Arimo, Arial, sans-serif;
}
html { scroll-behavior: smooth; }
html[lang="zh"] { --font: 'Helvetica Neue', Helvetica, Arimo, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif; }
html[lang="ar"] { --font: 'Helvetica Neue', Helvetica, Arimo, 'Segoe UI', 'Noto Naskh Arabic', 'Noto Sans Arabic', Tahoma, sans-serif; }
body { margin: 0; background: #fff; }
.site { font-family: var(--font); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--blue); } a:hover { color: var(--navy); }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); box-sizing: border-box; }
.sec { padding: clamp(96px, 12vw, 168px) 0; }
.sec-line { border-bottom: 1px solid var(--line); }
.sec-tint { background: var(--tint); }
.row { display: flex; flex-wrap: wrap; gap: clamp(48px, 6vw, 96px); align-items: flex-start; }
.row-c { align-items: center; }

/* header */
.hdr { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr-in { padding-top: 8px; padding-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 12px; letter-spacing: .32em; text-transform: uppercase; }
.langs { display: flex; align-items: center; gap: 4px; }
.langs button { min-height: 44px; padding: 0 10px; background: none; border: 0; border-bottom: 1px solid transparent; color: var(--muted); font-family: inherit; font-size: 12px; letter-spacing: .14em; cursor: pointer; }
.langs button[aria-pressed="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.langs button:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }

/* hero */
.hero { position: relative; overflow: hidden; min-height: 820px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.flow { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero-in { position: relative; width: 100%; padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); display: flex; flex-wrap: wrap; align-items: center; gap: clamp(48px, 6vw, 96px); }
.hero-col { flex: 0 1 720px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.h1 { margin: 0; font-weight: 300; font-size: clamp(52px, 7.4vw, 112px); line-height: .96; letter-spacing: -.025em; color: var(--ink); }
.h1 span { display: block; }
.hero-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hero-list li { display: flex; gap: 14px; align-items: baseline; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.45; }
.hero-q { margin: 8px 0 0; max-width: 34em; display: flex; flex-direction: column; gap: 18px; }
.hero-q p { margin: 0; font-size: clamp(19px, 1.7vw, 24px); font-weight: 300; line-height: 1.45; color: var(--navy); }
.rule { display: block; width: 44px; height: 1px; background: var(--blue); }
.cue { position: absolute; left: 50%; bottom: 28px; width: 1px; height: 56px; background: #E3EAF8; overflow: hidden; }
.cue-dot { display: block; width: 1px; height: 16px; background: var(--blue); }

/* position */
.fig { flex: 1 1 540px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.fig figcaption { font-size: 13px; line-height: 1.5; color: var(--muted); }
.fig-t { font-size: 11px; font-style: italic; fill: var(--muted); }
.pos-col { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.lead { margin: 0; font-size: clamp(26px, 2.6vw, 36px); font-weight: 300; line-height: 1.25; letter-spacing: -.01em; }
.text { margin: 0; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--body); }
.cols2 { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 24px; }
.cols2 > div { flex: 1 1 240px; min-width: 0; }
.eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.numlist { list-style: none; margin: 0; padding: 0; }
.numlist li { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line2); font-size: 16px; line-height: 1.4; }
.numlist li.last { border-bottom: 1px solid var(--line2); }
.num { flex: none; padding-top: 3px; font-size: 12px; letter-spacing: .1em; color: var(--blue); }

/* brand */
.orbit { flex: 0 1 460px; width: 100%; min-width: 0; margin: 0 auto; position: relative; aspect-ratio: 1 / 1; }
.brand-col { flex: 1 1 480px; min-width: 0; }
.brand-p { margin: 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 300; line-height: 1.38; }
.models-h { margin: clamp(72px, 9vw, 120px) 0 32px; font-size: clamp(22px, 2vw, 28px); font-weight: 400; color: var(--navy); }
.grid { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line3); border: 1px solid var(--line3); }
.dir { flex: 1 1 260px; min-width: 0; box-sizing: border-box; background: #fff; display: flex; flex-direction: column; }
.tbtn { display: flex; flex-direction: column; align-items: stretch; gap: 14px; width: 100%; box-sizing: border-box; padding: 28px 26px 0; background: none; border: 0; font: inherit; color: inherit; text-align: start; cursor: pointer; }
.tbtn:focus-visible { outline: 2px solid var(--blue); outline-offset: -6px; }
.plus { margin-inline-start: auto; transform: rotate(0deg); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.tbtn[aria-expanded="true"] .plus { transform: rotate(45deg); }
.dir-t { font-size: 17px; font-weight: 500; line-height: 1.3; }
.dir-d { margin: 0; padding: 14px 26px 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.dir-d[hidden] { display: none; }
.bar { display: block; width: 28px; height: 2px; background: var(--blue); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.dir:hover .bar, .dir.open .bar, .cs:hover .bar { width: 100%; }

/* work */
.h2 { margin: 0; font-size: clamp(26px, 2.6vw, 36px); font-weight: 300; line-height: 1.25; }
.eyebrow-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 24px; }
.dash { display: inline-block; width: 40px; height: 1px; background: var(--pale); }
.marq { position: relative; overflow: hidden; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
.track { display: flex; gap: 24px; width: max-content; padding: 2px 0; animation: marq 56s linear infinite; }
.marq:hover .track, .marq:focus-within .track { animation-play-state: paused; }
.cs { flex: none; width: min(380px, 82vw); min-height: 300px; box-sizing: border-box; border: 1px solid var(--line3); background: #fff; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
html[dir="rtl"] .cs { direction: rtl; }
.cs-cat { margin: 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); }
.cs-text { margin: 0; font-size: 18px; font-weight: 300; line-height: 1.5; }
.cs-rh { margin: 0 0 4px; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.cs-r { margin: 6px 0 0; font-size: 20px; line-height: 1.3; color: var(--navy); }

/* contact */
.sec-contact { padding-bottom: clamp(72px, 9vw, 120px); }
.contact-col { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.mail { font-size: clamp(30px, 4.4vw, 64px); font-weight: 300; line-height: 1.1; letter-spacing: -.01em; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; direction: ltr; display: inline-block; }
html[dir="rtl"] .mail { align-self: flex-start; }
.orbit-s { flex: 0 1 260px; width: 100%; min-width: 0; margin: 0 auto; aspect-ratio: 1 / 1; position: relative; }
.cform { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.cform-row { display: flex; flex-wrap: wrap; gap: 18px; }
.cform-row .field { flex: 1 1 240px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { font: inherit; font-family: var(--font); font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--ink); background: #fff; border: 0; border-bottom: 1px solid #C9D8F6; border-radius: 0; padding: 10px 0; min-height: 44px; box-sizing: border-box; width: 100%; transition: border-color .3s; }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--blue); }
.field.bad input, .field.bad textarea { border-bottom-color: #C0392B; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 26px; box-sizing: border-box; border: 1px solid var(--navy); background: none; color: var(--navy); text-decoration: none; font-family: inherit; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; transition: background .3s, color .3s; }
.btn:hover { background: var(--navy); color: #fff; }
.btn:disabled { opacity: .55; cursor: progress; }
html[dir="rtl"] .btn svg { transform: scaleX(-1); }
.cform-status { margin: 0; font-size: 14px; line-height: 1.4; color: var(--muted); min-height: 1.4em; }
.cform-status.ok { color: var(--teal); }
.cform-status.err { color: #C0392B; }
.cform-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* footer */
.ftr { border-top: 1px solid var(--line); }
.ftr-in { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); }

/* motion */
@keyframes rv { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pulse { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes tw { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.7); opacity: .55; } }
@keyframes flowin { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes cue { from { transform: translateY(-16px); } to { transform: translateY(56px); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes marq { to { transform: translateX(calc(-50% - 12px)); } }
.pulse { stroke-dasharray: .05 .95; animation: pulse 8s linear infinite; }
.spin { transform-origin: 0 0; animation: spin 16s linear infinite; }
.tw { transform-box: fill-box; transform-origin: center; animation: tw 4.8s ease-in-out infinite; }
.flowin { animation: flowin 1.8s cubic-bezier(.2,.7,.2,1) both; }
.cue-dot { animation: cue 2.4s cubic-bezier(.4,0,.2,1) infinite; }
.draw { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
@supports (animation-timeline: view()) {
  .rv { animation: rv linear both; animation-timeline: view(); animation-range: entry 0% cover 26%; }
  .draw { animation: draw linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; }
  .fade { animation: fade linear both; animation-timeline: view(); animation-range: entry 10% cover 50%; }
}
@supports not (animation-timeline: view()) {
  .draw { animation: draw 3.2s cubic-bezier(.4,0,.2,1) both; }
}
.still .pulse { animation: none; opacity: 0; }
.still .spin, .still .tw, .still .cue-dot, .still .flowin, .still .track { animation: none; }
.still .marq { overflow-x: auto; }
@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; opacity: 0; }
  .spin, .tw, .cue-dot, .flowin, .rv, .draw, .fade, .track { animation: none !important; }
  .marq { overflow-x: auto; }
}

/* телефоны и узкие планшеты */
@media (max-width: 720px) {
  .hero { min-height: min(820px, 100svh); }
  .hero-col { gap: 24px; }
  .hero-q { max-width: none; }
  .cue { display: none; }
  .brand { letter-spacing: .22em; }
  .langs { margin-inline-start: auto; }
  .langs button { padding: 0 8px; }
  .sec { padding: 72px 0; }
  .row, .hero-in { gap: 40px; }
  .orbit { flex-basis: 300px; max-width: 320px; }
  .models-h { margin-top: 56px; }
  .tbtn { padding: 22px 20px 0; }
  .dir-d { padding: 12px 20px 0; }
  .dir > div:last-child { padding: 18px 20px 24px; }
  .marq { -webkit-mask-image: none; mask-image: none; overflow-x: auto; scroll-snap-type: x proximity; padding: 0 var(--gutter); scrollbar-width: none; }
  .marq::-webkit-scrollbar { display: none; }
  .track { animation: none; }
  .cs { scroll-snap-align: start; }
  .cs[aria-hidden="true"] { display: none; }
  .orbit-s { flex-basis: 200px; max-width: 220px; }
  .contact-col { gap: 28px; }
}
@media (max-width: 420px) {
  .h1 { font-size: 15vw; }
  .mail { font-size: 8.4vw; }
}
