:root {
    --ink: #142032;
    --muted: #4b586c;
    --blue: #0051df;
    --blue-dark: #003eae;
    --pale: #eaf1ff;
    --surface: #f7f9fc;
    --line: #dce4ef;
    --white: #fff;
    --radius: 18px;
    --gutter: clamp(18px, 4.5vw, 60px);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--surface);
    line-height: 1.6;
    text-size-adjust: 100%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; object-fit: cover; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 3px solid #2c70ea;
    outline-offset: 3px;
}
p { margin: 0 0 16px; color: var(--muted); }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0 0 18px; font-weight: 750; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(34px, 4.25vw, 63px); letter-spacing: -.05em; }
h2 { font-size: clamp(26px, 3.1vw, 43px); letter-spacing: -.04em; }
h3 { font-size: clamp(18px, 1.9vw, 24px); letter-spacing: -.022em; }
[id] { scroll-margin-top: 100px; }
.shell { width: min(1216px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: clamp(42px, 7vw, 98px); }
.section--white { background: var(--white); }
.lead { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.45; }
.small { font-size: 14px; }
.skip { position: fixed; z-index: 5; left: 16px; top: 12px; transform: translateY(-160%); background: white; padding: 8px 12px; }
.skip:focus { transform: translateY(0); }

.topbar {
    position: sticky;
    top: 0;
    z-index: 4;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}
.topbar__inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: #161b22; font-weight: 750; letter-spacing: -.035em; font-size: 20px; text-decoration: none; white-space: nowrap; }
.brand__mark { width: 32px; height: 32px; flex: none; }
.nav, .lang-switch { display: flex; align-items: center; }
.nav { gap: clamp(14px, 2vw, 32px); font-size: 14px; font-weight: 650; }
.nav a, .nav summary { text-decoration: none; padding: 10px 0; }
.nav a:hover, .nav a[aria-current="page"], .nav summary:hover { color: var(--blue-dark); }
.dropdown { position: relative; }
.dropdown summary { list-style: none; display: flex; align-items: center; gap: 9px; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-2px) rotate(45deg); }
.dropdown[open] summary::after { transform: translateY(2px) rotate(225deg); }
.dropdown__items { position: absolute; display: grid; width: max-content; min-width: 260px; padding: 8px; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px #132c5720; }
.dropdown .dropdown__items a { padding: 9px 12px; border-radius: 6px; }
.dropdown__items a:hover, .dropdown__items a[aria-current="page"] { background: var(--pale); }
.lang-switch { padding: 3px; border: 1px solid var(--line); border-radius: 99px; gap: 3px; font-size: 12px; font-weight: 750; }
.lang-switch a { min-width: 35px; min-height: 34px; display: grid; place-items: center; border-radius: inherit; text-decoration: none; }
.lang-switch a[aria-current] { color: white; background: var(--blue); }
.menu-toggle { display: none; border: 1px solid var(--line); background: white; border-radius: 9px; color: var(--ink); padding: 7px 10px; }

.hero { background: linear-gradient(130deg, #f8faff, #ecf2ff); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .97fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero__image { width: 100%; height: auto; aspect-ratio: 1.33; border-radius: var(--radius); box-shadow: 0 18px 44px #1833531a; }
.hero__text .lead { color: var(--ink); font-weight: 650; }
.hero__note { margin-top: 14px; max-width: 41ch; }
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 47px; padding: 10px 20px; border: 1px solid transparent; border-radius: 99px; text-decoration: none;
    font-weight: 700; line-height: 1.35; color: white; background: var(--blue); text-align: center;
}
.button:hover { background: var(--blue-dark); }
.text-link { color: var(--blue-dark); font-weight: 700; text-underline-offset: 4px; }
.back { display: inline-block; margin-bottom: 18px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 32px; }
.service-grid--five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.service-grid--five > article { grid-column: span 2; }
@media (min-width: 901px) {
    .service-grid--five > article:nth-child(4) { grid-column: 2 / span 2; }
}
.service-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.service-card__image, .service-card__image img { display: block; height: auto; aspect-ratio: 2; width: 100%; object-fit: cover; }
.service-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(16px, 2vw, 26px); }
.service-card__body h2 { font-size: 22px; }
.service-card__body h3 { margin-bottom: 12px; }
.service-card__body h2 a, .service-card__body h3 a { text-decoration: none; }
.service-card__body h2 a:hover, .service-card__body h3 a:hover { color: var(--blue-dark); }
.service-card__body .text-link { margin-top: auto; }

.alt-section { background: var(--pale); }
.split { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1fr); gap: clamp(28px, 7vw, 104px); align-items: start; }
.feature-list > div, .process li { padding-block: 18px; border-bottom: 1px solid #cddaf0; }
.feature-list > div:first-child, .process li:first-child { padding-top: 0; }
.feature-list h3, .process h3 { margin-bottom: 8px; }
.process { list-style: none; counter-reset: step; padding-left: 0; margin: 0; }
.process li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; gap: 15px; }
.process li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--pale); color: var(--blue-dark); font-weight: 750; }
.panel { padding: clamp(22px, 5vw, 60px); background: #132949; color: white; border-radius: var(--radius); }
.panel p { color: #e4ebf8; }
.panel .price { color: white; font-size: clamp(34px, 5vw, 66px); font-weight: 800; line-height: 1.12; letter-spacing: -.05em; }
.panel .button { background: white; color: var(--blue-dark); }
.panel .button:hover { background: var(--pale); }

.reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 290px); gap: clamp(28px, 6vw, 100px); align-items: start; }
.prose { max-width: 76ch; }
.prose p, .prose li { font-size: 17px; }
.prose h2 { font-size: clamp(24px, 2.6vw, 33px); margin-top: 36px; }
.prose h3 { margin-top: 24px; }
.prose p a { color: var(--blue-dark); }
.prose-section { padding-top: 12px; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { padding: 15px 0; font-weight: 700; }
.faq p { padding-bottom: 12px; }
.side-links { position: sticky; top: 100px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.side-links h2 { font-size: 19px; }
.side-links a { display: block; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--blue-dark); }
.contacts { display: flex; gap: 24px 56px; flex-wrap: wrap; margin-block: 24px 0; }
.contacts dt { font-weight: 750; }
.contacts dd { margin: 3px 0 0; color: var(--muted); }
.contacts a { color: var(--blue-dark); }

.form-section { background: var(--pale); }
.form-layout { display: grid; grid-template-columns: minmax(0, .68fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 90px); align-items: start; }
.form-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(17px, 3.2vw, 38px); }
.form-intro .text-link { display: block; margin-top: 16px; }
.legacy-anchor { display: block; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields label { min-width: 0; font-weight: 650; font-size: 14px; }
.fields .full { grid-column: 1 / -1; }
.fields input, .fields select, .fields textarea {
    display: block; width: 100%; min-height: 45px; padding: 8px 10px; margin-top: 5px;
    border: 1px solid #a8b6ca; border-radius: 8px; background: white; color: var(--ink);
    font-weight: 400; font-size: 16px;
}
.fields textarea { resize: vertical; }
.fields input[type="file"] { padding: 8px; }
.fields input::file-selector-button { margin-right: 8px; border: none; padding: 5px 7px; background: var(--pale); color: var(--blue-dark); border-radius: 6px; cursor: pointer; }
.fields small { color: var(--muted); font-weight: 500; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; font-size: 14px; }
.consent input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--blue); }
.consent a { color: var(--blue-dark); }
.form-trap { position: absolute; overflow: hidden; width: 1px; height: 1px; clip-path: inset(50%); }
.notice { border-radius: 8px; padding: 12px; margin-bottom: 18px; }
.notice h3 { margin-bottom: 8px; }
.success { background: #e7f6ef; }
.error { background: #fff0f0; color: #8a1722; }
.footer { background: #132949; color: white; }
.footer__inner { padding-block: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer p { color: #e4ebf8; font-size: 14px; }
.footer .brand { color: white; }
.footer .brand__mark { filter: brightness(0) invert(1); }
.footer .brand + p { margin-top: 8px; }

@media (max-width: 900px) {
    .topbar__inner { min-height: 65px; flex-wrap: wrap; gap: 0 10px; }
    .topbar .menu-toggle { display: block; margin-left: auto; }
    .nav { order: 5; width: 100%; padding: 8px 0 14px; border-top: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 2px; }
    .menu-toggle[aria-expanded="false"]:not([hidden]) + .nav { display: none; }
    .dropdown__items { position: static; width: auto; min-width: 0; box-shadow: none; }
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-grid--five { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .service-grid--five > article:last-child { grid-column: 2 / span 2; }
}

@media (max-width: 650px) {
    .brand { font-size: 18px; gap: 7px; }
    .brand__mark { width: 28px; height: 28px; }
    [id] { scroll-margin-top: 76px; }
    .hero__grid, .split, .reading-layout, .form-layout { grid-template-columns: 1fr; gap: 24px; }
    .hero__image { aspect-ratio: 1.6; }
    .service-grid { grid-template-columns: 1fr; }
    .service-grid--five > article, .service-grid--five > article:last-child { grid-column: auto; }
    .side-links { position: static; }
    .fields { grid-template-columns: 1fr; }
}

@media (max-width: 365px) {
    .topbar .brand { font-size: 15px; gap: 6px; }
    .topbar .brand__mark { width: 25px; height: 25px; }
    .topbar__inner { column-gap: 6px; }
    .topbar .menu-toggle { font-size: 14px; padding-inline: 6px; }
    .lang-switch a { min-width: 29px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
