/* ОсОО В Плюсе. Палитра и шрифт взяты из презентации компании:
   тёмный фон, ночное небо, Alegreya. Один акцент (северное сияние), одна система радиусов. */

@font-face { font-family: "Alegreya"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/fonts/alegreya-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alegreya"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/fonts/alegreya-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/fonts/alegreya-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alegreya"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/fonts/alegreya-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/fonts/alegreya-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alegreya"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/fonts/alegreya-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/fonts/alegreya-sans-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/fonts/alegreya-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya Sans"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/fonts/alegreya-sans-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alegreya Sans"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/fonts/alegreya-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;

  --bg: #121417;
  --bg-2: #181b20;
  --bg-night: #0f1b2d;
  --text: #e8eaed;
  --muted: #a3acb6;
  --line: rgb(255 255 255 / 0.14);
  --accent: #7fc8b2;
  --on-accent: #0b1411;

  --radius: 2px;
  --nav-h: 72px;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);

  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1.08rem, 0.6vw + 1rem, 1.25rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: rgb(255 255 255 / 0.35); text-underline-offset: 0.2em; transition: color 0.2s, text-decoration-color 0.2s; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius); }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1.1em; max-width: 62ch; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; letter-spacing: -0.005em; }
h2 { font-size: clamp(2rem, 3.4vw + 0.8rem, 3.4rem); line-height: 1.08; margin-bottom: 0.55em; }
h3 { font-size: clamp(1.35rem, 1vw + 1rem, 1.75rem); line-height: 1.2; font-weight: 500; }
address { font-style: normal; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.lead { font-size: clamp(1.25rem, 1.1vw + 1rem, 1.55rem); line-height: 1.5; color: var(--text); }
.sec { padding-block: clamp(72px, 11vw, 150px); }
.sec--night { background: var(--bg-night); }
.sec--flush { padding-block: 0; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--radius); font-weight: 500; }
.skip:focus { top: 12px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--sans); font-weight: 500; font-size: 1.08rem; line-height: 1; white-space: nowrap;
  text-decoration: none; border: 1px solid var(--accent); border-radius: var(--radius);
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: #9bd8c5; border-color: #9bd8c5; color: var(--on-accent); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--ghost { background: rgb(18 20 23 / 0.45); color: var(--text); border-color: rgb(255 255 255 / 0.55); }
.btn--ghost:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn--small { min-height: 42px; padding: 0 20px; font-size: 1rem; }

/* Навигация */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.nav.is-solid { background: rgb(18 20 23 / 0.92); border-bottom-color: var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav__row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo__img { height: 54px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; align-items: center; gap: 26px; }
.nav__list a { text-decoration: none; font-size: 1.05rem; color: var(--muted); padding-block: 8px; border-bottom: 1px solid transparent; }
.nav__list a:hover, .nav__list a[aria-current="true"] { color: var(--text); border-bottom-color: var(--accent); }
.nav__toggle { display: none; }

/* Hero */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; }
.hero__shade { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(18 20 23 / 0.88) 0%, rgb(18 20 23 / 0.55) 48%, rgb(18 20 23 / 0.15) 100%),
    linear-gradient(0deg, rgb(18 20 23 / 0.95) 0%, rgb(18 20 23 / 0) 38%); }
.hero__body { padding-top: calc(var(--nav-h) + 40px); padding-bottom: clamp(48px, 9vh, 104px); }
.hero__title { font-size: clamp(2.6rem, 6.2vw, 5.4rem); line-height: 1.02; letter-spacing: -0.015em; max-width: 9em; }
.hero__logo { position: absolute; right: clamp(24px, 8vw, 150px); top: 50%; transform: translateY(-42%); width: min(28vw, 400px); height: auto; }
.hero__name { display: block; font-size: clamp(1.25rem, 1.6vw + 0.6rem, 1.9rem); font-weight: 500; color: var(--accent); letter-spacing: 0; margin-bottom: 0.45em; }
.hero__lead { max-width: 36em; margin: 1.6rem 0 2rem; font-size: clamp(1.15rem, 1vw + 1rem, 1.4rem); color: #d3d8de; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Кто мы */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 8vw, 120px); align-items: start; }
.facts { border-left: 1px solid var(--line); padding-left: clamp(24px, 3vw, 44px); display: grid; gap: 32px; margin: 0; }
.facts__item { margin: 0; }
.facts dt { color: var(--muted); font-size: 1rem; }
.facts dd { margin: 2px 0 0; font-family: var(--serif); font-weight: 700; font-size: clamp(1.7rem, 2vw + 0.8rem, 2.5rem); line-height: 1.1; color: var(--text); }

/* Миссия и видение */
.statement { display: grid; gap: clamp(72px, 10vw, 140px); }
.statement__block { max-width: 62rem; }
.statement__block--shift { margin-left: auto; }
.statement h2 { font-size: clamp(1.1rem, 0.6vw + 1rem, 1.4rem); font-family: var(--sans); font-weight: 500; color: var(--accent); margin-bottom: 0.9rem; }
.statement__big { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3.2vw + 0.6rem, 3.3rem); line-height: 1.16; max-width: 24em; margin-bottom: 1.4rem; }
.statement__small { color: var(--muted); max-width: 46em; }

