:root {
  color-scheme: dark;
  --page: #101614;
  --surface: #1b2621;
  --surface-raised: #26372e;
  --field: #121b17;
  --footer: #0c120f;
  --text: #f2f6f2;
  --muted: #becac2;
  --accent: #a9dfbf;
  --accent-hover: #c1efd3;
  --accent-ink: #14291e;
  --line: #3a4b42;
  --control-line: #71877a;
  --radius-small: 12px;
  --radius: 20px;
  --radius-large: 28px;
  --gutter: clamp(24px, 5vw, 72px);
  --max: 1320px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; min-width: 0; background: var(--page); color: var(--text); font: 1.0625rem/1.58 Arial, "Helvetica Neue", sans-serif; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; overflow-wrap: anywhere; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
::selection { color: var(--accent-ink); background: var(--accent); }
p, h1, h2, h3, ul, ol, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.08; letter-spacing: -.042em; }
h1 { font-size: clamp(3rem, 5.2vw, 5.25rem); }
h2 { font-size: clamp(2.15rem, 4vw, 3.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); letter-spacing: -.026em; }
.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(60px, 8vw, 112px); }

.home-main,
.home-main > [data-theme] { background-color: var(--section-surface, var(--page)); }

.home-main[data-theme="paper"], .home-main [data-theme="paper"] { --section-surface: var(--page); }
.home-main[data-theme="sage"], .home-main [data-theme="sage"] { --section-surface: #172820; }
.home-main[data-theme="mint"], .home-main [data-theme="mint"] { --section-surface: #19382c; }
.home-main[data-theme="sand"], .home-main [data-theme="sand"] { --section-surface: #2d2720; }
.home-main[data-theme="blue"], .home-main [data-theme="blue"] { --section-surface: #182832; }

.home-main[data-theme]:not(.has-color-wave) { transition: background-color 720ms ease; }
.home-main.has-color-wave { isolation: isolate; overflow: clip; }
.section-wave { position: sticky; top: 0; z-index: -1; height: 0; pointer-events: none; }
.section-wave-layer {
  position: absolute;
  inset-inline: 0;
  top: -100vh;
  height: 300vh;
  background-color: var(--section-surface);
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201200%201000%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3Cfilter%20id%3D%22soft%22%20x%3D%22-20%25%22%20y%3D%22-20%25%22%20width%3D%22140%25%22%20height%3D%22140%25%22%3E%3CfeGaussianBlur%20stdDeviation%3D%227%2028%22%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Cpath%20fill%3D%22white%22%20filter%3D%22url%28%23soft%29%22%20d%3D%22M-120-150H1320V500C1140%20448%201030%20446%20860%20489S625%20552%20465%20509%20150%20446-120%20525Z%22%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat;
  animation: section-color-wave 1450ms cubic-bezier(.36, .12, .28, .96) both;
}
.section-wave-layer.is-reversed {
  scale: 1 -1;
  --wave-start: 33.333333%;
  --wave-end: -33.333333%;
}
@keyframes section-color-wave {
  from { translate: 0 var(--wave-start, -33.333333%); }
  to { translate: 0 var(--wave-end, 33.333333%); }
}
.home-main[data-theme] > [data-theme] { background-color: transparent; }
.home-main > .is-current-section :is(h1, h2) { animation: incoming-heading 440ms ease-out; }
@keyframes incoming-heading {
  from { opacity: .76; }
  to { opacity: 1; }
}

[data-reveal-delay="1"] { --reveal-delay: 80ms; }
[data-reveal-delay="2"] { --reveal-delay: 160ms; }
[data-reveal].is-reveal-pending { opacity: 0; }
[data-reveal].is-revealing {
  animation: scroll-reveal 900ms cubic-bezier(.19, .75, .24, 1) var(--reveal-delay, 0ms) both;
}
@keyframes scroll-reveal {
  from { opacity: 0; transform: translateY(56px); }
  to { opacity: 1; transform: none; }
}
@media print, (prefers-reduced-motion: reduce) {
  [data-reveal].is-reveal-pending { opacity: 1; }
  [data-reveal].is-revealing { animation: none; }
}

.service-part, .principle-grid article, .brief-panel, .candidate-note,
.faq-list, .request-form, .requisites, .map-action, .document-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section-intro { margin-top: 20px; max-width: 40ch; color: var(--muted); }
.intro { font-size: 1.3125rem; line-height: 1.52; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 20; padding: 10px 16px; border-radius: var(--radius-small); background: var(--surface-raised); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.eyebrow { margin-bottom: 17px; color: var(--accent); font-size: .8125rem; font-weight: 700; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; }
.eyebrow-line { display: inline-block; vertical-align: .24em; width: 23px; height: 2px; margin-right: 7px; background: currentColor; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 19px; border: 1px solid transparent; border-radius: var(--radius-small); font-size: .9375rem; font-weight: 700; line-height: 1.35; text-align: center; text-decoration: none; transition: background-color .18s, color .18s, border-color .18s; }
.button-primary { background: var(--accent); color: var(--accent-ink); }
.button-primary:hover { background: var(--accent-hover); }
.button-outline { border-color: var(--control-line); background: transparent; color: var(--text); }
.button-outline:hover { background: var(--surface-raised); border-color: var(--accent); color: var(--accent-hover); }
.button:disabled { cursor: wait; opacity: .7; }

.site-header { position: relative; z-index: 5; border-bottom: 1px solid var(--line); background: var(--page); }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; font-size: 1.65rem; line-height: .96; font-weight: 700; letter-spacing: -.055em; text-decoration: none; }
.brand-caption { display: block; margin-top: 6px; font-size: .75rem; font-weight: 700; line-height: 1.1; letter-spacing: .018em; }
.brand-mark { display: grid; width: 42px; height: 42px; grid-template-columns: repeat(3, 5px); grid-template-rows: repeat(3, 5px); gap: 2px; align-content: center; justify-content: center; flex-shrink: 0; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius-small); }
.brand-mark i { background: currentColor; }
.brand-mark i:nth-child(1) { grid-row: 1; grid-column: 1 / 4; }
.brand-mark i:nth-child(2) { grid-row: 2 / 4; grid-column: 2; }
.brand-mark i:nth-child(3) { grid-row: 2; grid-column: 3; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(12px, 2vw, 30px); }
.site-nav a { font-size: .9375rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover { color: var(--accent); text-decoration: underline; }
.header-action { white-space: nowrap; }
.site-nav .mobile-request { display: none; }
.menu-toggle { display: none; }

.hero { display: grid; grid-template-columns: 1.03fr 1fr; align-items: center; gap: clamp(24px, 4.2vw, 65px); padding-block: clamp(44px, 5.5vw, 82px) clamp(55px, 7vw, 102px); }
.hero-copy { padding-block: 10px; }
.hero-copy h1 { line-height: .995; letter-spacing: -.065em; }
.hero-copy h1 em { color: var(--accent); font-style: normal; }
.hero-copy .intro { max-width: 40ch; margin-top: 26px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 29px; }
.hero-visual { isolation: isolate; position: relative; min-width: 0; aspect-ratio: 1.16; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-large); background: var(--surface-raised); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 54% 50%; }
.hero-symbol { position: absolute; right: 0; bottom: 0; display: grid; width: clamp(65px, 12vw, 145px); height: clamp(65px, 12vw, 145px); grid-template: repeat(3, 1fr) / repeat(3, 1fr); gap: 5%; padding: clamp(10px, 1.8vw, 22px); background: var(--accent); color: var(--accent-ink); border-top-left-radius: var(--radius); }
.hero-symbol span { background: currentColor; }
.hero-symbol span:nth-child(1) { grid-row: 1; grid-column: 1 / 4; }
.hero-symbol span:nth-child(2) { grid-row: 2 / 4; grid-column: 2; }
.hero-symbol span:nth-child(3) { grid-row: 2; grid-column: 3; }

.services-section { border-top: 1px solid var(--line); }
.heading-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px 48px; align-items: end; }
.heading-grid > p { max-width: 44ch; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 24px); margin-top: 37px; }
.service-part { min-width: 0; padding: clamp(20px, 2.4vw, 32px); }
.service-part h3 { margin-top: 19px; }
.service-part p { margin-top: 11px; color: var(--muted); }
.service-icon { display: grid; width: 47px; height: 47px; place-content: center; position: relative; border-radius: var(--radius-small); background: var(--surface-raised); color: var(--accent); }
.service-icon::before, .service-icon::after { display: block; content: ""; }
.icon-target::before { width: 22px; height: 22px; border: 2px solid currentColor; border-radius: 50%; }
.icon-target::after { position: absolute; width: 8px; height: 8px; inset: 0; margin: auto; border-radius: 50%; background: currentColor; }
.icon-search::before { width: 16px; height: 16px; margin: 0 4px 4px 0; border: 2px solid currentColor; border-radius: 50%; }
.icon-search::after { position: absolute; left: 27px; top: 29px; width: 9px; height: 2px; transform: rotate(45deg); background: currentColor; }
.icon-list::before { width: 19px; height: 22px; border: 2px solid currentColor; border-radius: 2px; }
.icon-list::after { position: absolute; width: 9px; height: 2px; top: 19px; left: 19px; background: currentColor; box-shadow: 0 5px currentColor; }
.text-link { display: inline-block; margin-top: 23px; color: var(--accent); font-weight: 700; }

.brief-grid, .request-grid, .contact-grid, .split-section { display: grid; grid-template-columns: .87fr 1.13fr; gap: clamp(28px, 7vw, 110px); align-items: start; }
.brief-grid .intro, .request-grid .intro { max-width: 35ch; margin-top: 18px; }
.brief-grid .intro { color: var(--muted); }
.brief-panel { padding: clamp(20px, 3.6vw, 45px); }
.brief-form { display: grid; gap: 16px; }
.brief-form button { justify-self: start; }
.brief-row, .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.brief-output { min-width: 0; padding-block: 8px; color: var(--accent); font-weight: 700; overflow-wrap: anywhere; }
.field { display: grid; align-content: start; gap: 6px; min-width: 0; }
.field label { font-size: .875rem; font-weight: 700; }
.field small { color: var(--muted); font-size: .8125rem; line-height: 1.35; }
.field input, .field select, .field textarea { appearance: none; display: block; width: 100%; min-width: 0; min-height: 47px; padding: 9px 11px; border: 1px solid var(--control-line); border-radius: var(--radius-small); background: var(--field); color: var(--text); }
.field select { padding-right: 33px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%23a9dfbf' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field.full { grid-column: 1 / -1; }

.timeline { list-style: none; padding: 0; }
.timeline li { position: relative; margin-left: 8px; padding: 0 0 27px 25px; border-left: 1px solid var(--control-line); }
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before { position: absolute; top: 3px; left: -6px; content: ""; width: 11px; height: 11px; border: 2px solid var(--accent); background: var(--surface); border-radius: 50%; }
.timeline p { max-width: 53ch; margin-top: 8px; color: var(--muted); }
.principle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 24px); margin-top: 36px; }
.principle-grid article { padding: clamp(20px, 2.4vw, 32px); }
.principle-grid p { margin-top: 11px; color: var(--muted); }
.situations { padding: 0; list-style: none; }
.situations li { padding: 17px 0; border-top: 1px solid var(--line); }
.situations li:last-child { border-bottom: 1px solid var(--line); }
.situations strong, .situations span { display: block; }
.situations span { color: var(--muted); }
.candidate-note { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 46px; padding: 23px 26px; }
.candidate-note p { margin-top: 5px; color: var(--muted); }

