/* Сайт ПроОкна (windowsdo.ru). Свой вид, не зависит от стиля кабинета. Синяя гамма логотипа. */
@import url(/assets/fonts/golos.css);
:root {
  --navy: #0A1C36; --navy2: #10294D; --blue: #1F6FD1; --blue2: #3D8BFF; --sky: #EAF2FF; --sky2: #F4F8FF;
  --ink: #0F1B2D; --muted: #5A6A80; --line: #E1E7F0; --bg: #F6F8FC; --white: #FFFFFF; --ok: #1F9D55; --danger: #D8432E;
  --accent: #1F6FD1; --accent-ink: #FFFFFF;
  --r: 18px; --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 30px 60px -30px rgba(10, 28, 54, .35), 0 12px 24px -12px rgba(10, 28, 54, .18);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0; }
.wrap { width: min(1200px, 100% - 40px); margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: var(--sky); color: var(--blue); font-weight: 600; font-size: .85rem; letter-spacing: .02em; }
.lead { font-size: 1.2rem; color: var(--muted); }
.sec { padding: 110px 0; }
.sec.alt { background: var(--bg); }
.sec-head { max-width: 760px; margin: 0 auto 56px; text-align: center; display: grid; gap: 16px; justify-items: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px; border: 0; border-radius: 14px; font: 600 1rem var(--font); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.pri { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(31, 111, 209, .7); }
.btn.pri:hover { background: #185FB8; transform: translateY(-1px); }
.btn.ghost { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.btn.ghost:hover { background: rgba(255, 255, 255, .18); }
.btn.line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.line:hover { box-shadow: inset 0 0 0 1px var(--blue); color: var(--blue); }
.btn.sm { height: 42px; padding: 0 18px; border-radius: 12px; font-size: .95rem; }
.btn.wide { width: 100%; }

/* шапка */
.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .2s, box-shadow .2s; }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.top.solid { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.logo img { width: 36px; height: 36px; border-radius: 9px; }
.top.solid .logo { color: var(--ink); }
.top nav { display: flex; gap: 26px; margin-left: 12px; }
.top nav a { color: rgba(255, 255, 255, .8); text-decoration: none; font-weight: 500; font-size: .95rem; }
.top nav a:hover { color: #fff; }
.top.solid nav a { color: var(--muted); } .top.solid nav a:hover { color: var(--ink); }
.top .acts { margin-left: auto; display: flex; gap: 10px; }
.top:not(.solid) .btn.line { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.top.solid .burger { background: var(--bg); color: var(--ink); }
.burger svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* первый экран */
.hero { position: relative; overflow: hidden; padding: 150px 0 0; color: #fff; background: radial-gradient(1200px 600px at 80% -10%, #2A6FD6 0%, transparent 60%), radial-gradient(900px 500px at -10% 30%, #16407C 0%, transparent 60%), linear-gradient(180deg, var(--navy) 0%, var(--navy2) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.hero .wrap { position: relative; }
.hero-text { max-width: 820px; margin: 0 auto; text-align: center; display: grid; gap: 22px; justify-items: center; }
.hero .eyebrow { background: rgba(255, 255, 255, .1); color: #CFE1FF; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 700; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #7DB4FF, #BFD9FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #B9CAE3; max-width: 640px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.hero-note { color: #8FA6C7; font-size: .9rem; }
.hero-art { position: relative; margin: 64px auto 0; max-width: 1080px; }
.frame { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); }
.frame .bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #EEF2F8; border-bottom: 1px solid var(--line); }
.frame .bar i { width: 11px; height: 11px; border-radius: 50%; background: #D5DCE7; }
.frame .bar span { margin: 0 auto; padding: 3px 14px; border-radius: 8px; background: #fff; color: var(--muted); font-size: .78rem; }
.frame img { width: 100%; height: auto; }
.hero-art .frame { border-radius: 14px 14px 0 0; }
.phone { position: relative; width: 250px; border-radius: 38px; padding: 9px; background: #0B1424; box-shadow: var(--shadow), inset 0 0 0 2px #26324A; }
.phone img { width: 100%; border-radius: 30px; }
.hero-art .phone { position: absolute; right: -40px; bottom: -60px; width: 230px; }

/* полоса фактов */
.facts { background: #fff; border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.fact { display: flex; gap: 14px; align-items: center; padding: 30px 22px; }
.fact + .fact { border-left: 1px solid var(--line); }
.ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--sky); color: var(--blue); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fact b { display: block; font-size: 1rem; line-height: 1.3; } .fact span { color: var(--muted); font-size: .88rem; line-height: 1.4; display: block; margin-top: 2px; }

/* для кого */
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.role { position: relative; padding: 30px 26px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; display: grid; align-content: start; gap: 14px; }
.role:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.role ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: .95rem; }
.role li { display: flex; gap: 8px; } .role li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--blue2); }
.role .tag { position: absolute; top: 22px; right: 22px; padding: 3px 10px; border-radius: 99px; background: #E7F7EE; color: var(--ok); font-size: .75rem; font-weight: 600; }

/* возможность: картинка + текст */
.feat { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.feat + .feat { margin-top: 120px; }
.feat.rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.feat.rev .feat-art { order: 2; }
.feat-text { display: grid; gap: 18px; align-content: start; }
.feat-text .eyebrow { justify-self: start; }
.feat-text h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.feat-text p { color: var(--muted); font-size: 1.05rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 8px; background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F6FD1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }
.feat-art { position: relative; }
.feat-art .frame { box-shadow: var(--shadow); cursor: zoom-in; }
.feat-art .phone { cursor: zoom-in; }
.feat-art .phone.over { position: absolute; right: -24px; bottom: -40px; width: 200px; }
.phones { display: flex; gap: 22px; justify-content: center; align-items: flex-end; }
.phones .phone { width: 230px; }
.phones .phone:nth-child(2) { transform: translateY(-30px); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills span { padding: 6px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.sec.alt .pills span { background: #fff; }

/* 1С и API */
.code { border-radius: var(--r); background: var(--navy); color: #CFE1FF; padding: 26px 28px; font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; box-shadow: var(--shadow); }
.code .c { color: #6F89AD; } .code .k { color: #7DB4FF; } .code .s { color: #9BE3B6; }

/* галерея */
.tabs { display: flex; justify-content: center; gap: 6px; margin-bottom: 30px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.tabs button { height: 44px; padding: 0 20px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: 600 .95rem var(--font); cursor: pointer; }
.tabs button.on { background: var(--blue); color: #fff; }
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gal[hidden] { display: none; }
.gal figure { margin: 0; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); cursor: zoom-in; transition: transform .2s, box-shadow .2s; }
.gal figure:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gal figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.gal.ph { grid-template-columns: repeat(4, 1fr); }
.gal.ph figure img { aspect-ratio: 9 / 16; object-position: top center; }
.gal figcaption { padding: 12px 16px; font-size: .92rem; color: var(--muted); }

/* шаги */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 28px 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 700; }
.steps span { color: var(--muted); font-size: .95rem; }

/* вход и регистрация */
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.card { padding: 34px 32px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 16px; }
.card.dark { background: linear-gradient(160deg, var(--navy2), var(--navy)); color: #fff; border: 0; }
.card.dark p, .card.dark .hint { color: #B9CAE3; }
.card h3 { font-size: 1.5rem; }
.card form { display: grid; gap: 12px; }
.card label { display: grid; gap: 6px; font-size: .88rem; color: var(--muted); font-weight: 500; }
.card.dark label { color: #B9CAE3; }
.card input { width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: 1rem var(--font); }
.card input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 111, 209, .15); }
.card label.check { display: flex; gap: 10px; align-items: center; color: var(--ink); font-size: .9rem; }
.card label.check input { width: 20px; height: 20px; accent-color: var(--blue); }
.sub { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.sub input { border: 0; border-radius: 0; } .sub input:focus { box-shadow: none; }
.sub i { flex: none; padding: 0 14px 0 4px; font-style: normal; color: var(--muted); font-size: .95rem; }
.note { padding: 12px 14px; border-radius: 12px; background: var(--sky); font-size: .92rem; color: var(--ink); }
.note.err { background: #FDECEA; color: #8A2316; }
.found { display: grid; gap: 8px; } .found .btn { justify-content: space-between; }
.hint { font-size: .88rem; color: var(--muted); }

/* вопросы */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: #fff; border: 1px solid var(--line); padding: 0 24px; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-weight: 600; font-size: 1.08rem; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--sky); color: var(--blue); font-size: 1.3rem; font-weight: 500; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* призыв */
.cta { position: relative; overflow: hidden; border-radius: 28px; padding: 64px 56px; color: #fff; background: radial-gradient(600px 300px at 90% 0%, #2F7BE6 0%, transparent 60%), linear-gradient(160deg, var(--navy2), var(--navy)); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; }
.cta h2 { color: #fff; } .cta p { color: #B9CAE3; margin-top: 10px; font-size: 1.1rem; }
.cta .contacts a { color: #fff; }

.foot { padding: 50px 0 40px; background: var(--navy); color: #8FA6C7; font-size: .92rem; }
.foot .wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.foot a { color: #CFE1FF; text-decoration: none; } .foot a:hover { text-decoration: underline; }
.foot .logo { font-size: 1.1rem; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* просмотр картинки */
.lb { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 30px; background: rgba(6, 16, 32, .88); cursor: zoom-out; }
.lb[hidden] { display: none; }
.lb img { max-width: min(1400px, 100%); max-height: calc(100vh - 100px); border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb p { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #CFE1FF; }

/* появление при прокрутке */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 1100px) {
  .roles { grid-template-columns: repeat(2, 1fr); }
  .facts .wrap { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; } .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-art .phone { right: 10px; width: 180px; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .sec { padding: 72px 0; }
  .top nav, .top .acts { display: none; }
  .burger { display: grid; place-items: center; }
  .top.open { background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
  .top.open .logo { color: var(--ink); } .top.open .burger { background: var(--bg); color: var(--ink); }
  .top.open .wrap { flex-wrap: wrap; height: auto; min-height: 72px; padding: 14px 0; }
  .top.open nav { display: grid; width: 100%; gap: 4px; margin: 0; order: 3; }
  .top.open nav a { color: var(--ink); padding: 10px 0; font-size: 1.05rem; }
  .top.open .acts { display: flex; width: 100%; order: 4; }
  .top.open .acts .btn { flex: 1; }
  .top.open .btn.line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
  .hero { padding-top: 120px; }
  .hero-art { margin-top: 44px; }
  .hero-art .phone { display: none; }
  .feat, .feat.rev { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feat.rev .feat-art { order: 0; }
  .feat + .feat { margin-top: 80px; }
  .feat-art .phone.over { width: 130px; right: -6px; bottom: -24px; border-radius: 24px; padding: 6px; }
  .feat-art .phone.over img { border-radius: 19px; } .feat-art .phone.over::before { display: none; }
  .phones .phone { width: 46%; border-radius: 26px; padding: 6px; } .phones .phone img { border-radius: 21px; } .phones .phone::before { display: none; }
  .phones .phone:nth-child(3) { display: none; } .phones .phone:nth-child(2) { transform: none; }
  .gal, .gal.ph { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .join { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 26px 22px; }
  .cta { grid-template-columns: 1fr; padding: 40px 26px; border-radius: 22px; }
}
@media (max-width: 560px) {
  .roles, .steps { grid-template-columns: 1fr; }
  .facts .wrap { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .gal { grid-template-columns: 1fr; }
  .hero-btns .btn { width: 100%; }
  .tabs { justify-content: flex-start; } .tabs button { flex: none; padding: 0 14px; font-size: .9rem; }
}
