:root {
  --ink: #122033;
  --muted: #5f6f83;
  --line: #dce7f2;
  --blue: #1684c7;
  --blue-strong: #006bad;
  --sky: #dff1ff;
  --soft: #f4f8fb;
  --white: #ffffff;
  --amber: #f3bd49;
  --teal: #20a7a0;
  --shadow: 0 18px 50px rgba(18, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, Roboto, Arial, sans-serif;
  line-height: 1.55;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 78px;
  padding: 14px clamp(18px, 5vw, 76px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--blue-strong);
  border: 2px solid var(--blue);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  text-transform: uppercase;
  line-height: 1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2.3vw, 32px);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  padding: 8px 0;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
  content: "";
}

.nav a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: var(--white);
  border: 1px solid var(--line);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.2fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 78px);
  padding: clamp(36px, 6vw, 88px) clamp(18px, 5vw, 76px);
  background:
    linear-gradient(90deg, rgba(223, 241, 255, 0.86) 0 42%, rgba(255,255,255,0) 42%),
    var(--white);
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.95;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.15;
}

.hero p,
.section p,
.consultation p,
.delivery p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  font-weight: 800;
}

.btn.primary {
  color: var(--white);
  background: var(--blue);
}

.btn.primary:hover {
  background: var(--blue-strong);
}

.btn.ghost {
  color: var(--blue-strong);
  background: rgba(255,255,255,0.72);
}

.btn.original {
  color: var(--ink);
  border-color: rgba(21, 48, 72, 0.24);
  background: var(--white);
}

.btn.original:hover {
  border-color: var(--blue);
  color: var(--blue-strong);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 540px;
  margin: 0;
}

.hero-stats div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
}

.hero-stats dt {
  font-size: 26px;
  font-weight: 900;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-media {
  margin: 0;
  box-shadow: var(--shadow);
}

.hero-media img,
.rounded-image,
.about img,
.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media img {
  aspect-ratio: 16 / 10;
}

.section {
  padding: clamp(56px, 8vw, 108px) clamp(18px, 5vw, 76px);
}

.section.soft {
  background: var(--soft);
}

.section-head {
  max-width: 860px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-head.compact {
  max-width: 760px;
  margin-bottom: 28px;
}

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

.category-card {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  background: var(--ink);
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
  opacity: 0.74;
  transition: transform 220ms ease, opacity 220ms ease;
}

.category-card:hover img {
  opacity: 0.92;
  transform: scale(1.04);
}

.category-card span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 10px 12px;
  color: var(--white);
  background: rgba(18, 32, 51, 0.82);
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.profile-card {
  min-height: 230px;
  padding: 22px;
  background:
    linear-gradient(150deg, rgba(255,255,255,0.96), rgba(255,255,255,0.74)),
    url("product-collage.png") center / cover;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(18,32,51,0.08);
}

.profile-card span {
  display: block;
  margin-bottom: 16px;
  color: var(--blue-strong);
  font-size: 24px;
  font-weight: 900;
}

.profile-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  text-transform: uppercase;
}

.profile-card p {
  font-size: 14px;
}

.accent-blue { border-bottom: 5px solid var(--blue); }
.accent-teal { border-bottom: 5px solid var(--teal); }
.accent-cyan { border-bottom: 5px solid #55c5e8; }
.accent-amber { border-bottom: 5px solid var(--amber); }
.accent-slate { border-bottom: 5px solid #394a5e; }

.split,
.about,
.delivery,
.contacts,
.consultation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.rounded-image,
.about figure,
.gallery-image {
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.rounded-image {
  aspect-ratio: 16 / 10;
}

.door-types,
.benefits {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.door-types span,
.benefits div,
.glass-grid article,
.accessory-grid article,
.review-grid blockquote,
.steps li {
  background: var(--white);
  border: 1px solid var(--line);
}

.door-types span {
  padding: 14px 16px;
  font-weight: 800;
}

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

.glass-grid article {
  padding: 28px;
  text-align: center;
}

.glass-icon {
  display: block;
  width: 58px;
  height: 82px;
  margin: 0 auto 18px;
  border: 4px solid #7fb8d8;
  box-shadow: inset 12px 0 0 rgba(22,132,199,0.14);
  transform: skewX(-8deg);
}

.glass-icon.double {
  border-right-width: 12px;
}

.glass-icon.warm {
  border-color: var(--amber);
  box-shadow: inset 12px 0 0 rgba(243,189,73,0.22);
}

.accessory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.accessory-grid article {
  display: grid;
  place-items: end start;
  min-height: 180px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.1), rgba(18,32,51,0.72)),
    url("gallery-collage.png") center / cover;
}

.accessory-grid span {
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 900;
  content: "✓";
}

.about figure {
  margin: 0;
}

.about img {
  aspect-ratio: 4 / 3;
}

.benefits {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefits div {
  padding: 16px;
}

.benefits strong,
.benefits span {
  display: block;
}

.benefits span {
  color: var(--muted);
  font-size: 13px;
}

.consultation {
  padding: clamp(48px, 7vw, 88px) clamp(18px, 5vw, 76px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(18, 32, 51, 0.88), rgba(0, 107, 173, 0.72)),
    url("hero-windows.png") center / cover;
}

.consultation .eyebrow,
.consultation p {
  color: var(--white);
}

.phone {
  font-size: 28px;
  font-weight: 900;
}

.lead-form {
  display: grid;
  gap: 12px;
  padding: 24px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.4);
}

.lead-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  font: inherit;
}

.lead-form textarea {
  resize: vertical;
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--blue-strong);
  font-size: 13px;
  font-weight: 800;
}

.gallery-image {
  aspect-ratio: 16 / 9;
}

.reviews {
  text-align: center;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
}

.review-grid blockquote {
  margin: 0;
  padding: 28px;
}

.review-grid cite {
  color: var(--blue-strong);
  font-style: normal;
  font-weight: 900;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  font-weight: 900;
}

.steps span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--blue);
}