.home-main[data-theme] > .faq-section { padding-top: 0; }
.faq-list { padding-inline: clamp(16px, 2.4vw, 28px); }
.faq-list details + details { border-top: 1px solid var(--line); }
.faq-list summary { position: relative; list-style: none; padding: 15px 34px 15px 0; font-weight: 700; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after { position: absolute; right: 3px; top: 27px; content: ""; width: 13px; height: 2px; background: var(--accent); }
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: none; }
.faq-list details p { padding: 0 26px 15px 0; color: var(--muted); }

.request-email, .contact-links a { color: var(--accent); font-size: clamp(1.125rem, 2.2vw, 1.625rem); font-weight: 700; }
.request-email { display: inline-block; margin-top: 20px; }
.request-form { padding: clamp(20px, 3.4vw, 40px); }
.consent-row { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 10px; margin-top: 21px; font-size: .875rem; line-height: 1.5; }
.consent-row input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--accent); }
.consent-row a { color: var(--accent); }
.consent-row label { display: block; font-weight: 700; }
.required-note { margin: 12px 0 16px; color: var(--muted); font-size: .8125rem; }
#form-status { margin-top: 14px; padding: 10px 13px; border: 1px solid var(--accent); border-radius: var(--radius-small); background: var(--surface-raised); }
#form-status[data-type="error"] { border-color: #e3a097; background: #422923; }
#form-status a { white-space: normal; }

