:root {
  --bg: #f0f7ff;
  --bg-alt: #e8f1fb;
  --text: #173b63;
  --muted: #3b5f86;
  --tile: #f4f8fd;
  --line: rgba(23, 59, 99, 0.14);
  --btn-1: #2478ee;
  --btn-2: #1b6de2;
  --btn-3: #0d5fd3;
  --column: 1200px;
  --pad: 24px;
  --font-body: "Inter", system-ui, sans-serif;
  --font-display: "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  background-image: linear-gradient(135deg, #ffffff 0%, #fafafa 50%, #f0f7ff 100%);
}

h1,
h2,
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin-bottom: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--column);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.section {
  padding: 3.5rem 0;
}

.section--alt {
  background: var(--bg-alt);
}

.muted {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(175deg, var(--btn-1) 0%, var(--btn-2) 45%, var(--btn-3) 100%);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.14s ease;
}

.btn:hover {
  filter: brightness(1.06);
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 66px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(36, 120, 238, 0.06);
}

.site-header__inner {
  max-width: var(--column);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.35rem;
  text-decoration: none;
  flex-shrink: 0;
}

.wordmark img {
  display: block;
  height: 40px;
  width: auto;
}

.wordmark:hover {
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
  font-size: 16px;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
}

.site-nav a:hover {
  text-decoration: underline;
}

.btn-header {
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
}

.menu-toggle__bars {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  position: relative;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--text);
}

.menu-toggle__bars::before {
  top: -7px;
}

.menu-toggle__bars::after {
  top: 7px;
}

@media (max-width: 767px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.75rem var(--pad);
    background: #ffffff;
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.65rem 0;
  }

  .btn-header {
    display: none;
  }

  .wordmark img {
    height: 32px;
  }

  .site-header__inner {
    position: relative;
    flex-wrap: wrap;
  }
}

.hero {
  padding: 3rem 0 3.5rem;
  position: relative;
}

.hero--split {
  padding: 3.25rem 0 4rem;
}

.hero--split::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(36, 120, 238, 0.35) 35%,
    rgba(27, 109, 226, 0.2) 65%,
    transparent 100%
  );
  pointer-events: none;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero-split__copy h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  max-width: 16ch;
}

.hero-split__media {
  min-width: 0;
}

@media (max-width: 720px) {
  .hero-split {
    grid-template-columns: 1fr;
  }

  .hero-split__copy h1 {
    max-width: none;
  }

  .hero-split__media {
    order: -1;
  }
}

.hero__tags {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.section-heading::after {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  margin-top: 0.65rem;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--btn-1), rgba(36, 120, 238, 0));
}

.media-slot {
  flex-shrink: 0;
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background-color: rgba(255, 255, 255, 0.45);
  background-image: repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(23, 59, 99, 0.035) 10px,
      rgba(23, 59, 99, 0.035) 11px
    ),
    linear-gradient(160deg, rgba(255, 255, 255, 0.7) 0%, rgba(244, 248, 253, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.media-slot__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--muted);
  text-align: center;
  max-width: 12rem;
  line-height: 1.35;
}

.media-slot--hero {
  min-height: clamp(220px, 38vw, 380px);
  width: 100%;
}

.media-slot--tall {
  min-height: 200px;
}

.media-slot--wide {
  min-height: 140px;
}

.media-slot--compact {
  min-height: 88px;
}

.media-slot--gprof {
  min-height: clamp(160px, 22vw, 220px);
}

.media-slot--photo {
  padding: 0;
  overflow: hidden;
  background: #e8f1fb;
  border: none;
}

.media-slot--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-slot--hero.media-slot--photo {
  height: clamp(220px, 38vw, 380px);
}

.tile--krovlya .tile__body {
  flex: 0 0 auto;
}

.tile--krovlya .media-slot--photo {
  position: relative;
  flex: 1 1 auto;
  min-height: 240px;
}

.tile--krovlya .media-slot--photo img {
  position: absolute;
  inset: 0;
}

.media-slot--compact.media-slot--photo {
  height: 148px;
}

.media-slot--wide.media-slot--photo {
  height: 168px;
}

.media-slot--gprof.media-slot--photo {
  height: clamp(180px, 24vw, 240px);
}

.bento.tiles {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  grid-auto-rows: minmax(0, auto);
}

.tile--krovlya {
  grid-column: 1 / 9;
  grid-row: span 2;
}

.tile--doborka {
  grid-column: 9 / 13;
}

.tile--steny {
  grid-column: 9 / 13;
}

.tile--fasady {
  grid-column: 1 / 6;
}

.tile--teplo {
  grid-column: 6 / 9;
}

.tile--gibka {
  grid-column: 9 / 13;
}

