/* ponytail: метрики Arial подогнаны под Montserrat/Ubuntu — меньше сдвига макета (CLS) при подгрузке веб-шрифтов */
@font-face { font-family: 'Montserrat Fallback'; src: local('Arial'); size-adjust: 113.4%; ascent-override: 85.3%; descent-override: 22.1%; line-gap-override: 0%; }
@font-face { font-family: 'Ubuntu Fallback'; src: local('Arial'); size-adjust: 100.5%; ascent-override: 93%; descent-override: 19%; line-gap-override: 3%; }
:root {
  --coral-ink: #c23a2b;
  --navy: #262262;
  --navy-deep: #15123a;
  --coral: #f26657;
  --coral-dark: #a8301f;
  --green: #2bb673;
  --ink: #1d1d2b;
  --muted: #5d5d73;
  --line: #e8e8f0;
  --bg-soft: #f5f5fa;
  --radius: 20px;
  --wrap: min(1200px, 100% - 32px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 400 17px/1.6 'Ubuntu', 'Ubuntu Fallback', sans-serif; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: 'Montserrat', 'Montserrat Fallback', sans-serif; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 13px/1 'Montserrat', 'Montserrat Fallback', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-ink); margin-bottom: 18px; }
.approach .eyebrow, .hero .eyebrow, .contacts .eyebrow { color: var(--coral); }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); max-width: 720px; margin: 20px 0 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0; font: 700 15px 'Montserrat', 'Montserrat Fallback', sans-serif; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #c8402f; color: #fff; box-shadow: 0 10px 30px -10px rgba(242,102,87,.7); }
.btn-primary:hover { background: var(--coral-dark); }
.btn-ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn svg { width: 18px; height: 18px; }