.contact-grid { align-items: stretch; }
.contact-links { display: grid; justify-items: start; gap: 6px; margin-top: 20px; }
.contact-grid address { margin-top: 19px; font-style: normal; }
.requisites { margin-top: 25px; padding: 20px; }
.requisites dl { display: grid; gap: 7px; margin-top: 12px; }
.requisites dl div { display: grid; grid-template-columns: 1.1fr 1.8fr; gap: 8px; }
.requisites dt { color: var(--muted); }
.requisites dd { font-weight: 700; overflow-wrap: anywhere; }
.map { position: relative; overflow: hidden; min-height: 385px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius); }
.map-placeholder { position: relative; display: grid; place-items: center; height: 100%; min-height: 385px; padding: 24px; }
.map-pattern { position: absolute; inset: -35%; transform: rotate(23deg); opacity: .63; }
.map-pattern::before, .map-pattern::after { position: absolute; inset: 0; content: ""; }
.map-pattern::before { border-left: 12px solid var(--control-line); border-right: 12px solid var(--control-line); width: 76px; margin: 0 auto; box-shadow: -138px 0 0 -18px var(--control-line), 112px 0 0 -25px var(--control-line); }
.map-pattern::after { border-top: 12px solid var(--control-line); border-bottom: 12px solid var(--control-line); height: 70px; margin: auto 0; box-shadow: 0 -112px 0 -18px var(--control-line), 0 96px 0 -20px var(--control-line); }
.map-action { z-index: 1; width: min(100%, 300px); padding: 20px 14px; text-align: center; }
.map-pin { width: 22px; height: 22px; margin: 0 auto 13px; transform: rotate(-45deg); border: 6px solid var(--accent); border-radius: 50% 50% 50% 0; }
.map-action p { margin-bottom: 13px; font-weight: 700; }
.map-action > a { display: block; margin-top: 10px; font-size: .875rem; }
.map-frame, .map-frame iframe { width: 100%; height: 100%; min-height: 385px; border: 0; display: block; }
.map-frame { position: absolute; inset: 0; }
.map-external { z-index: 2; position: absolute; bottom: 13px; left: 13px; padding: 6px 9px; border-radius: var(--radius-small); background: var(--surface); color: var(--text); }