/* Ценности */
.values { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 7vw, 110px); align-items: start; }
.values__title { position: sticky; top: calc(var(--nav-h) + 32px); margin: 0; }
.values__list li { padding-block: 30px; border-top: 1px solid var(--line); }
.values__list li:first-child { padding-top: 0; border-top: 0; }
.values__list li:last-child { padding-bottom: 0; }
.values__list h3 { margin-bottom: 0.4em; font-weight: 700; }
.values__list p { margin: 0; color: var(--muted); }

/* Split (история, результаты) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(86vh, 860px); }
.split__media { position: relative; min-height: 340px; overflow: hidden; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__body { align-self: center; padding: clamp(56px, 8vw, 120px) clamp(24px, 6vw, 96px); max-width: 44rem; }
.split--rev .split__media { order: 2; }
.split--rev .split__body { justify-self: end; }
.split__sub { margin-top: 1.6em; }
.split__body > p:last-child { margin-bottom: 0; }

/* Команда */
.team__head { max-width: 46rem; margin-bottom: clamp(40px, 6vw, 72px); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(190px, auto); gap: 14px; }
.bento__cell { grid-column: span 3; }
.bento__cell:nth-child(n+6) { grid-column: span 4; }
.bento__cell { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.25s, transform 0.3s var(--ease); }
.bento__cell:hover { border-color: rgb(127 200 178 / 0.6); transform: translateY(-3px); }
.bento__cell h3 { margin-bottom: 0.35em; font-size: clamp(1.25rem, 0.8vw + 1rem, 1.55rem); }
.bento__cell p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.bento__cell--lead, .bento__cell--lead:nth-child(n) { grid-column: span 6; grid-row: span 2; }
.bento__cell--lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.bento__cell--lead::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgb(15 20 28 / 0.92) 12%, rgb(15 20 28 / 0.35) 70%); }
.bento__txt { position: relative; z-index: 2; }
.bento__cell--lead h3 { font-size: clamp(1.7rem, 1.6vw + 1rem, 2.4rem); }
.bento__cell--lead p { color: #d3d8de; font-size: 1.1rem; max-width: 26em; }
.team__note { margin: clamp(40px, 6vw, 72px) 0 0; max-width: 40em; font-family: var(--serif); font-size: clamp(1.4rem, 1.4vw + 1rem, 1.9rem); line-height: 1.35; color: var(--text); }

/* Офисы */
.offices { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); border-top: 1px solid var(--line); }
.offices .lead { max-width: 40em; }
.offices__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); margin-top: clamp(48px, 7vw, 96px); }
.office { display: grid; gap: 4px; padding-top: 28px; border-top: 1px solid var(--accent); }
.office__city { font-family: var(--serif); font-weight: 700; font-size: clamp(2.6rem, 5vw + 0.5rem, 4.8rem); line-height: 1; margin-bottom: 14px; }
.office__line { color: var(--muted); font-size: 1.2rem; }