.tile.tile--gprof {
  grid-column: 1 / 13;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

@media (max-width: 720px) {
  .bento.tiles {
    grid-template-columns: 1fr;
  }

  .bento.tiles .tile {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }

  .tile--gprof {
    grid-template-columns: 1fr;
  }
}

.tile {
  background: var(--tile);
  padding: 1.25rem 1.35rem;
  border-radius: 1.25rem;
  min-height: 9.5rem;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.bento .tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(23, 59, 99, 0.08);
  border-color: rgba(36, 120, 238, 0.18);
}

.no-motion .bento .tile {
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.no-motion .bento .tile:hover {
  transform: none;
}

.tile__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

a.tile,
a.tile:hover {
  color: inherit;
  text-decoration: none;
}

a.tile:focus-visible {
  outline: 2px solid var(--btn-2);
  outline-offset: 3px;
}

.tile h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.tile p {
  font-size: 0.95rem;
  margin: 0;
  color: var(--text);
}

.tile .btn {
  margin-top: 1rem;
  font-size: 0.9rem;
  align-self: flex-start;
}

.lead-line {
  font-size: 1.05rem;
  max-width: 42rem;
}

.point-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 40rem;
  font-size: 0.98rem;
}

.point-list li {
  position: relative;
  padding: 0.28rem 0 0.28rem 1rem;
}

.point-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--btn-2);
}

.how-focus {
  max-width: 42rem;
  margin-bottom: 1.75rem;
}

.how-focus p {
  margin-bottom: 0.65rem;
}

.how-close {
  max-width: 42rem;
  margin-top: 1.75rem;
}

.how-close p {
  margin-bottom: 0.65rem;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.step {
  flex: 1 1 140px;
  min-width: 0;
  background: var(--tile);
  padding: 1.25rem 1rem;
  border-radius: 0;
}

.step__title {
  font-weight: 700;
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

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

.form-section {
  scroll-margin-top: 80px;
}

.form-invite {
  max-width: 36rem;
  margin: 0 0 1.25rem;
}

.zayavka-form {
  max-width: 36rem;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.form-message {
  margin-top: 1rem;
  font-weight: 600;
  display: none;
}

.form-message.is-visible {
  display: block;
}

.form-message--ok {
  color: var(--btn-2);
}

.form-message--err {
  color: #b91c1c;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.site-footer .wordmark {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.site-footer .wordmark img {
  height: 32px;
}

.site-footer a {
  color: inherit;
}

.breadcrumbs {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs span {
  color: var(--text);
}

.hero--material .hero-split__copy h1 {
  max-width: 14em;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
}

.material-copy {
  max-width: 42rem;
  margin-bottom: 2.25rem;
}

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

.material-notes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.material-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.material-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1rem;
  border-bottom: 1px solid var(--line);
}

.material-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--btn-2);
}

.material-aside {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .material-notes {
    grid-template-columns: 1fr;
  }
}

.gprof-uses.bento-uses {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.gprof-use--okna {
  grid-column: 1 / 8;
}

.gprof-use--dveri {
  grid-column: 8 / 13;
}

.gprof-use--vitrazhi {
  grid-column: 1 / 5;
}

.gprof-use--vhod {
  grid-column: 5 / 13;
}

@media (max-width: 720px) {
  .gprof-uses.bento-uses {
    grid-template-columns: 1fr;
  }

  .gprof-uses.bento-uses .gprof-use {
    grid-column: 1 / -1 !important;
  }
}

.gprof-use {
  background: var(--tile);
  padding: 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.bento-uses .gprof-use:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(23, 59, 99, 0.07);
  border-color: rgba(36, 120, 238, 0.16);
}

.no-motion .bento-uses .gprof-use:hover {
  transform: none;
}

.media-slot--use-lg {
  min-height: 180px;
}

.media-slot--use-md {
  min-height: 140px;
}

.media-slot--use-sm {
  min-height: 120px;
}

.media-slot--use-wide {
  min-height: 160px;
}

.gprof-use h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.gprof-use p {
  font-size: 0.95rem;
  margin: 0;
}

.gprof-systems.bento-systems {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  grid-auto-rows: minmax(0, auto);
}

.system-card--1 {
  grid-column: 1 / 8;
  grid-row: span 2;
}

.system-card--2 {
  grid-column: 8 / 13;
}

.system-card--3 {
  grid-column: 1 / 6;
}

.system-card--4 {
  grid-column: 6 / 13;
}

@media (max-width: 720px) {
  .gprof-systems.bento-systems {
    grid-template-columns: 1fr;
  }

  .gprof-systems.bento-systems .system-card {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }
}

.system-card {
  background: var(--tile);
  min-height: 200px;
  padding: 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.bento-systems .system-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(23, 59, 99, 0.07);
  border-color: rgba(36, 120, 238, 0.16);
}

.no-motion .bento-systems .system-card:hover {
  transform: none;
}

.media-slot--system-feature {
  min-height: clamp(220px, 32vw, 320px);
  flex: 1;
}

.media-slot--system-md {
  min-height: 160px;
}

.media-slot--system-wide {
  min-height: 180px;
}

.system-card__body {
  margin-top: auto;
}

.system-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.system-card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.dev-veil {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(240, 247, 255, 0.62);
  pointer-events: none;
}

.dev-veil p {
  margin: 0;
  padding: 0.9rem 1.4rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 8px 30px rgba(23, 59, 99, 0.12);
}

[data-reveal],
[data-hero-title] {
  opacity: 0;
}

.no-motion [data-reveal],
.no-motion [data-hero-title] {
  opacity: 1 !important;
  transform: none !important;
}