.site-footer { padding-block: 45px 22px; background: var(--footer); color: var(--text); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.06fr .87fr 1.07fr; gap: 30px; padding-bottom: 33px; }
.footer-email { display: table; margin-top: 17px; color: var(--accent); }
.footer-nav { display: grid; align-content: start; justify-items: start; gap: 7px; }
.footer-nav h2 { margin-bottom: 5px; color: var(--accent); font-size: 1rem; letter-spacing: 0; }
.footer-nav a { color: var(--text); font-size: .9375rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer-bottom > p { flex-shrink: 0; }

.document, .error-page { padding-block: clamp(43px, 7vw, 90px); }
.document-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, 310px); align-items: start; gap: clamp(27px, 6vw, 95px); }
.document h1, .error-page h1 { max-width: 16ch; font-size: clamp(2.55rem, 5.2vw, 5rem); overflow-wrap: anywhere; }
.document-article > .intro, .error-page .intro { max-width: 51ch; margin-top: 20px; color: var(--muted); }
.document-article section { margin-top: 31px; padding-top: 22px; border-top: 1px solid var(--line); }
.document-article section h2 { font-size: clamp(1.45rem, 2.8vw, 2.1rem); }
.document-article section p, .document-article > p:last-child { margin-top: 12px; }
.document-aside { padding: 22px; }
.document-aside h2 { font-size: 1.25rem; letter-spacing: -.02em; }
.document-aside p { margin-top: 10px; }
.document-aside > a { display: inline-block; margin-top: 10px; }
.document-links { display: grid; gap: 7px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .875rem; }

@media (max-width: 1050px) {
  .hero-break { display: none; }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .header-inner { min-height: 72px; flex-wrap: wrap; gap: 12px; padding-block: 11px; }
  .header-action { display: none; }
  .site-nav { justify-content: flex-start; }
  .menu-toggle:not([hidden]) { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; padding: 6px 11px; border: 1px solid var(--control-line); border-radius: var(--radius-small); background: transparent; color: var(--accent); font-size: .875rem; font-weight: 700; }
  .menu-icon { position: relative; width: 15px; height: 10px; border-block: 2px solid currentColor; }
  .site-nav[data-collapsed] { display: none; }
  .site-nav { flex: 0 0 100%; padding: 8px 0 3px; }
  .site-nav a, .site-nav .mobile-request { display: inline-flex; min-height: 36px; align-items: center; }
  .hero { gap: 20px; }
}
@media (max-width: 720px) {
  h1 { font-size: clamp(2.7rem, 8.4vw, 4.3rem); }
  .hero, .heading-grid, .brief-grid, .request-grid, .contact-grid, .split-section, .document-grid { grid-template-columns: 1fr; }
  .hero { gap: 27px; padding-top: 34px; }
  .hero-copy { padding: 0; }
  .hero-copy .intro { margin-top: 18px; }
  .hero-actions { margin-top: 21px; }
  .hero-visual { aspect-ratio: 1.28; }
  .heading-grid { gap: 16px; }
  .service-grid, .principle-grid { grid-template-columns: 1fr; }
  .service-part h3 { margin-top: 12px; }
  .candidate-note { align-items: start; flex-direction: column; padding: 18px; }
  .map, .map-placeholder, .map-frame, .map-frame iframe { min-height: 330px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div { grid-column: 1 / -1; }
}
@media (max-width: 440px) {
  .intro { font-size: 1.25rem; }
  .form-grid, .brief-row { grid-template-columns: 1fr; }
  .footer-grid { gap: 22px; }
  .footer-bottom { flex-direction: column; }
  .request-form, .brief-panel { padding: 16px; }
  .requisites dl div { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .section-wave { display: none; }
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
