/* АЭРОПАТ — сайт (aeropat.ru). Светлая и тёмная тема по настройке системы. */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --bg: #ffffff; --bg-2: #f5f5f7; --ink: #1d1d1f; --ink-2: #6e6e73; --ink-3: #86868b;
  --line: #d2d2d7; --link: #0066cc; --btn: #0071e3; --btn-h: #0077ed;
  --tile: #ffffff; --nav: rgba(255, 255, 255, .8);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --bg-2: #101012; --ink: #f5f5f7; --ink-2: #a1a1a6; --ink-3: #86868b;
    --line: #424245; --link: #2997ff; --tile: #1c1c1e; --nav: rgba(22, 22, 23, .8);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.47 var(--font); letter-spacing: -.022em; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
sub { font-size: .7em; }
:focus-visible { outline: 2px solid var(--btn); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: min(980px, 100% - 44px); margin: 0 auto; }
.wrap.narrow { width: min(720px, 100% - 44px); }
.wrap-wide { width: min(1240px, 100% - 44px); margin: 0 auto; }

/* навигация */
.gnav { position: sticky; top: 0; z-index: 50; background: var(--nav); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.gnav.scrolled { border-bottom-color: color-mix(in srgb, var(--line) 60%, transparent); }
.gnav-in { width: min(1024px, 100% - 44px); margin: 0 auto; height: 52px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: .01em; }
.brand:hover { text-decoration: none; }
/* знак: «ПАТ» фирменным синим (как в портале, icons.js PAT_WORDMARK) */
.aerowm { white-space: nowrap; }
.aerowm b { font-weight: inherit; color: #1a6fd1; }
@media (prefers-color-scheme: dark) { .aerowm b { color: #5fb4ff; } }
.mark svg { display: block; border-radius: 6px; }
.gnav-links { display: flex; gap: 26px; margin: 0 auto; }
.gnav-links a { color: var(--ink); opacity: .8; font-size: 12.5px; letter-spacing: -.01em; }
.gnav-links a:hover { opacity: 1; text-decoration: none; }
.gnav-act { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.gnav-links + .gnav-act { margin-left: 0; }
.gnav-login { color: var(--ink); font-size: 12.5px; opacity: .8; }
.gnav-login:hover { opacity: 1; text-decoration: none; }
.menu-btn { display: none; width: 36px; height: 36px; border: 0; background: none; cursor: pointer; position: relative; padding: 0; }
.menu-btn span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--ink); border-radius: 1px; transition: transform .25s, top .25s; }
.menu-btn span:first-child { top: 14px; } .menu-btn span:last-child { top: 21px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 17.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 17.5px; transform: rotate(-45deg); }

/* кнопки и ссылки */
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 980px; border: 0; background: var(--btn); color: #fff;
  font: 400 17px var(--font); letter-spacing: -.02em; cursor: pointer; white-space: nowrap; transition: background .2s; }
.pill:hover { background: var(--btn-h); text-decoration: none; }
.pill.sm { min-height: 28px; padding: 0 12px; font-size: 12.5px; }
.pill.lg { min-height: 50px; padding: 0 30px; }
.pill:disabled { opacity: .5; cursor: default; }
.link-more { background: none; border: 0; padding: 0; color: var(--link); font: 400 17px var(--font); letter-spacing: -.02em; cursor: pointer; }
.link-more:hover { text-decoration: underline; }

/* первый экран */
.hero { padding: 72px 0 0; text-align: center; overflow: hidden; }
.hero-product { font-size: 21px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); margin-bottom: 10px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.07; letter-spacing: -.035em; font-weight: 700; max-width: 960px; margin: 0 auto; }
.hero-sub { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.38; color: var(--ink-2); max-width: 720px; margin: 22px auto 0; letter-spacing: -.02em; }
.hero-cta { display: flex; gap: 28px; justify-content: center; align-items: center; margin-top: 32px; flex-wrap: wrap; }
.hero-shot { margin-top: 56px; }
.hero-shot img { border-radius: 18px 18px 0 0; box-shadow: 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent), 0 30px 60px -30px rgba(0, 0, 0, .25); }