.contacts {
  padding: 0 clamp(18px, 5vw, 76px) clamp(56px, 8vw, 108px);
  align-items: stretch;
}

.map {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.4) 1px, transparent 1px) 0 0 / 54px 54px,
    linear-gradient(rgba(255,255,255,0.4) 1px, transparent 1px) 0 0 / 54px 54px,
    linear-gradient(135deg, #d7f0dc, #d9eefb 50%, #f7efe1);
  border: 1px solid var(--line);
}

.road {
  position: absolute;
  height: 22px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(18,32,51,0.08);
  transform-origin: center;
}

.road-a {
  top: 40%;
  left: -8%;
  width: 116%;
  transform: rotate(-8deg);
}

.road-b {
  top: 18%;
  left: 18%;
  width: 92%;
  transform: rotate(32deg);
}

.road-c {
  top: 66%;
  left: 8%;
  width: 70%;
  transform: rotate(18deg);
}

.pin {
  position: absolute;
  top: 48%;
  left: 50%;
  padding: 9px 12px;
  color: var(--white);
  background: var(--blue-strong);
  border-radius: 3px;
  font-weight: 900;
  transform: translate(-50%, -50%);
}

.pin::before {
  position: absolute;
  bottom: -9px;
  left: calc(50% - 8px);
  width: 16px;
  height: 16px;
  background: var(--blue-strong);
  transform: rotate(45deg);
  content: "";
}

.contact-panel {
  padding: clamp(28px, 4vw, 46px);
  background: var(--ink);
  color: var(--white);
}

.contact-panel .eyebrow,
.contact-panel address {
  color: var(--white);
}

.contact-panel address {
  margin: 0 0 24px;
  font-style: normal;
}

.schedule {
  display: grid;
  gap: 6px;
}

.schedule span {
  color: #d8e5ef;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(18px, 5vw, 76px);
  color: var(--muted);
  background: var(--sky);
  font-size: 14px;
}

.footer p {
  margin: 0;
}

.footer a {
  font-weight: 900;
  color: var(--blue-strong);
}

@media (max-width: 1100px) {
  .hero,
  .split,
  .about,
  .delivery,
  .contacts,
  .consultation {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .category-grid,
  .accessory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    min-height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 18px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 12px 0;
  }

  .hero {
    padding-top: 38px;
    background: linear-gradient(180deg, var(--sky), var(--white) 44%);
  }

  .hero-stats,
  .category-grid,
  .product-row,
  .glass-grid,
  .accessory-grid,
  .benefits,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .category-card,
  .category-card img,
  .map {
    min-height: 250px;
  }

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