﻿:root {
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-alt: #f6f8fb;
  --text: #101317;
  --muted: #5b6673;
  --line: #d9e1ea;
  --line-strong: #c7d2df;
  --brand: #2f8fd4;
  --brand-deep: #1b6397;
  --shadow: 0 24px 70px rgba(18, 28, 42, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: min(1280px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 56%, #f2f5f8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(47, 143, 212, 0.10), transparent 28%),
    radial-gradient(circle at top right, rgba(0, 0, 0, 0.05), transparent 18%),
    linear-gradient(rgba(16, 19, 23, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 19, 23, 0.025) 1px, transparent 1px);
  background-size: auto, auto, 120px 120px, 120px 120px;
  pointer-events: none;
}

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

.page-shell {
  width: var(--container);
  margin: 0 auto;
  padding: 18px 0 80px;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand span {
  display: block;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(2.15rem, 3.5vw, 3.05rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.09em;
  color: #11171f;
  text-transform: uppercase;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1.04rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
}

.brand-copy small { color: rgba(255,255,255,0.72); }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle::before { transform: translateY(-6px); }
.nav-toggle::after { transform: translateY(6px); }

.site-nav { display: flex; }

.nav-list {
  display: flex;
  gap: 6px;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item,
.submenu-item { position: relative; }

.nav-link,
.submenu-link,
.subsubmenu-link {
  text-decoration: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 0.94rem;
  font-weight: 800;
  color: #151c25;
  transition: background 0.22s ease, color 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-item:hover > .nav-link,
.nav-item.is-open > .nav-link {
  background: linear-gradient(180deg, #58b1ec 0%, #2f8fd4 100%);
  color: #fff;
}

.nav-arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.22s ease;
}

.nav-item:hover > .nav-link .nav-arrow,
.nav-item.is-open > .nav-link .nav-arrow,
.submenu-item:hover > .submenu-link .nav-arrow,
.submenu-item.is-open > .submenu-link .nav-arrow {
  transform: rotate(225deg) translateY(-1px);
}

.submenu,
.subsubmenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 390px;
  margin: 0;
  padding: 10px;
  list-style: none;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 22px 48px rgba(18, 28, 42, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.subsubmenu {
  top: -10px;
  left: calc(100% + 10px);
  min-width: 320px;
}

.nav-item:hover > .submenu,
.nav-item.is-open > .submenu,
.submenu-item:hover > .subsubmenu,
.submenu-item.is-open > .subsubmenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu-link,
.subsubmenu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 12px;
  color: #18212b;
  font-weight: 700;
}

.submenu-link:hover,
.subsubmenu-link:hover,
.submenu-link.is-active,
.subsubmenu-link.is-active,
.submenu-item:hover > .submenu-link,
.submenu-item.is-open > .submenu-link {
  background: linear-gradient(180deg, #58b1ec 0%, #2f8fd4 100%);
  color: #fff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.button-primary {
  background: #11171f;
  color: #fff;
}

.button-primary:hover {
  transform: translateY(-2px);
  background: #000;
}

.button-secondary {
  background: #fff;
  color: #11171f;
  border: 1px solid var(--line-strong);
}

.button-secondary:hover {
  transform: translateY(-2px);
  border-color: #9db5ca;
}

.hero {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 24px;
  align-items: stretch;
  padding: 42px 0 18px;
}

body[data-page="contacts"] .hero {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 18px;
}

.hero-copy,
.hero-panel,
.tile-card,
.content-card,
.contact-panel,
.footer-band {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-copy { padding: 44px; }

body[data-page="contacts"] .hero-copy {
  height: fit-content;
  padding-bottom: 28px;
}

body[data-page="contacts"] .hero-panel {
  max-width: 980px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-deep);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero h1,
.section-heading h2,
.contact-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.hero h1 {
  font-size: clamp(1.82rem, 2.95vw, 2.95rem);
  max-width: 12ch;
  width: 100%;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
  text-wrap: pretty;
}

.hero-text,
.section-copy,
.tile-card p,
.content-card p,
.contact-copy,
.breadcrumbs {
  color: var(--muted);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

body[data-page="contacts"] .hero-actions {
  display: none;
}

.breadcrumbs {
  margin-top: 16px;
  font-size: 0.94rem;
}

body[data-page="contacts"] .breadcrumbs {
  margin-top: 10px;
}

.breadcrumbs a {
  color: var(--brand-deep);
  text-decoration: none;
}

.hero-panel {
  padding: 28px;
  background:
    linear-gradient(160deg, rgba(47, 143, 212, 0.09), rgba(255, 255, 255, 0.98) 34%, rgba(17, 23, 31, 0.03) 100%),
    #fff;
}

.hero-media {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #0a0d12;
  box-shadow: 0 18px 36px rgba(12, 18, 26, 0.14);
}

.hero-media img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.hero-panel-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.feature-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
}

.feature-card strong,
.tile-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.06rem;
}

.hero-stat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.hero-stat div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(17, 23, 31, 0.04);
  border: 1px solid rgba(17, 23, 31, 0.06);
}

.hero-stat span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-stat strong {
  display: block;
  font-size: 1.05rem;
}

.section-block { margin-top: 22px; }

.section-heading {
  padding: 8px 0 14px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  max-width: 18ch;
}

.card-grid,
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tile-card,
.content-card,
.contact-panel,
.pricing-card {
  padding: 26px;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.pricing-card h3 {
  margin: 0 0 18px;
  font-size: 1.22rem;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
}

.pricing-table th,
.pricing-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.pricing-table th {
  background: #11171f;
  color: #fff;
  font-size: 0.9rem;
}

.pricing-table tbody tr:nth-child(odd) td {
  background: #f8fbff;
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.tile-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--brand-deep);
  text-decoration: none;
  font-weight: 800;
}

.tile-card a::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.content-card h3 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

.contact-layout-single {
  grid-template-columns: 1fr;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.contact-list div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-alt);
}

.contact-list span {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-list strong,
.contact-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.simple-form {
  display: grid;
  gap: 14px;
}

.simple-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.simple-form input,
.simple-form textarea,
.simple-form select {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  font: inherit;
}

.simple-form textarea {
  min-height: 150px;
  padding: 16px;
  resize: vertical;
}

.footer-band {
  margin-top: 28px;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.footer-band p {
  margin: 0;
  color: var(--muted);
}

.footer-band a {
  text-decoration: none;
  color: var(--brand-deep);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.18s; }
.reveal-delay-4 { transition-delay: 0.24s; }

@media (max-width: 1120px) {
  .hero,
  .card-grid,
  .content-grid,
  .contact-layout,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero-stat {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .site-nav {
    width: 100%;
    display: none;
    padding-top: 8px;
  }

  .site-header.nav-open .site-nav {
    display: block;
  }

  .nav-list {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    border: 1px solid var(--line);
    background: #fff;
  }

  .submenu,
  .subsubmenu {
    position: static;
    min-width: 0;
    margin-top: 8px;
    padding: 8px;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
  }

  .nav-item.is-open > .submenu,
  .submenu-item.is-open > .subsubmenu {
    display: block;
  }

  .submenu-link,
  .subsubmenu-link {
    min-height: 48px;
    margin-bottom: 6px;
    border: 1px solid var(--line);
    background: #fff;
  }

}

@media (max-width: 640px) {
  .page-shell {
    width: min(100vw - 24px, 100%);
    padding: 12px 0 56px;
  }

  .site-header {
    padding: 12px;
    border-radius: 18px;
    gap: 10px;
  }

  .brand {
    padding: 0;
    max-width: calc(100vw - 110px);
  }

  .brand span {
    font-size: 1.82rem;
    letter-spacing: -0.08em;
  }

  .brand-copy strong { font-size: 0.9rem; }

  .hero-copy,
  .hero-panel,
  .tile-card,
  .content-card,
  .contact-panel {
    padding: 22px;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 7.1vw, 2.15rem);
    line-height: 1.04;
    max-width: 100%;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 0.72rem;
    letter-spacing: 0.13em;
  }

  .hero-text,
  .section-copy,
  .tile-card p,
  .content-card p,
  .contact-copy,
  .breadcrumbs {
    line-height: 1.65;
    font-size: 0.96rem;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 20px;
  }

  .button {
    width: 100%;
  }

  .hero-media img {
    height: 220px;
  }

  .feature-card,
  .pricing-card,
  .contact-list div {
    padding: 18px;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 10px 10px;
    font-size: 0.88rem;
  }

  .footer-band {
    padding: 18px 20px;
  }

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