/* Alptrans Group — минимализм в духе apple.com: системный шрифт, крупная типографика, воздух, два зелёных из логотипа */
:root {
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --line: #d2d2d7;
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --green-900: #0a281a;
  --green-700: #1e513c;
  --green-500: #006f5e;
  --green-100: #e7f0eb;
  --radius: 22px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5;
  font-size: 17px; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -0.022em; line-height: 1.08; }
h1 { font-size: clamp(40px, 6.4vw, 80px); font-weight: 700; }
h2 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section.alt { background: var(--bg-2); }
.section.dark { background: var(--green-900); color: #fff; }
.section.dark .lead, .section.dark .muted { color: rgba(255,255,255,.72); }
.eyebrow { font-size: 17px; font-weight: 600; color: var(--green-500); margin-bottom: 12px; }
.lead { font-size: clamp(19px, 2.2vw, 24px); color: var(--ink-2); line-height: 1.4; margin-top: 18px; max-width: 760px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--ink-2); }

/* черновик: факты, которые клиент должен подтвердить */
.todo { background: #fff4c2; border-radius: 6px; padding: 0 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.draft-bar { background: #fff4c2; color: #5c4a00; font-size: 14px; text-align: center; padding: 8px 16px; }

/* шапка */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.8);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.08); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.nav .logo img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 24px; font-size: 14px; margin-left: auto; }
.nav-links a { color: var(--ink); opacity: .85; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.lang { display: flex; gap: 2px; font-size: 13px; }
.lang a { color: var(--ink-2); padding: 4px 7px; border-radius: 8px; }
.lang a[aria-current="true"] { color: var(--ink); background: var(--bg-2); font-weight: 600; }
.nav .btn { padding: 8px 16px; font-size: 14px; }
.menu-btn { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; padding: 4px; color: var(--ink); }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--green-700);
  color: #fff; border: 0; border-radius: 980px; padding: 14px 26px; font: inherit; font-size: 17px; font-weight: 500;
  cursor: pointer; transition: background .2s; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn.ghost { background: transparent; color: var(--green-700); box-shadow: inset 0 0 0 1.5px var(--green-700); }
.btn.light { background: #fff; color: var(--green-900); }
/* наведение: кнопка приподнимается, под ней мягкая зелёная тень — «парит». Только где есть мышь:
   на телефоне :hover залипает после касания */
.btn { transition: background .2s, transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
@media (hover: hover) {
  .btn:hover { background: var(--green-900); transform: translateY(-3px); box-shadow: 0 12px 28px -8px rgba(10,40,26,.45); }
  .btn.ghost:hover { background: var(--green-100); box-shadow: inset 0 0 0 1.5px var(--green-700), 0 12px 28px -10px rgba(10,40,26,.3); }
  .btn.light:hover { background: #fff; }
  .btn:active { transform: translateY(-1px); box-shadow: 0 6px 14px -6px rgba(10,40,26,.4); transition-duration: .08s; }
}
.btn:active { background: var(--green-900); }
.btn.ghost:active, .btn.light:active { background: var(--green-100); }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover, .btn:active { transform: none; transition: background .2s; } }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.center .btn-row { justify-content: center; }
.link-arrow::after { content: " ›"; }

/* первый экран */
.hero { padding: clamp(64px, 9vw, 120px) 0 0; text-align: center; overflow: hidden; }
.hero h1 { max-width: 980px; margin: 0 auto; }
.hero .lead { margin: 22px auto 0; }
.hero .btn-row { justify-content: center; }
.hero-art { margin: clamp(48px, 7vw, 88px) auto 0; max-width: 1100px; }
.route-line { stroke-dasharray: 8 10; animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -1000; } }
@media (prefers-reduced-motion: reduce) { .route-line { animation: none; } html { scroll-behavior: auto; } }

/* цифры доверия */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.stat { padding: 34px 20px 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; white-space: nowrap; line-height: 1.15; font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: -0.02em; color: var(--green-700); }
.stat > span { color: var(--ink-2); font-size: 15px; }

/* сетки карточек */
.grid { display: grid; gap: 20px; margin-top: 56px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--bg); border-radius: var(--radius); padding: 32px; }
.section:not(.alt) .card { background: var(--bg-2); }
.card p { color: var(--ink-2); margin-top: 10px; font-size: 16px; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center; margin-bottom: 20px; }
.card .ico svg { width: 24px; height: 24px; }
.card .meta { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--green-700); }

/* направления */
.route { background: var(--bg); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; }
.route .path { font-size: 15px; font-weight: 600; color: var(--green-500); letter-spacing: .02em; }
.route h3 { margin-top: 8px; font-size: 28px; }
.route ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.route li { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 16px; }
.route li span:last-child { color: var(--ink-2); text-align: right; }
.route .btn { margin-top: auto; align-self: flex-start; }
.route .spacer { flex: 1; min-height: 24px; }

/* шаги */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.step { border-top: 2px solid var(--green-700); padding-top: 20px; }
.step::before { counter-increment: s; content: "0" counter(s); font-size: 15px; font-weight: 700; color: var(--green-500); }
.step h3 { margin-top: 10px; }
.step p { color: var(--ink-2); margin-top: 8px; font-size: 16px; }

/* специализация (тёмный блок) */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }
.panel { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 36px; }
.panel dl { margin: 0; display: grid; gap: 18px; }
.panel dt { font-size: 14px; color: rgba(255,255,255,.6); }
.panel dd { margin: 4px 0 0; font-size: 20px; font-weight: 600; }