/* разделы */
.section { padding: 120px 0; }
.section.light { background: var(--bg-2); }
.headline { font-size: clamp(32px, 5vw, 56px); line-height: 1.07; letter-spacing: -.035em; font-weight: 700; text-align: center; }
.headline.left { text-align: left; }
.intro { font-size: clamp(19px, 2vw, 21px); color: var(--ink-2); text-align: center; max-width: 680px; margin: 20px auto 0; line-height: 1.4; }

/* плитки */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 64px; }
.tile { background: var(--tile); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
.tile.wide { grid-column: 1 / -1; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; }
.tile-txt { padding: 40px 40px 28px; }
.tile.wide .tile-txt { padding: 48px; }
.tile h3 { font-size: 28px; line-height: 1.14; letter-spacing: -.03em; font-weight: 700; margin-bottom: 12px; }
.tile p { color: var(--ink-2); font-size: 17px; }
.tile img { margin: auto 0 0 40px; border-radius: 12px 0 0 0; box-shadow: 0 0 0 1px color-mix(in srgb, var(--line) 60%, transparent); }
.tile.wide img { margin: 40px 0 0 0; border-radius: 14px 0 0 0; align-self: end; }
.tile.dark { background: #000; color: #f5f5f7; }
.tile.dark p { color: #a1a1a6; }

/* текст и картинка рядом */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; width: min(1180px, 100% - 44px); }
.split.rev .split-txt { order: 2; }
.split-txt p { font-size: 19px; color: var(--ink-2); margin-top: 18px; line-height: 1.45; }
.split-txt .link-more { display: inline-block; margin-top: 22px; }
.split-img { margin: 0; }
.split-img.pages { position: relative; aspect-ratio: 1 / .86; }        /* листы отчёта веером: 3D-вид спереди, расчёт и профиль за ним */
.pages .pg { position: absolute; width: 68%; height: auto; background: #fff; border-radius: 6px; transition: transform .35s ease; }
.pages .pg3 { left: 0; top: 0; transform: rotate(-4deg); }
.pages .pg2 { left: 16%; top: 4%; transform: rotate(-1deg); }
.pages .pg1 { left: 32%; top: 8%; transform: rotate(2.5deg); }
.pages:hover .pg3 { transform: rotate(-6deg) translateX(-3%); }
.pages:hover .pg1 { transform: rotate(4deg) translateX(3%); }
@media (prefers-reduced-motion: reduce) { .pages .pg { transition: none; } }
.split-img img { border-radius: 16px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--line) 60%, transparent), 0 24px 50px -28px rgba(0, 0, 0, .3); }

/* видео */
.film { background: #000; color: #f5f5f7; }
.film .intro { color: #a1a1a6; }
.video { position: relative; margin-top: 56px; border-radius: 22px; overflow: hidden; background: #111; aspect-ratio: 16 / 10; }
.video video { width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); display: grid; place-items: center; transition: transform .2s, background .2s; }
.video-play span { width: 0; height: 0; border-left: 22px solid #1d1d1f; border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; }
.video-play:hover { transform: scale(1.05); background: #fff; }
.video.playing .video-play { display: none; }

/* колонки */
.cols3, .cols4 { display: grid; gap: 40px; margin-top: 64px; }
.cols3 { grid-template-columns: repeat(3, 1fr); }
.cols4 { grid-template-columns: repeat(4, 1fr); gap: 32px; }
.cols3 h3, .cols4 h3 { font-size: 21px; letter-spacing: -.02em; margin-bottom: 10px; }
.cols3 p, .cols4 p { color: var(--ink-2); font-size: 17px; }
.cols3 > div, .cols4 > div { padding-top: 22px; border-top: 1px solid var(--line); }

/* шаги */
.steps { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { background: var(--tile); border-radius: 22px; padding: 30px 26px 32px; }
.steps .n { display: block; font-size: 44px; font-weight: 700; color: var(--ink-3); letter-spacing: -.04em; line-height: 1; margin-bottom: 26px; }
.steps h3 { font-size: 21px; margin-bottom: 8px; letter-spacing: -.02em; }
.steps p { color: var(--ink-2); font-size: 16px; }

/* вопросы */
.faq { margin-top: 48px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 0; font-size: 21px; font-weight: 600; letter-spacing: -.02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 300; color: var(--ink-2); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 44px 26px 0; color: var(--ink-2); font-size: 17px; }

/* заявка */
.form { margin-top: 48px; display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fld { position: relative; display: block; }
.fld span { position: absolute; left: 16px; top: 17px; font-size: 17px; color: var(--ink-3); pointer-events: none; transition: top .15s, font-size .15s; }
.fld input, .fld textarea { width: 100%; font: 400 17px var(--font); letter-spacing: -.02em; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 26px 16px 9px; outline: none; transition: border-color .15s, box-shadow .15s; }
.fld textarea { resize: vertical; min-height: 120px; padding-top: 28px; }
.fld input:focus, .fld textarea:focus { border-color: var(--btn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--btn) 18%, transparent); }
.fld.filled span, .fld:focus-within span { top: 8px; font-size: 12px; }
.fld .invalid { border-color: #e30000; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.45; margin-top: 4px; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--btn); }
.form .pill { justify-self: center; margin-top: 12px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { text-align: center; font-size: 15px; min-height: 1.4em; }
.form-msg.err { color: #e30000; }
.form-msg.ok { color: var(--ink); font-size: 21px; font-weight: 600; }
.form.sent > :not(.form-msg) { display: none; }
.form.sent .form-msg { padding: 48px 0; }
.alt { text-align: center; color: var(--ink-2); margin-top: 22px; font-size: 15px; }

/* подвал */
.foot { background: var(--bg-2); padding: 40px 0 28px; font-size: 12.5px; color: var(--ink-2); letter-spacing: -.01em; }
.foot-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.foot-nav h4 { font-size: 12.5px; color: var(--ink); margin-bottom: 10px; }
.foot-nav a { display: block; color: var(--ink-2); margin: 7px 0; }
.foot-legal { padding-top: 18px; display: grid; gap: 6px; color: var(--ink-3); }
.foot-legal a { color: var(--ink-2); }

/* появление при прокрутке */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }

/* документы (политики) */
.doc { padding: 64px 0 96px; }
.doc h1 { font-size: clamp(32px, 4.5vw, 48px); letter-spacing: -.03em; line-height: 1.1; font-weight: 700; }
.doc .ed { color: var(--ink-3); margin-top: 12px; font-size: 15px; }
.doc h2 { font-size: 24px; letter-spacing: -.02em; margin: 44px 0 14px; }
.doc p, .doc li { color: var(--ink); font-size: 17px; line-height: 1.55; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 10px 0 0; }
.doc li + li { margin-top: 6px; }
.doc .req { margin-top: 28px; padding: 22px 24px; border-radius: 16px; background: var(--bg-2); font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.doc-nav { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; font-size: 15px; }

/* адаптивность */
@media (max-width: 1068px) {
  .tile.wide { grid-template-columns: 1fr; }
  .tile.wide img { margin: 0 0 0 48px; }
  .split, .split.rev { grid-template-columns: 1fr; gap: 40px; }
  .split.rev .split-txt { order: 0; }
  .steps, .cols4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 833px) {
  .gnav-links { display: none; position: absolute; top: 52px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px 28px 24px;
    background: var(--bg); border-bottom: 1px solid var(--line); }
  .gnav-links.open { display: flex; }
  .gnav-links a { font-size: 24px; font-weight: 600; opacity: 1; padding: 10px 0; }
  .gnav-act .pill { display: none; }
  .gnav-act, .gnav-links + .gnav-act { margin-left: auto; }
  .menu-btn { display: block; }
  .bento { grid-template-columns: 1fr; }
  .cols3 { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 88px 0; }
  .foot-nav { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap, .wrap.narrow, .wrap-wide, .split { width: calc(100% - 32px); }
  .hero { padding-top: 48px; }
  .hero-shot { margin-top: 40px; }
  .tile-txt, .tile.wide .tile-txt { padding: 30px 26px 22px; }
  .tile img, .tile.wide img { margin-left: 26px; }
  .tile h3 { font-size: 24px; }
  .steps, .cols4, .row2 { grid-template-columns: 1fr; }
  .faq summary { font-size: 19px; }
  .video { border-radius: 14px; }
  .video-play { width: 64px; height: 64px; }
  .video-play span { border-left-width: 17px; border-top-width: 10px; border-bottom-width: 10px; margin-left: 4px; }
}