/* header */
.header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.85); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(38,34,98,.08); }
.header .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 19px 'Montserrat', 'Montserrat Fallback', sans-serif; color: var(--navy); letter-spacing: .02em; }
.brand img { width: 38px; height: 38px; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a, .lang { text-decoration: none; font: 500 15px 'Montserrat', 'Montserrat Fallback', sans-serif; color: var(--navy); transition: color .2s; }
.nav a:hover, .lang:hover { color: var(--coral-ink); }
.lang { padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: 13px; }
.header .btn { min-height: 44px; padding: 0 22px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
#menu { margin: 72px 16px auto auto; padding: 8px; min-width: 220px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(38,34,98,.18); }
#menu a { display: block; padding: 12px 20px; border-radius: 12px; text-decoration: none; font: 500 16px 'Montserrat', 'Montserrat Fallback', sans-serif; color: var(--navy); }
#menu a:hover { background: var(--bg-soft); }
@media (max-width: 900px) {
  .nav, .header .btn { display: none; }
  .lang { margin-left: auto; }
  .menu-btn { display: block; }
}

/* hero */
.hero { position: relative; color: #fff; background: var(--navy-deep) url(hero-map.jpg) 70% center / cover no-repeat; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, var(--navy-deep) 28%, rgba(21,18,58,.6) 70%, rgba(21,18,58,.25)); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; left: -160px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(242,102,87,.35), transparent 70%); }
.hero .wrap { min-height: min(86svh, 820px); display: flex; flex-direction: column; justify-content: center; padding: 96px 0 56px; }
.hero h1 { font-size: clamp(38px, 6.4vw, 76px); font-weight: 800; max-width: 820px; }
.hero h1 span { background: linear-gradient(90deg, var(--green), #7ee2ae); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: clamp(17px, 2vw, 21px); max-width: 580px; color: rgba(255,255,255,.82); margin: 24px 0 40px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 16px 56px; margin: 72px 0 0; padding: 28px 0 0; border-top: 1px solid rgba(255,255,255,.15); }
.hero-stats dt { font: 800 clamp(26px, 3vw, 34px)/1 'Montserrat', 'Montserrat Fallback', sans-serif; }
.hero-stats dd { margin: 8px 0 0; color: rgba(255,255,255,.7); font-size: 14px; }
@media (max-width: 640px) { .hero-stats { grid-template-columns: 1fr 1fr; } }

/* about */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-grid p { color: var(--muted); }
.photo { position: relative; }
.photo img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: 0 30px 60px -30px rgba(38,34,98,.45); }
.photo::before { content: ""; position: absolute; inset: 20px -12px -12px 20px; z-index: -1; border-radius: var(--radius); background: linear-gradient(135deg, var(--green), var(--navy)); opacity: .9; }
.about-grid > div:last-child { isolation: isolate; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 72px; }
.stat { padding: 32px; border-radius: var(--radius); background: var(--bg-soft); position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--c, var(--coral)); }
.stat:nth-child(2) { --c: var(--green); }
.stat:nth-child(3) { --c: var(--navy); }
.stat h3 { font-size: 24px; color: var(--navy); margin-bottom: 10px; }
.stat p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .about-grid, .stats { grid-template-columns: 1fr; } }

/* approach */
.approach { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.approach h2 { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 56px 0 0; list-style: none; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 36px 32px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.12); font-size: 18px; transition: transform .25s, border-color .25s; }
.steps li:hover { transform: translateY(-4px); border-color: rgba(242,102,87,.5); }
.steps li::after { content: "0" counter(step); position: absolute; top: 28px; right: 32px; font: 800 44px/1 'Montserrat', 'Montserrat Fallback', sans-serif; color: rgba(255,255,255,.08); }
.steps img { width: 56px; height: 56px; margin-bottom: 24px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* services */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; margin-top: 56px; }
.card { display: flex; flex-direction: column; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: #fff; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: 0 24px 50px -20px rgba(38,34,98,.3); transform: translateY(-4px); }
.card-media { position: relative; overflow: hidden; }
.card-media img { aspect-ratio: 16/9; object-fit: cover; width: 100%; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(21,18,58,.85)); }
.card h3 { position: absolute; z-index: 1; left: 24px; bottom: 18px; font-size: 20px; color: #fff; letter-spacing: .02em; }
.card h3 span { color: var(--coral); }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card details { margin-top: auto; padding-top: 16px; }
.card summary { cursor: pointer; font: 700 14px 'Montserrat', 'Montserrat Fallback', sans-serif; color: var(--coral-ink); list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; }
.card summary::-webkit-details-marker { display: none; }
.card summary::after { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(242,102,87,.12); font-size: 16px; transition: transform .2s; }
.card details[open] summary::after { transform: rotate(45deg); }
.card ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.card li + li { margin-top: 6px; }
.card li::marker { color: var(--green); }

/* partners */
.partners { background: var(--bg-soft); }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; margin: 56px 0 0; padding: 0; }
.logos li { list-style: none; background: #fff; border-radius: 16px; padding: 6px; display: grid; place-items: center; aspect-ratio: 4/3; transition: box-shadow .25s; }
.logos li:hover { box-shadow: 0 12px 30px -12px rgba(38,34,98,.25); }
.logos img { width: auto; max-height: 104px; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s; }
.logos li:hover img { filter: none; opacity: 1; }

/* contacts */
.contacts { position: relative; overflow: hidden; isolation: isolate; color: #fff; text-align: center; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); }
.contacts::before, .contacts::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.contacts::before { width: 480px; height: 480px; right: -140px; top: -200px; background: radial-gradient(circle, rgba(43,182,115,.35), transparent 70%); }
.contacts::after { width: 420px; height: 420px; left: -160px; bottom: -220px; background: radial-gradient(circle, rgba(242,102,87,.3), transparent 70%); }
.contacts h2 { color: #fff; }
.contacts .lead { color: rgba(255,255,255,.8); margin: 20px auto 40px; }
.contacts .actions { justify-content: center; }

.footer { background: var(--navy-deep); color: rgba(255,255,255,.7); font-size: 14px; }
.footer .wrap { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; padding: 32px 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; font-size: 16px; }
.footer .brand img { width: 30px; height: 30px; }

/* ponytail: появление секций на чистом CSS (scroll-driven animations), без JS; где не поддерживается — просто статично */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(32px); } }
  }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