/* Озеро: карьера, реквизиты, контакты */
.lake { position: relative; isolation: isolate; overflow: hidden; }
.lake__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: -2; }
.lake__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(18 20 23 / 0.94) 0%, rgb(15 27 45 / 0.6) 30%, rgb(15 27 45 / 0.66) 70%, rgb(18 20 23 / 0.97) 100%); }
.lake__sec { padding-block: clamp(64px, 9vw, 120px); }
.career, .official, .contacts { max-width: 52rem; }
.career p:last-child { margin: 2rem 0 0; }
.tel { color: var(--accent); text-decoration-color: rgb(127 200 178 / 0.5); white-space: nowrap; }
.tel:hover { color: #9bd8c5; }
.tel--big { font-family: var(--serif); font-weight: 700; font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem); text-decoration: none; }
.official h3 { margin: 2rem 0 1rem; color: var(--accent); font-family: var(--sans); font-weight: 500; font-size: 1.2rem; }
.requisites { margin: 0; display: grid; gap: 0; }
.requisites div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; padding-block: 16px; border-top: 1px solid var(--line); }
.requisites div:last-child { border-bottom: 1px solid var(--line); }
.requisites dt { color: var(--muted); }
.requisites dd { margin: 0; }
.requisites .todo { color: var(--muted); font-style: italic; }
.contacts__list { display: grid; gap: 22px; margin-top: 2rem; }
.contacts__list li { display: grid; gap: 2px; }
.contacts__label { color: var(--muted); font-size: 1rem; }

.foot { border-top: 1px solid var(--line); padding-block: 36px 44px; background: rgb(18 20 23 / 0.55); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; align-items: baseline; }
.foot p { margin: 0; color: var(--muted); }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot__links a { color: var(--muted); font-size: 1rem; }
.foot__links a:hover { color: var(--accent); }

/* Юридические страницы и 404 */
.doc { min-height: 100dvh; display: flex; flex-direction: column; }
.doc__bar { padding-block: 24px; border-bottom: 1px solid var(--line); }
.doc__main { flex: 1; padding-block: clamp(48px, 8vw, 110px); }
.doc__main h1 { font-size: clamp(2rem, 3.4vw + 0.8rem, 3.2rem); line-height: 1.1; margin-bottom: 0.6em; }
.doc__main p { color: var(--muted); }
.doc__back { display: inline-block; margin-top: 1rem; }

/* Появление при скролле: показывает порядок чтения, без декоративных циклов */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
@media (prefers-reduced-motion: no-preference) {
  .hero__title, .hero__lead, .hero__cta { animation: rise 0.9s var(--ease) both; }
  .hero__lead { animation-delay: 0.12s; }
  .hero__cta { animation-delay: 0.24s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .bento__cell:hover, .btn:active { transform: none; }
}

/* Планшет и телефон */
@media (max-width: 1020px) {
  .hero__logo { display: none; }
  .nav__toggle { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; background: transparent; color: var(--text); border: 1px solid rgb(255 255 255 / 0.4); border-radius: var(--radius); font: inherit; font-size: 1rem; cursor: pointer; }
  .nav__menu { position: absolute; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 20px; padding: 12px var(--gutter) 28px; background: rgb(18 20 23 / 0.98); border-bottom: 1px solid var(--line); display: none; }
  .nav__menu.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
  .nav__menu .btn { width: 100%; }
}
@media (max-width: 860px) {
  .about, .values { grid-template-columns: 1fr; }
  .facts { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .values__title { position: static; }
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split__media { min-height: 0; aspect-ratio: 16 / 10; }
  .split--rev .split__media { order: 0; }
  .split--rev .split__body { justify-self: stretch; }
  .split__body { max-width: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__cell, .bento__cell:nth-child(n+6) { grid-column: span 1; }
  .bento__cell--lead, .bento__cell--lead:nth-child(n) { grid-column: span 2; grid-row: auto; min-height: 320px; }
  .bento__cell:last-child { grid-column: span 2; }
  .offices__grid { grid-template-columns: 1fr; }
  .statement__block--shift { margin-left: 0; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento__cell, .bento__cell:nth-child(n+6), .bento__cell--lead, .bento__cell--lead:nth-child(n), .bento__cell:last-child { grid-column: auto; }
  .requisites div { grid-template-columns: 1fr; gap: 4px; }
  .hero__cta .btn { flex: 1 1 100%; }
}

@media (max-width: 860px) {
  .hero__shade { background: linear-gradient(0deg, rgb(18 20 23 / 0.96) 0%, rgb(18 20 23 / 0.7) 55%, rgb(18 20 23 / 0.45) 100%); }
}
