/* ITDOS — главный сайт. Цвета флага Кыргызстана: красный и солнечный, плюс глубокий ночной синий. */
:root {
  --snow: #F4F6F9;
  --paper: #FFFFFF;
  --ink: #0F1B2D;
  --muted: #566176;
  --line: #DCE1E8;
  --red: #E2231A;
  --red-d: #B81B14;
  --sun: #FFC400;
  --night: #0F1B2D;
  --night-2: #182842;
  --night-line: #2A3B58;
  --night-text: #C3CCDA;
  --green: #2BD46F;

  --c-site: #2C5BE0;
  --c-shop: #E2231A;
  --c-erp:  #0B8A69;
  --c-ai:   #6A3FD4;
  --c-game: #E8A100;

  --f-display: "Montserrat", "Arial Black", system-ui, sans-serif;
  --f-body: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gut: 16px;
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--snow); color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
@media (min-width: 720px) { :root { --gut: 28px; } }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 2px solid transparent;
  font: 600 15px/1.2 var(--f-body); text-decoration: none; cursor: pointer; text-align: center;
  transition: background .15s, color .15s, border-color .15s;
}
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 16px; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-d); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--line { border-color: var(--line); background: var(--paper); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }

/* ---------- Шапка ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(244, 246, 249, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo img { height: 36px; width: auto; }
.logo__mark { width: 34px; height: 34px; fill: var(--sun); stroke: var(--red); stroke-width: 9; stroke-linecap: round; }
.logo__word { font: 700 20px/1 var(--f-display); letter-spacing: .02em; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .2s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 1180px) {
  .top__cta { display: none; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--snow); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 20px;
    transform: translateY(-120%); visibility: hidden; transition: transform .25s, visibility .25s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { padding: 14px 0; font-size: 18px; color: var(--ink); border-bottom: 1px solid var(--line); }
}

/* ---------- Hero ---------- */
.hero { padding: 48px 0 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: center; }
.hero__place { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--muted); margin-bottom: 20px; }
.mini-tunduk { width: 22px; height: 22px; fill: var(--sun); stroke: var(--red); stroke-width: 9; }
.hero h1 { font-size: clamp(1.95rem, 4.2vw, 3.3rem); line-height: 1.1; letter-spacing: -0.02em; }
.nw { white-space: nowrap; }
.hero__lead { margin-top: 22px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 36em; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__art { position: relative; aspect-ratio: 1; width: 100%; max-width: 300px; justify-self: end; }
.hero__img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.tunduk { width: 100%; height: 100%; overflow: visible; }
.tunduk__disk { fill: var(--sun); opacity: 0; animation: fade .6s .2s forwards; }
.tunduk__ring, .tunduk__laths path { fill: none; stroke: var(--red); stroke-linecap: round; }
.tunduk__ring { stroke-width: 14; }
.tunduk__laths path { stroke-width: 13; }
.tunduk__rays line { stroke: var(--sun); stroke-width: 5; stroke-linecap: round; }

/* единственная анимация: түндүк собирается при загрузке */
.tunduk__ring, .tunduk__laths path { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.4s cubic-bezier(.6,.1,.2,1) forwards; }
.tunduk__laths path:nth-child(n+4) { animation-delay: .3s; }
.tunduk__rays { opacity: 0; transform-origin: 200px 200px; animation: rays 1s .9s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rays { from { opacity: 0; transform: scale(.85) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 56px 0 0; border-top: 2px solid var(--ink); }
.fact { padding: 22px 20px 26px 0; }
.fact + .fact { padding-left: 20px; border-left: 1px solid var(--line); }
.fact dt { font: 700 clamp(1.8rem, 3.4vw, 2.6rem)/1 var(--f-display); }
.fact dd { margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.4; max-width: 18em; }

@media (max-width: 860px) {
  .hero { padding-top: 28px; }
  .hero__grid { grid-template-columns: 1fr; gap: 8px; }
  .hero__art { order: -1; width: 84px; margin: 0 0 14px; justify-self: start; }
  .hero__place .mini-tunduk { display: none; }
  .hero__place { margin-bottom: 12px; }
  .facts { grid-template-columns: 1fr 1fr; margin-top: 40px; }
  .fact { padding: 18px 12px 20px 0; }
  .fact:nth-child(odd) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero__btns .btn { width: 100%; }
}

/* ---------- Секции ---------- */
.sec { padding: 88px 0; }
.sec--tint { background: #E9EDF3; }
.sec--night { background: var(--night); color: #fff; }
.sec__head { max-width: 760px; margin-bottom: 40px; }
.sec__head h2, .why__head h2, .contact h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.15; }
.sec__head p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }
.sec--night .sec__head p { color: var(--night-text); }
@media (max-width: 720px) { .sec { padding: 60px 0; } .sec__head { margin-bottom: 28px; } }

/* ---------- Прайс: главные услуги ---------- */
.offers { border-top: 2px solid var(--ink); }
.offer {
  display: grid; grid-template-columns: 1fr 340px; gap: 40px;
  padding: 36px 0; border-bottom: 1px solid var(--line);
}
.offer h3 { font-size: clamp(1.3rem, 2.3vw, 1.75rem); line-height: 1.2; }
.offer__descr { margin-top: 12px; color: var(--muted); max-width: 40em; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 14px; height: 8px; border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg); }
.offer__side { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 26px; border-radius: var(--r-m); background: var(--paper); border: 1px solid var(--line); align-self: start; }
.offer__img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--r-s); margin-bottom: 12px; }
.price { font: 700 clamp(1.45rem, 2.2vw, 1.7rem)/1.15 var(--f-display); white-space: nowrap; color: var(--ink); }
.price small { display: block; font: 500 15px/1.4 var(--f-body); color: var(--muted); margin-top: 6px; }
.term { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.offer__side .btn { width: 100%; }
@media (max-width: 860px) {
  .offer { grid-template-columns: 1fr; gap: 22px; padding: 28px 0; }
  .ticks { grid-template-columns: 1fr; }
}

/* ---------- Прайс: дополнительные ---------- */
.sub { font-size: 1.15rem; margin: 56px 0 14px; }
.extra { border-top: 1px solid var(--line); }
.extra__row { border-bottom: 1px solid var(--line); }
.extra__row summary {
  list-style: none; display: grid; grid-template-columns: 1fr auto 28px; gap: 18px; align-items: center;
  padding: 20px 0; cursor: pointer;
}
.extra__row summary::-webkit-details-marker { display: none; }
.extra__title { font-weight: 600; font-size: 1.08rem; }
.extra__price { font: 600 1rem/1.2 var(--f-display); text-align: right; }
.extra__price small { font: 400 13px var(--f-body); color: var(--muted); }
.extra__plus { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); position: relative; transition: transform .2s, background .2s; }
.extra__plus::before, .extra__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.extra__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.extra__row[open] .extra__plus { transform: rotate(45deg); background: var(--ink); }
.extra__row[open] .extra__plus::before, .extra__row[open] .extra__plus::after { background: #fff; }
.extra__body { padding: 0 0 26px; max-width: 760px; }
.extra__body > p { color: var(--muted); }
.extra__body .ticks { margin-bottom: 22px; }
@media (max-width: 560px) {
  .extra__row summary { grid-template-columns: 1fr 28px; gap: 4px 14px; }
  .extra__price { grid-row: 2; text-align: left; }
  .extra__plus { grid-row: 1 / span 2; grid-column: 2; }
}

/* ---------- Портфолио ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 0 calc(var(--gut) * -1) 28px; padding-left: var(--gut); padding-right: var(--gut); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1.5px solid var(--night-line); background: transparent; color: #fff;
  border-radius: 999px; padding: 9px 16px; font: 500 15px/1 var(--f-body); cursor: pointer; min-height: 42px;
}
.chip span { color: var(--night-text); margin-left: 4px; font-size: 13px; }
.chip:hover { border-color: #fff; }
.chip.is-on { background: #fff; color: var(--ink); border-color: #fff; }
.chip.is-on span { color: var(--muted); }

.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1000px) { .works { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .works { grid-template-columns: 1fr; gap: 16px; } }
.work { background: var(--night-2); border-radius: var(--r-m); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--night-line); }
.work[hidden] { display: none; }
@media (max-width: 620px) { .works.is-short .work:nth-child(n+5) { display: none; } }
@media (min-width: 621px) { .works.is-short .work:nth-child(n+7) { display: none; } }
.works__more { margin-top: 28px; text-align: center; }
.works:not(.is-short) + .works__more { display: none; }
.btn--ghost-w { border-color: #fff; color: #fff; background: transparent; }
.btn--ghost-w:hover { background: #fff; color: var(--ink); }
.work__cover { aspect-ratio: 16 / 9; overflow: hidden; background: #22314b; }
.work__cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work__gen { --c: var(--c-site); height: 100%; background: var(--c); position: relative; padding: 14px 14px 0; display: flex; flex-direction: column; }
.cat-shop .work__gen { --c: var(--c-shop); }
.cat-erp .work__gen { --c: var(--c-erp); }
.cat-ai .work__gen { --c: var(--c-ai); }
.cat-game .work__gen { --c: var(--c-game); }
.work__bar { display: flex; align-items: center; gap: 5px; background: rgba(255,255,255,.18); border-radius: 8px; padding: 7px 10px; }
.work__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); }
.work__bar b { margin-left: 8px; font: 500 12px/1 var(--f-body); color: rgba(255,255,255,.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work__big {
  margin-top: 22px; font: 700 clamp(1.35rem, 2.2vw, 1.7rem)/1.08 var(--f-display); color: #fff;
  letter-spacing: -0.01em; max-width: 92%;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.work__skel { margin-top: auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; height: 34%; padding-top: 16px; }
.work__skel i { background: rgba(255,255,255,.2); border-radius: 8px 8px 0 0; }
.work__skel i:first-child { background: rgba(255,255,255,.34); }
.v1 .work__skel { grid-template-columns: 1fr 1fr; }
.v1 .work__skel i:nth-child(3) { display: none; }
.v2 .work__skel { grid-template-columns: 2fr 1fr; height: 40%; }
.v3 .work__skel { grid-template-columns: repeat(4, 1fr); height: 28%; }
.cat-game .work__skel i { background: rgba(15,27,45,.12); }
.cat-game .work__skel i:first-child { background: rgba(15,27,45,.2); }
.cat-game .work__big, .cat-game .work__bar b { color: var(--ink); }
.cat-game .work__bar { background: rgba(15,27,45,.12); }
.cat-game .work__bar i { background: rgba(15,27,45,.35); }
.work__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.work__meta { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--night-text); margin-bottom: 10px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--night-text); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #7B8AA3; }
.status--live { color: var(--green); }
.status--live::before { background: var(--green); box-shadow: 0 0 0 4px rgba(43,212,111,.18); }
.work h3 { font-size: 1.2rem; line-height: 1.25; }
.work__descr { margin-top: 8px; color: var(--night-text); font-size: 15px; line-height: 1.5; flex: 1; }
.work__link { margin-top: 18px; align-self: flex-start; font-weight: 600; font-size: 15px; color: #fff; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.work__link:hover { color: var(--sun); border-color: var(--sun); }
.work__link--muted { border-color: var(--night-line); color: var(--night-text); }

/* ---------- ИИ ---------- */
.sec--ai { background: var(--paper); }
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.case { padding: 28px 28px 30px 0; }
.case + .case { padding-left: 28px; border-left: 1px solid var(--line); }
.case h3 { font-size: 1.2rem; margin-bottom: 16px; }
.case__was { color: var(--muted); font-size: 15px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed var(--line); }
.case__now { font-size: 16px; }
.ai__cta { margin-top: 36px; }
@media (max-width: 860px) {
  .cases { grid-template-columns: 1fr; }
  .case { padding: 24px 0; }
  .case + .case { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .ai__cta .btn { width: 100%; }
}

/* ---------- Почему мы ---------- */
.why { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; }
.why__head p { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }
.reasons { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.reasons li { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; }
.reasons b { font-weight: 600; margin-right: 4px; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Как работаем ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 58px; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center; font: 600 17px/1 var(--f-display);
}
.steps li::after { content: ""; position: absolute; top: 21px; left: 52px; right: -8px; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li:last-child::before { background: var(--red); }
.steps h3 { font-size: 1.05rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; line-height: 1.5; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 26px 62px; min-height: 42px; }
  .steps li::after { top: 48px; bottom: 4px; left: 20px; right: auto; width: 2px; height: auto; }
}

/* ---------- Команда ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }
.person__photo { aspect-ratio: 4 / 5; border-radius: var(--r-m); overflow: hidden; background: #E3E8EF; display: grid; place-items: center; margin-bottom: 16px; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__photo span { font: 700 3.2rem/1 var(--f-display); color: var(--red); }
.person h3 { font-size: 1.08rem; line-height: 1.3; }
.person__role { color: var(--muted); margin-top: 4px; font-size: 15px; }
.person__bio { margin-top: 10px; font-size: 15px; }
.person__ip { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.person__ip span { font-weight: 400; color: var(--muted); }
.person__tel { display: inline-block; margin-top: 8px; font-weight: 600; text-decoration: none; }
@media (max-width: 560px) { .team { grid-template-columns: 1fr 1fr; gap: 18px 14px; } .person__photo span { font-size: 2.2rem; } }

/* ---------- Контакты ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__lead { margin-top: 14px; color: var(--night-text); font-size: 1.08rem; }
.contact__list { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--night-line); }
.contact__list li { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--night-line); font-size: 16.5px; }
.contact__list span { color: var(--night-text); font-size: 15px; }
.contact__list a { color: #fff; font-weight: 600; text-decoration: none; }
.contact__list a:hover { color: var(--sun); }
.form { background: var(--paper); color: var(--ink); border-radius: var(--r-l); padding: 30px; display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: 15px; }
.form small { color: var(--muted); font-weight: 400; }
.form input, .form select, .form textarea {
  width: 100%; font: 400 16px/1.4 var(--f-body); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--snow);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.form textarea { resize: vertical; }
.form .btn { width: 100%; margin-top: 4px; }
.form__note { font-size: 13px; color: var(--muted); }
.form__ok { background: #E6F9EE; border: 1px solid #A9E8C2; color: #0F5A2E; border-radius: 10px; padding: 14px 16px; font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .contact__list li { grid-template-columns: 1fr; gap: 2px; }
  .form { padding: 22px 18px; }
}

/* ---------- Подвал ---------- */
.foot { background: #0A1322; color: var(--night-text); padding: 36px 0 40px; font-size: 14.5px; }
.foot__in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-end; }
.foot__brand { display: flex; align-items: center; gap: 10px; font: 700 18px/1 var(--f-display); color: #fff; margin-bottom: 12px; }
.foot__brand .logo__mark { width: 28px; height: 28px; }

/* ---------- Нижняя панель на телефоне ---------- */
/* ---------- Плавающая кнопка WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(15,27,45,.28);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.wa-float svg { width: 32px; height: 32px; }
@media (max-width: 720px) { .wa-float { width: 54px; height: 54px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); } .wa-float svg { width: 30px; height: 30px; } }

/* ---------- v2: языки, главные проекты, контакты без формы ---------- */
.langs { display: flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; flex: none; }
.langs a { display: grid; place-items: center; min-width: 40px; height: 32px; padding: 0 10px; border-radius: 999px; font: 600 13px/1 var(--f-body); text-decoration: none; color: var(--muted); }
.langs a:hover { color: var(--ink); }
.langs a.is-on { background: var(--ink); color: #fff; }
@media (max-width: 1180px) { .langs { margin-left: auto; } .logo { margin-right: 0; } .top__in { gap: 12px; } }

a.work__cover { display: block; }
.works--main { grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 64px; }
.work--big .work__body { padding: 24px 26px 26px; }
.work--big h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.work--big .work__descr { font-size: 16px; }
.work--big .work__cover img { transition: transform .5s ease; }
.work--big a.work__cover:hover img { transform: scale(1.03); }
@media (max-width: 760px) { .works--main { grid-template-columns: 1fr; gap: 16px; margin-bottom: 48px; } }
.works__sub { font-size: 1.2rem; margin: 0 0 16px; }

.btn--xl { min-height: 60px; padding: 16px 32px; font-size: 17px; margin-top: 28px; }
.contact { align-items: end; }
.contact .contact__list { margin: 0; }
@media (max-width: 860px) { .btn--xl { width: 100%; } }

/* ---------- v4: прайс компактно, подробности по кнопке ---------- */
.offer {
  display: grid; grid-template-columns: 1fr auto 200px; grid-template-areas: "title price btn" "more more more";
  gap: 6px 32px; align-items: center; padding: 26px 0 18px;
}
.offer__title { grid-area: title; }
.offer__price { grid-area: price; text-align: right; }
.offer__price .price { white-space: nowrap; }
.offer__price .price small { display: inline; margin: 0 0 0 6px; font-size: 14px; }
.offer__price .term { margin: 4px 0 0; }
.offer__btn { grid-area: btn; width: 100%; }
.offer__more { grid-area: more; }
.offer__more summary {
  list-style: none; display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-weight: 600; font-size: 15px; color: var(--muted); padding: 8px 0; min-height: 44px;
}
.offer__more summary::-webkit-details-marker { display: none; }
.offer__more summary:hover { color: var(--ink); }
.offer__more .extra__plus { width: 24px; height: 24px; }
.offer__more .extra__plus::before, .offer__more .extra__plus::after { width: 10px; }
.offer__more[open] .extra__plus { transform: rotate(45deg); background: var(--ink); }
.offer__more[open] .extra__plus::before, .offer__more[open] .extra__plus::after { background: #fff; }
.offer__more .when-open, .offer__more[open] .when-closed { display: none; }
.offer__more[open] .when-open { display: inline; }
.offer__body { padding: 4px 0 12px; max-width: 820px; }
.offer__body .offer__descr { margin-top: 0; }
.offer__body .offer__img { max-width: 420px; margin-bottom: 14px; }
@media (max-width: 860px) {
  .offer { grid-template-columns: 1fr auto; grid-template-areas: "title title" "price price" "btn btn" "more more"; gap: 10px; padding: 24px 0 12px; }
  .offer__price { text-align: left; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
  .offer__price .term { margin: 0; }
}

/* ---------- v6: многостраничность ---------- */
.nav a.is-on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--red); }
@media (max-width: 1180px) { .nav a.is-on { box-shadow: none; color: var(--red); } }

.phero { padding: 56px 0 8px; }
.crumbs { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.phero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em; }
.phero__lead { margin-top: 18px; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 40em; }
.h-sm { font-size: 1.25rem; margin-bottom: 18px; }

/* Галерея фото */
.sec--gallery { padding-top: 48px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 14px; }
.gallery__item { margin: 0; position: relative; overflow: hidden; border-radius: var(--r-m); background: #E3E8EF; }
.gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px; color: #fff; font-size: 14.5px; font-weight: 500;
  background: linear-gradient(transparent, rgba(15,27,45,.78));
}
@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; gap: 10px; }
  .gallery__item:first-child { grid-column: span 2; grid-row: span 1; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item figcaption { font-size: 13px; padding: 22px 10px 8px; }
}

/* Полоска фото на главной */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; }
.strip figure { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r-m); overflow: hidden; background: #DDE3EB; }
.strip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .strip { grid-template-columns: 1fr 1fr; gap: 8px; } }
.proc__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
@media (max-width: 560px) { .proc__links .btn { width: 100%; } }

/* Шаги — таймлайн */
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: t; border-top: 2px solid var(--ink); }
.timeline__item { counter-increment: t; display: grid; grid-template-columns: 64px 1fr 340px; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.timeline__item::before { content: counter(t); width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 18px/1 var(--f-display); }
.timeline__item:last-child::before { background: var(--red); }
.timeline__main h3 { font-size: 1.2rem; margin: 8px 0 8px; }
.timeline__main p { color: var(--muted); max-width: 36em; }
.timeline__get { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; font-size: 15px; }
.timeline__get b { display: block; font-size: 13px; color: var(--red); margin-bottom: 4px; }
@media (max-width: 860px) {
  .timeline__item { grid-template-columns: 46px 1fr; gap: 6px 16px; }
  .timeline__get { grid-column: 2; margin-top: 8px; }
}

/* Инструменты */
.tools { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.tool { padding: 24px 24px 26px 0; }
.tool + .tool { padding-left: 24px; border-left: 1px solid var(--line); }
.tool h3 { font-size: 1.05rem; margin-bottom: 10px; }
.tool p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 960px) {
  .tools { grid-template-columns: 1fr 1fr; }
  .tool:nth-child(3) { padding-left: 0; border-left: 0; }
  .tool:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .tools { grid-template-columns: 1fr; }
  .tool, .tool + .tool { padding: 20px 0; border-left: 0; }
  .tool + .tool { border-top: 1px solid var(--line); }
}

/* Оплата */
.paysteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.paystep { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 26px; }
.paystep .paystep__sum { font: 700 clamp(1.8rem, 3.4vw, 2.6rem)/1.05 var(--f-display); color: var(--red); margin-bottom: 14px; letter-spacing: -0.02em; }
.paystep h3 { font-size: 1.1rem; margin-bottom: 6px; }
.paystep p { color: var(--muted); font-size: 15.5px; }
.paygrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 960px) { .paygrid { grid-template-columns: 1fr; gap: 32px; } }
.ticks--one { grid-template-columns: 1fr; margin-top: 0; }
.dashes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dashes li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.45; }
.dashes li::before { content: ""; position: absolute; left: 0; top: .7em; width: 12px; height: 2px; background: var(--muted); }
.askpay { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.askpay h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }

.foot__nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot__nav a { color: #fff; text-decoration: none; font-weight: 500; }
.foot__nav a:hover { color: var(--sun); }

/* ---------- v7: «Что нужно вашему бизнесу?» и калькулятор ---------- */
.bizchips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.bizchip {
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px;
  padding: 10px 18px; min-height: 44px; font: 600 15px/1.2 var(--f-body); cursor: pointer;
}
.bizchip:hover { border-color: var(--ink); }
.bizchip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 620px) {
  .bizchips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gut) * -1) 18px; padding: 0 var(--gut) 4px; scrollbar-width: none; }
  .bizchips::-webkit-scrollbar { display: none; }
  .bizchip { flex: none; }
}
.biz { display: grid; grid-template-columns: 1fr 1fr 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.biz[hidden] { display: none; }
.biz__col { padding: 28px; }
.biz__col + .biz__col { border-left: 1px solid var(--line); }
.biz__col h3 { font-size: 1.05rem; margin-bottom: 16px; }
.biz__col--rec { background: #FFF6E0; }
.pains { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pains li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.45; color: var(--muted); }
.pains li::before, .pains li::after { content: ""; position: absolute; left: 3px; top: .62em; width: 12px; height: 2.5px; background: var(--red); border-radius: 2px; transform: rotate(45deg); }
.pains li::after { transform: rotate(-45deg); }
.recsvc { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px dashed #E8D7A6; }
.recsvc__name { font-weight: 600; }
.recsvc__price { font: 700 15px/1.2 var(--f-display); white-space: nowrap; }
.biz__calc { width: 100%; margin-top: 20px; }
@media (max-width: 900px) {
  .biz { grid-template-columns: 1fr; }
  .biz__col + .biz__col { border-left: 0; border-top: 1px solid var(--line); }
  .biz__col { padding: 22px 20px; }
}

.calc { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: start; }
.calc__in { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 28px; }
.calc__label { font-weight: 600; margin-bottom: 10px; }
.calc__types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.ctype { border: 1.5px solid var(--line); background: var(--snow); color: var(--ink); border-radius: 10px; padding: 10px 14px; min-height: 44px; font: 600 14.5px/1.2 var(--f-body); cursor: pointer; text-align: left; }
.ctype:hover { border-color: var(--ink); }
.ctype.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.calc__fields { display: grid; gap: 22px; }
.cfield { display: grid; gap: 10px; }
.cfield__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.cfield__label { font-size: 15px; color: var(--muted); line-height: 1.35; }
.cfield__val { font: 700 17px/1 var(--f-display); white-space: nowrap; color: var(--ink); }
.cfield input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; margin: 6px 0;
  background: linear-gradient(var(--red), var(--red)) 0 / var(--p, 50%) 100% no-repeat, #E3E8EF; cursor: pointer;
}
.cfield input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--red); box-shadow: 0 1px 4px rgba(15,27,45,.25); }
.cfield input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--red); }
.calc__how { margin-top: 24px; font-size: 14.5px; color: var(--muted); }
.calc__how summary { cursor: pointer; font-weight: 600; color: var(--ink); min-height: 32px; }
.calc__how p { margin-top: 8px; }
.calc__out { background: var(--night); color: #fff; border-radius: var(--r-l); padding: 30px; position: sticky; top: 88px; }
.calc__outlabel { color: var(--night-text); font-size: 15px; }
.calc__big { font: 800 clamp(2rem, 4.4vw, 3.2rem)/1.05 var(--f-display); color: var(--sun); margin: 6px 0 22px; letter-spacing: -0.02em; min-height: 1.1em; }
.calc__rows { margin: 0 0 24px; border-top: 1px solid var(--night-line); }
.calc__rows div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--night-line); }
.calc__rows dt { color: var(--night-text); font-size: 14.5px; }
.calc__rows dd { margin: 0; font: 700 16px/1.3 var(--f-display); white-space: nowrap; text-align: right; }
.calc__wa { width: 100%; }
.calc__note { margin-top: 14px; font-size: 13.5px; color: var(--night-text); }
@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
  .calc__out { position: static; }
  .calc__in, .calc__out { padding: 22px 18px; }
  .calc__rows div { flex-direction: column; gap: 2px; }
  .calc__rows dd { text-align: left; }
}
.calc__mini { display: none; }
@media (max-width: 900px) {
  .calc__mini { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; position: sticky; top: 76px; z-index: 5; margin: -6px 0 20px; padding: 10px 14px; border-radius: 12px; background: var(--night); color: var(--night-text); font-size: 14px; }
  .calc__mini b { color: var(--sun); font: 700 17px/1.2 var(--f-display); }
}
@media (max-width: 720px) { .foot { padding-bottom: 88px; } }