/* кейсы */
.case { background: var(--bg); border-radius: var(--radius); padding: 32px; }
.case .tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--green-700); background: var(--green-100);
  border-radius: 980px; padding: 4px 12px; }
.case h3 { margin-top: 16px; }
.case dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 18px 0 0; font-size: 15px; }
.case dt { color: var(--ink-2); }
.case dd { margin: 0; }

/* форма */
.quote { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.form { background: var(--bg); border-radius: 28px; padding: 36px; box-shadow: 0 20px 60px rgba(10,40,26,.08); }
.form .progress { display: flex; gap: 6px; margin-bottom: 24px; }
.form .progress i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.form .progress i.on { background: var(--green-700); }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
.form fieldset[hidden] { display: none; }
.form legend { font-size: 22px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
input, select, textarea { font: inherit; font-size: 17px; color: var(--ink); background: var(--bg-2); border: 1.5px solid transparent;
  border-radius: 12px; padding: 13px 14px; width: 100%; outline: none; transition: border-color .2s, background .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--green-500); background: #fff; }
textarea { min-height: 96px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: block; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; padding: 9px 16px; border-radius: 980px; background: var(--bg-2); color: var(--ink);
  font-size: 15px; cursor: pointer; border: 1.5px solid transparent; }
.chips input:checked + span { border-color: var(--green-700); background: var(--green-100); color: var(--green-900); }
.chips input:focus-visible + span { outline: 2px solid var(--green-500); }
.form .actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.form .consent { font-size: 13px; color: var(--ink-2); }
.form .ok { text-align: center; padding: 24px 0; }
.form .ok h3 { font-size: 28px; }
.messengers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.messengers a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 980px; background: var(--bg);
  color: var(--ink); font-size: 15px; box-shadow: inset 0 0 0 1px var(--line); }
.messengers a:hover { text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--green-700); }

/* FAQ */
.faq { max-width: 820px; margin: 48px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { font-size: 20px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--green-700); font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); margin-top: 12px; }

/* о компании и контакты */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.contacts .card a { font-size: 19px; font-weight: 600; color: var(--ink); }

/* подвал */
footer { background: var(--bg-2); color: var(--ink-2); font-size: 13px; padding: 48px 0 32px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
footer h4 { color: var(--ink); font-size: 13px; margin: 0 0 10px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { color: var(--ink-2); }
footer .legal { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 12px; }
footer .logo img { height: 40px; width: auto; margin-bottom: 14px; }


/* команда и этапы маршрута */
.avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--green-100) url("logo.svg") center/70% no-repeat; margin-bottom: 18px; }
.legs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 48px; }
.leg { padding: 22px 18px 0 0; border-top: 3px solid var(--green-700); position: relative; }
.leg + .leg { padding-left: 18px; }
.leg::before { content: ""; position: absolute; top: -8px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--green-700); }
.leg + .leg::before { left: 18px; }
.leg b { display: block; font-size: 24px; color: var(--green-700); letter-spacing: -0.01em; }
.leg > span { display: block; color: var(--ink-2); font-size: 15px; margin-top: 6px; }
@media (max-width: 820px) { .legs { grid-template-columns: 1fr; gap: 18px; } .leg, .leg + .leg { padding: 12px 0 0 0; } .leg + .leg::before { left: 0; } }

/* сенсорные экраны любой ширины (iPad горизонтально) — цели под палец */
@media (pointer: coarse) { .lang a { padding: 9px 8px; } }

/* липкая кнопка на телефоне — под рекламный трафик */
.sticky-cta { display: none; }

@media (max-width: 980px) {
  .grid.c4, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid.c3, .facts, .contacts { grid-template-columns: 1fr 1fr; }
  .split, .quote { grid-template-columns: 1fr; gap: 40px; }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
/* меню-бургер до 1100px: на iPad горизонтально пункты меню иначе переносятся в две строки */
@media (max-width: 1100px) {
  .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; background: #fff; flex-direction: column;
    padding: 12px 22px 22px; gap: 0; border-bottom: 1px solid var(--line); }
  .nav-links a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--bg-2); }
  .nav.open .nav-links { display: flex; }
  .lang { margin-left: auto; }
  .menu-btn { display: block; }
}
@media (max-width: 820px) {
  .nav .btn { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; gap: 8px;
    transition: transform .3s, opacity .3s; }
  .sticky-cta.away { transform: translateY(140%); opacity: 0; pointer-events: none; }  /* форма на экране — панель не мешает */
  .sticky-cta .btn { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding: 13px 8px; font-size: 15px;
    box-shadow: 0 10px 30px rgba(10,40,26,.25); }
  .sticky-cta .btn:first-child { flex-grow: 1.4; }
  body { padding-bottom: 84px; }
  .lang a { padding: 9px 8px; }  /* палец, а не курсор: цель ~36px */
  .hero-art text { font-size: 24px; }  /* схема ужимается — подписи крупнее, чтобы читались */
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .grid.c2, .grid.c3, .grid.c4, .steps, .facts, .contacts, .row2 { grid-template-columns: 1fr; }
  .card, .route, .case, .form, .panel { padding: 24px; }
  .lang { font-size: 13px; gap: 0; }
  .lang a { padding: 9px 6px; }
  footer .cols { grid-template-columns: 1fr; }
  .stat { min-width: 0; padding: 26px 14px 0; }
  .stat b { white-space: normal; font-size: 28px; }  /* «since 1999» и китайские цифры не вылезают за край */
  .hero-art text { font-size: 30px; }
}
