:root {
  --navy: #1a2b5c;
  --navy-deep: #121f45;
  --green: #2e9b4f;
  --green-deep: #228042;
  --ink: #1a2b5c;
  --muted: #4a5878;
  --line: rgba(26, 43, 92, 0.12);
  --surface: #ffffff;
  --bg: #f3f6f9;
  --shadow: 0 18px 50px rgba(18, 31, 69, 0.12);
  --radius: 18px;
  --container: 1120px;
  --font-display: "Sora", sans-serif;
  --font-body: "Manrope", sans-serif;
  --header-h: 84px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  overflow: visible;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(243, 246, 249, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header.is-scrolled::before {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(18, 31, 69, 0.06);
}

body.menu-open .header {
  z-index: 230;
}

.header__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand__mark {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.brand__name {
  display: flex;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

@media (max-width: 410px) {
  .brand__name {
    flex-direction: column;
    gap: 0;
    font-size: 1.05rem;
    line-height: 1.15;
  }
}

.brand__forseti {
  color: var(--green);
}

.brand__capital {
  color: var(--navy);
}

.brand__tagline {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  width: min(100% - 2.5rem, var(--container));
  height: var(--header-h);
  margin: 0;
  padding-right: 7.5rem;
  transform: translateX(-50%);
  pointer-events: none;
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
  pointer-events: auto;
}

.nav__link:hover,
.nav__link.is-current {
  color: var(--navy);
}

.burger {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border-radius: 10px;
  border: 0;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.burger__line {
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger[aria-expanded="true"] .burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger__line:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] .burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.lang--drawer,
.nav__top,
.nav__close,
.nav__copy {
  display: none;
}

.lang__btn {
  min-width: 2.4rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.lang__btn.is-active {
  background: var(--navy);
  color: #fff;
}

.lang__sep {
  width: 1px;
  height: 0.9rem;
  background: var(--line);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: hero ken 18s ease-out forwards;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 31, 69, 0.28) 0%, rgba(18, 31, 69, 0.55) 45%, rgba(18, 31, 69, 0.82) 100%),
    linear-gradient(90deg, rgba(18, 31, 69, 0.55) 0%, rgba(18, 31, 69, 0.2) 70%, rgba(46, 155, 79, 0.18) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 5.5rem;
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.hero__brand {
  margin: 0 0 0.9rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.hero__brand-mark {
  width: clamp(4.25rem, 9vw, 6rem);
  height: clamp(4.25rem, 9vw, 6rem);
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
}

@media (max-width: 465px) {
  .hero__brand-mark {
    width: 5.75rem;
    height: 5.75rem;
  }
}

.hero__brand-text {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hero__brand-capital {
  color: #fff;
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.95);
  max-width: none;
  width: 100%;
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 38ch;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--green);
  color: #fff;
}

.btn--primary:hover {
  background: var(--green-deep);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

/* Services */
.services {
  padding: 5.5rem 0 4.5rem;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(46, 155, 79, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(26, 43, 92, 0.07), transparent 50%),
    var(--bg);
}

.section-head {
  max-width: 560px;
  margin-bottom: 2.75rem;
}

.section-head__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.divider {
  width: 7rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green) 0%, var(--navy) 100%);
  margin-bottom: 1rem;
}

.section-head__text {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service {
  padding: 1.6rem 0 0.5rem;
  border-top: 1px solid var(--line);
}

.service__index {
  display: block;
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green);
}

.service__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.service__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Inner page */
.page {
  min-height: calc(100svh - var(--header-h) - 160px);
}

.page__hero {
  padding: 3.5rem 0 1.5rem;
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(46, 155, 79, 0.1), transparent 55%),
    var(--bg);
}

.page__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.page__lead {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.page__content {
  padding: 1.5rem 0 5rem;
  background: var(--bg);
}

.page__content--notice {
  padding: 0.5rem 0 5rem;
}

.prose {
  max-width: 46rem;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.75;
}

.prose p {
  margin: 0 0 1.1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose h2,
.prose h3 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.notice {
  max-width: 52rem;
  margin: 0 auto;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.75;
}

.notice__meta {
  margin: 0 0 2.5rem;
  text-align: right;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--navy);
}

.notice__meta a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.notice__heading {
  margin: 0 0 2rem;
  text-align: center;
}

.notice__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.25;
}

.notice__subtitle {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.notice__body p {
  margin: 0 0 1.1rem;
  text-align: justify;
}

.notice__body a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.notice__emphasis {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.notice__requisites {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid rgba(26, 43, 92, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(18, 31, 69, 0.06);
}

.notice__requisites li {
  display: grid;
  grid-template-columns: minmax(9rem, 0.85fr) 1.15fr;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
}

.notice__requisites li:first-child {
  border-top: 0;
  padding-top: 0;
}

.notice__requisites li:last-child {
  padding-bottom: 0;
}

.notice__requisites span {
  font-weight: 600;
  color: var(--muted);
}

@media (max-width: 640px) {
  .notice__body p {
    text-align: left;
  }

  .notice__requisites li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

.requisites {
  margin: 0;
  max-width: 46rem;
  background: var(--surface);
  border: 1px solid rgba(26, 43, 92, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.requisites__row {
  display: grid;
  grid-template-columns: minmax(10rem, 0.9fr) 1.2fr;
  gap: 1rem;
  padding: 1rem 1.35rem;
  border-top: 1px solid var(--line);
}

.requisites__row:first-child {
  border-top: 0;
}

.requisites__row dt {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

.requisites__row dd {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
  word-break: break-word;
}

.requisites__mono {
  font-family: "Sora", monospace;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .requisites__row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 0.95rem 1.1rem;
  }
}

/* Contacts */
.contacts {
  padding: 2rem 0 6rem;
  background:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.65)),
    var(--bg);
}

.contacts__layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.contacts__company {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.4;
}

.contacts__address {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.contacts__logo {
  display: grid;
  place-items: center;
  width: 12rem;
  height: 12rem;
  margin-top: 1.75rem;
}

.contacts__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.contact-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.6rem;
  border: 1px solid rgba(26, 43, 92, 0.06);
}

.contact-card__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-list__item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-list__item:hover,
.contact-list__item--dual:hover {
  background: rgba(46, 155, 79, 0.06);
  transform: translateX(2px);
}

.contact-list__icons {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.contact-list__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

a.contact-list__icon:hover {
  transform: scale(1.06);
  opacity: 0.92;
}

.contact-list__icon--navy {
  background: var(--navy);
}

.contact-list__icon--green {
  background: var(--green);
}

.contact-list__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.contact-list__value {
  display: block;
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}

a.contact-list__value:hover {
  color: var(--green);
}

/* Footer */
.footer {
  position: relative;
  background: var(--green);
  color: rgba(255, 255, 255, 0.9);
  min-height: 160px;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.footer__waves {
  display: none;
}

.footer__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}

.footer__brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer__brand .brand__forseti,
.footer__brand .brand__capital {
  color: #fff;
}

.footer__copy {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero .reveal:nth-child(2) { transition-delay: 0.15s; }
.hero .reveal:nth-child(3) { transition-delay: 0.25s; }
.hero .reveal:nth-child(4) { transition-delay: 0.35s; }

.services__grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.services__grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.services__grid .reveal:nth-child(3) { transition-delay: 0.25s; }

@keyframes heroKen {
  from { transform: scale(1.04); }
  to { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__img {
    animation: none;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .services__grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .contacts__layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .contacts__logo {
    display: none;
  }

}

@media (max-width: 960px) {
  :root {
    --header-h: 72px;
  }

  .header__inner {
    gap: 0.75rem;
  }

  .nav {
    top: 0;
    right: 0;
    left: auto;
    width: min(20rem, 86vw);
    height: 100svh;
    padding: calc(0.85rem + env(safe-area-inset-top, 0px)) 1.35rem 2rem;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.35rem;
    background: #fff;
    border-left: 1px solid var(--line);
    box-shadow: -16px 0 40px rgba(18, 31, 69, 0.18);
    transform: translateX(105%);
    transition: transform 0.28s ease;
    z-index: 240;
    pointer-events: auto;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav__top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin: 0 0 0.75rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--line);
  }

  .lang--drawer {
    display: none;
  }

  .nav__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--navy);
    font-size: 1.85rem;
    line-height: 1;
    cursor: pointer;
  }

  .nav__copy {
    display: block;
    margin: auto 0 0;
    padding-top: 1.25rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--muted);
    pointer-events: none;
  }

  .nav__link {
    padding: 0.95rem 0.85rem;
    border-radius: 12px;
    font-size: 1.05rem;
  }

  .nav__link:hover,
  .nav__link.is-current {
    background: rgba(46, 155, 79, 0.08);
    color: var(--navy);
  }

  .burger {
    display: inline-flex;
  }

  body.menu-open .header {
    z-index: 100;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(18, 31, 69, 0.4);
    backdrop-filter: blur(2px);
    z-index: 180;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
  }

  .nav-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-backdrop[hidden] {
    display: none;
  }

  body.menu-open {
    overflow: hidden;
  }

  .brand__tagline {
    display: none;
  }

  .hero__content {
    padding: 3.5rem 0 4rem;
  }

  .services,
  .contacts {
    padding-left: 0;
    padding-right: 0;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
