/* Typhoon Digital Development — направление «Масштаб» (16.11.2026).
   Сайт собран из крупных имён: заголовок-экран, строки людей, покупатели огромным шрифтом. */
:root {
  --sky1: #bcd5f8;
  --sky2: #e3eefc;
  --ink: #0b1f44;
  --ink2: #33466e;
  --navy: #0a2a55;
  --navy2: #071d3d;
  --blue: #0e57a7;
  --mag: #9d248b;
  --mag-l: #d58bcf;
  --line: rgba(11, 31, 68, .18);
  --line-d: rgba(255, 255, 255, .18);
  --gut: clamp(16px, 4.4vw, 64px);
  --cond: "Fira Sans Extra Condensed", "Arial Narrow", sans-serif;
  --text: "Fira Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sky2); color: var(--ink); font: 400 17px/1.55 var(--text); overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
:focus-visible { outline: 2px solid var(--mag); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gut); }

/* ---------- шапка ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav .wrap { display: flex; align-items: center; gap: 32px; height: 64px; }
.nav.is-solid { background: rgba(227, 238, 252, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand b { font: 700 19px/1 Unbounded, var(--cond); letter-spacing: .02em; color: var(--ink); }
.brand span { font: 400 15px/1 var(--text); color: var(--ink2); }
.nav ul { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; }
.nav ul a { text-decoration: none; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav ul a:hover, .nav ul a[aria-current="true"] { border-color: var(--mag); }
.m-only { display: none; }
.hmail { margin-left: auto; font-size: 15px; text-decoration: none; border-bottom: 1px solid var(--line); }
.hmail:hover { color: var(--mag); border-color: var(--mag); }
.lang { display: flex; gap: 8px; font-size: 14px; color: var(--ink2); }
.lang span { font-weight: 500; color: var(--ink); }
.lang a { text-decoration: none; }
.lang a:hover { color: var(--mag); }
.burger { display: none; width: 40px; height: 40px; margin-left: auto; position: relative; }
.burger i { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.burger i:nth-child(1) { top: 13px; } .burger i:nth-child(2) { top: 19px; } .burger i:nth-child(3) { top: 25px; }
.nav.is-open .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .burger i:nth-child(2) { opacity: 0; }
.nav.is-open .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- первый экран: знак + TYPHOON одной строкой во всю ширину ---------- */
.hero { position: relative; min-height: 100svh; overflow: clip; background: linear-gradient(180deg, var(--sky1), var(--sky2) 92%); }
.hero .swarm, .contacts .swarm { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-in {
  position: relative; max-width: 1440px; margin: 0 auto; min-height: 100svh;
  padding: 104px var(--gut) clamp(32px, 5vh, 56px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); column-gap: 48px;
  grid-template-rows: minmax(0, 1fr) auto auto minmax(32px, 1fr) auto;
}
.hero h1 { display: contents; margin: 0; font-weight: 800; }
.h-top {
  --hs: clamp(78px, min(21vw, 36svh), 330px);
  grid-row: 2; grid-column: 1 / -1; display: flex; align-items: baseline; gap: calc(var(--hs) * .05);
  white-space: nowrap; margin-left: calc(var(--hs) * -.01);
}
.mark { height: calc(var(--hs) * .69); width: auto; aspect-ratio: 9 / 6; flex: none; overflow: visible; }
.word { font: 800 var(--hs)/.78 var(--cond); text-transform: uppercase; color: var(--ink); letter-spacing: -.005em; }
.h-sub { grid-row: 3; grid-column: 1; align-self: end; font: 800 clamp(44px, 6.4vw, 96px)/.95 var(--cond); color: var(--ink); margin-top: clamp(12px, 2vh, 24px); }
.h-sub em { font-style: normal; color: var(--mag); }
.quote { grid-row: 3; grid-column: 2; align-self: end; margin: 0 0 .4em; }
.quote blockquote { margin: 0; font: italic 600 clamp(20px, 1.8vw, 26px)/1.2 var(--cond); color: var(--ink); }
.quote blockquote::before { content: "«"; } .quote blockquote::after { content: "»"; }
html[lang="en"] .quote blockquote::before { content: "“"; } html[lang="en"] .quote blockquote::after { content: "”"; }
.quote figcaption { margin-top: 10px; font-size: 15px; color: var(--ink2); }
.quote figcaption::before { content: "— "; }
.about { grid-row: 5; grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 1180px; }
.about p { margin: 0; }
.about .lead { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.45; }
.about .sub { font-size: clamp(16px, 1.15vw, 17px); color: var(--ink2); }

/* знак собирается по клеткам */
.mark .cl, .mark .tr { transform-box: fill-box; transform-origin: center; animation: cell-in .5s var(--ease) both; animation-delay: calc(.1s + var(--i) * 22ms); }
@keyframes cell-in { from { opacity: 0; } }

/* ---------- секции ---------- */
section { position: relative; }
.sky { background: var(--sky2); padding: clamp(80px, 10vw, 144px) 0; }
.dark { background: var(--navy); color: #fff; padding: clamp(80px, 10vw, 144px) 0; }
h2 { margin: 0 0 clamp(28px, 3vw, 44px); font: 600 clamp(24px, 2.2vw, 32px)/1.1 var(--cond); opacity: .72; }
.rows .row:last-child { border-bottom: 1px solid var(--line); }
.row { border-top: 1px solid var(--line); }
.dark .row { border-color: var(--line-d); }
.row-h { width: 100%; display: grid; align-items: center; column-gap: 32px; padding: 28px 0; }
button.row-h:hover .nm { color: var(--mag); }
.dark button.row-h:hover .nm { color: var(--mag-l); }
.tg { min-width: 150px; display: inline-flex; align-items: center; gap: 10px; font-size: 15px; white-space: nowrap; }
.tg span { border-bottom: 2px solid currentColor; padding-bottom: 1px; }
.tg i { width: 14px; height: 14px; flex: none; background: linear-gradient(135deg, var(--blue) 50%, #9ec0ea 50%); transition: background .3s; }
.dark .tg i { background: linear-gradient(135deg, #5689c2 50%, #c5d8f2 50%); }
[aria-expanded="true"] .tg i { background: var(--mag); }
.dark [aria-expanded="true"] .tg i { background: var(--mag-l); }
.row-b { overflow: hidden; contain: content; }
.row-b[hidden] { display: none; }

/* руководство */
.person .row-h { grid-template-columns: 136px minmax(0, 1fr) 150px; grid-template-areas: "ph nm tg" "ph rl tg"; row-gap: 10px; align-content: center; }
.person .ph { grid-area: ph; } .person .nm { grid-area: nm; align-self: end; } .person .rl { grid-area: rl; align-self: start; } .person .tg { grid-area: tg; justify-self: start; }
.ph { width: 136px; aspect-ratio: 579 / 777; overflow: hidden; background: #cfdff5; }
.ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .5s; }
.person:hover .ph img { filter: none; }
.person .nm { font: 800 clamp(40px, 5.4vw, 80px)/.95 var(--cond); transition: color .25s; }
.person .rl { font-size: 17px; color: var(--ink2); }
.person .row-b { padding: 0 0 48px 168px; }
.cols { columns: 2 340px; column-gap: 56px; max-width: 1040px; font-size: 16px; }
.cols p { margin: 0 0 1em; break-inside: avoid-column; }
.cols ul { margin: 0 0 1em; padding-left: 1.1em; }
.cols li { margin-bottom: .4em; break-inside: avoid; }
.cols a, .deal .row-b a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* продажи: строки, название компании крупно */
.deal .row-h { grid-template-columns: 168px minmax(0, 1fr) 150px; grid-template-areas: "lg nm tg" "lg ds tg" "lg bu tg"; row-gap: 8px; }
.deal .lg { grid-area: lg; align-self: center; width: 168px; height: 72px; background: #e3eefc; display: flex; align-items: center; justify-content: center; padding: 10px 16px; }
.deal .lg img { max-height: 46px; max-width: 120px; object-fit: contain; }
.deal .lg img.wide { max-width: 136px; max-height: 32px; }
.deal .nm { grid-area: nm; font: 800 clamp(36px, 4.4vw, 64px)/.95 var(--cond); transition: color .25s; }
.deal .ds { grid-area: ds; font-size: 15px; color: rgba(255, 255, 255, .72); max-width: 560px; }
.deal .bu { grid-area: bu; font-size: 15px; color: rgba(255, 255, 255, .72); }
.deal .tg { grid-area: tg; align-self: center; }
.deal .row-b { padding: 0 0 40px 200px; max-width: 1040px; font-size: 16px; }
.deal .row-b .full { color: rgba(255, 255, 255, .72); margin-top: 0; }
.deal blockquote { margin: 0 0 1em; font-size: 17px; line-height: 1.55; }
.deal .row-b b { font: 700 22px/1.2 var(--cond); }
.deal .row-b a { color: var(--mag-l); }
.deal .src { color: rgba(255, 255, 255, .72); font-size: 15px; }

/* проекты */
.proj { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) 140px; align-items: baseline; column-gap: 40px; padding: 28px 0; }
.proj .pn { font: 800 clamp(40px, 5.4vw, 80px)/.95 var(--cond); text-decoration: none; transition: color .25s; }
.proj .pn:hover { color: var(--mag); }
.proj .ds { font-size: 17px; color: var(--ink2); max-width: 520px; }
.proj .dom { justify-self: end; font-size: 15px; color: var(--blue); text-underline-offset: 3px; }

/* контакты */
.contacts { overflow: clip; padding: clamp(96px, 12vw, 168px) 0; }
.contacts .wrap { position: relative; }
.contacts h2 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; }
.big-mail { display: inline-block; font: 800 clamp(44px, 10.5vw, 160px)/.9 var(--cond); text-decoration: none; color: #fff; transition: color .25s; }
.big-mail:hover { color: var(--mag-l); }
.note { margin: clamp(20px, 2vw, 32px) 0 0; font-size: 17px; color: rgba(255, 255, 255, .8); display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; }
.copy { border-bottom: 2px solid currentColor; color: #fff; }
.copy:hover { color: var(--mag-l); }

/* подвал */
.foot { background: var(--navy2); color: rgba(255, 255, 255, .72); padding: 28px 0; font-size: 14px; }
.foot .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot .brand b { color: #fff; font-size: 16px; }
.foot .brand span { color: rgba(255, 255, 255, .72); }
.foot .copy-r { margin-left: auto; }
.foot .lang, .foot .lang span { color: #fff; }

/* ---------- планшет и телефон ---------- */
@media (max-width: 1100px) {
  .hmail { display: none; }
  .lang { margin-left: auto; }
  .nav ul { gap: 18px; }
}
@media (max-width: 860px) {
  .nav .wrap { gap: 16px; }
  .nav nav { position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: var(--sky2); box-shadow: inset 0 1px 0 var(--line); display: none; overflow-y: auto; }
  .nav.is-open nav { display: block; }
  .nav.is-open { background: var(--sky2); }
  .nav ul { flex-direction: column; gap: 0; padding: 8px var(--gut) 20px; }
  .nav ul a { display: block; padding: 10px 0; font: 800 clamp(34px, 10vw, 44px)/1.1 var(--cond); border: 0; }
  .nav ul .m-only a { margin-top: 24px; font: 500 18px/1.3 var(--text); color: var(--blue); }
  .m-only { display: block; }
  .lang { margin-left: auto; }
  .burger { display: block; margin-left: 0; }
  .brand span { display: none; }

  .hero-in { grid-template-columns: minmax(0, 1fr); padding-top: 96px; grid-template-rows: minmax(0, .6fr) auto auto auto minmax(32px, 1fr) auto; }
  .h-top { --hs: 21vw; }
  .quote { grid-row: 4; }
  .about { grid-row: 6; }
  .h-sub { font-size: clamp(40px, 11.5vw, 72px); }
  .quote { grid-column: 1; margin-top: 28px; }
  .about { grid-template-columns: 1fr; gap: 16px; }

  .person .row-h { grid-template-columns: 88px minmax(0, 1fr); grid-template-areas: "ph nm" "ph rl" "ph tg"; row-gap: 6px; align-items: start; align-content: start; }
  .person .nm, .person .rl { align-self: start; }
  .person .ph { grid-area: ph; width: 88px; }
  .person .nm { grid-area: nm; font-size: clamp(30px, 9vw, 44px); }
  .person .rl { grid-area: rl; font-size: 15px; }
  .person .tg { grid-area: tg; margin-top: 6px; }
  .person .row-b { padding: 0 0 36px; }
  .cols { columns: 1; }

  .deal .row-h { grid-template-columns: minmax(0, 1fr); grid-template-areas: "lg" "nm" "ds" "bu" "tg"; row-gap: 8px; }
  .deal .nm { font-size: clamp(32px, 9vw, 44px); }
  .deal .lg { width: auto; height: 48px; padding: 8px 12px; justify-self: start; }
  .deal .lg img { max-height: 30px; } .deal .lg img.wide { max-height: 22px; max-width: 120px; }
  .deal .tg { margin-top: 8px; }
    .deal .row-b { padding: 0 0 32px; }
  .proj { grid-template-columns: 1fr; row-gap: 8px; }
  .proj .dom { justify-self: start; }
  .foot .copy-r { margin-left: 0; width: 100%; order: 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


#projects { padding-bottom: clamp(56px, 6vw, 88px); }

/* узкий ноутбук: цитата уходит под «digital development», чтобы строка не ломалась */
@media (max-width: 1100px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto auto minmax(32px, 1fr) auto; }
  .h-sub { white-space: nowrap; }
  .quote { grid-row: 4; grid-column: 1; max-width: 560px; margin-top: 24px; }
  .about { grid-row: 6; }
}
