:root {
  --bg: #f5f7fa;
  --bg-soft: #eef2f6;
  --white: #ffffff;
  --text: #1c2430;
  --muted: #5b6775;
  --line: #d7dee7;
  --brand: #1f6fb2;
  --brand-deep: #155a94;
  --accent: #2f8f6b;
  --stone: #6b7280;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(28, 36, 48, 0.08);
  --font-display: "Syne", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --pad: clamp(1rem, 2.2vw, 2rem);
  --max: 1680px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 1.02rem;
}

@media (min-width: 1400px) {
  body {
    font-size: 1.05rem;
  }
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.55rem max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.48) 0%,
    rgba(255, 255, 255, 0.28) 100%
  );
  backdrop-filter: blur(24px) saturate(1.45);
  -webkit-backdrop-filter: blur(24px) saturate(1.45);
  border: 0;
  box-shadow: 0 10px 28px rgba(15, 23, 32, 0.06);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  width: auto;
  height: 44px;
  max-width: 56px;
  border-radius: 0;
  object-fit: contain;
  display: block;
}

@media (min-width: 960px) {
  .logo img {
    height: 48px;
    max-width: 62px;
  }
}

.nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
  color: #1a2330;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.nav a:hover {
  color: var(--brand-deep);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.phone {
  color: #123a63;
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.phone-short {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  font: 600 0.95rem var(--font-body);
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
}

.btn-sm {
  min-height: 40px;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

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

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

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--text);
}

.hero {
  position: relative;
  min-height: clamp(320px, 42vh, 460px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

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

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 36, 56, 0.72) 0%, rgba(20, 36, 56, 0.35) 48%, rgba(20, 36, 56, 0.18) 100%),
    linear-gradient(0deg, rgba(20, 36, 56, 0.45), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(2rem, 5vh, 3rem) var(--pad) clamp(1.5rem, 4vh, 2.5rem);
  color: #fff;
}

.brand-mark {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  animation: riseIn 0.85s ease both;
}

.contacts-brand {
  margin: 0.35rem 0 1.1rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.hero h1 {
  max-width: 22ch;
  margin: 0 0 0.65rem;
  font-size: clamp(1.2rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  animation: riseIn 0.85s ease 0.06s both;
}

.hero-lead {
  max-width: 42ch;
  margin: 0 0 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  animation: riseIn 0.85s ease 0.12s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: riseIn 0.85s ease 0.18s both;
}

.hero-calc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  font: 500 0.92rem var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 0.12rem;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  animation: riseIn 0.85s ease 0.24s both;
}

.hero-calc-link::after {
  content: "→";
  font-size: 0.95em;
  transition: transform 0.2s ease;
}

.hero-calc-link:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

.hero-calc-link:hover::after {
  transform: translateX(3px);
}

.stats {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stats-track {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 1.4rem var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stats article strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
  color: var(--brand-deep);
}

.stats article span {
  color: var(--muted);
  font-size: 0.92rem;
}

.feed-rail {
  background: var(--bg);
  padding: 1.1rem 0 0;
  overflow: visible;
}

.feed-rail-head {
  width: min(100%, var(--max));
  margin: 0 auto 0.75rem;
  padding: 0 var(--pad);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.feed-rail-head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
}

.feed-rail-all {
  flex-shrink: 0;
  font-size: 0.92rem;
}

.feed-rail-track {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  /* room for card shadows - overflow clips otherwise */
  padding: 1rem max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))) 1.55rem;
  margin-bottom: 0.15rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.feed-rail-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.feed-rail-track::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.feed-rail-card {
  flex: 0 0 220px;
  width: 220px;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(28, 36, 48, 0.1);
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feed-rail-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(28, 36, 48, 0.14);
}

.feed-rail-media {
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  overflow: hidden;
}

.feed-rail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-rail-body {
  padding: 0.65rem 0.7rem 0.75rem;
  display: grid;
  gap: 0.2rem;
}

.feed-rail-body time {
  color: var(--muted);
  font-size: 0.72rem;
}

.feed-rail-body h3 {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-rail-body p {
  display: none;
}

.catalog-layout {
  display: flex;
  flex-direction: column;
}

.catalog-main {
  min-width: 0;
}

.section-head,
.why-intro,
.calc-copy {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 var(--pad);
}

.catalog,
.why,
.calc,
.delivery,
.order,
.contacts {
  padding: clamp(3.2rem, 7vw, 5.5rem) 0;
}

.catalog {
  padding-top: clamp(2.2rem, 5vw, 3.4rem);
}

@media (min-width: 1100px) {
  .catalog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 268px;
    gap: 1.5rem;
    align-items: start;
    width: min(100%, var(--max));
    margin: 0 auto;
    padding: 0 var(--pad);
  }

  .catalog-main .section-head,
  .catalog-main .catalog-tools,
  .catalog-main .catalog-grid,
  .catalog-main .catalog-empty {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
  }

  .feed-rail {
    position: sticky;
    top: 5.25rem;
    max-height: calc(100vh - 5.75rem);
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
    background: transparent;
    order: 0;
  }

  .feed-rail-head {
    width: 100%;
    margin: 0 0 0.55rem;
    padding: 0 0.15rem;
    flex-shrink: 0;
  }

  .feed-rail-head h2 {
    font-size: 1.15rem;
  }

  .feed-rail-track {
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-snap-type: none;
    /* room for card shadows inside overflow clip */
    padding: 0.75rem 0.7rem 1.15rem;
    margin: 0 -0.3rem;
    cursor: default;
    gap: 0.75rem;
    scrollbar-width: none;
  }

  .feed-rail-track::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .feed-rail-card {
    flex: none;
    width: 100%;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: stretch;
    box-shadow: 0 5px 14px rgba(28, 36, 48, 0.1);
  }

  .feed-rail-card:nth-child(n + 11) {
    display: none;
  }

  .feed-rail-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(28, 36, 48, 0.13);
  }

  .feed-rail-media {
    position: relative;
    width: 76px;
    max-width: 76px;
    aspect-ratio: auto;
    min-height: 76px;
    overflow: hidden;
    align-self: stretch;
  }

  .feed-rail-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
  }

  .feed-rail-body {
    padding: 0.35rem 0.55rem 0.45rem 0.15rem;
    align-content: start;
  }

  .feed-rail-body h3 {
    font-size: 0.8rem;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
  }

  .feed-rail-body time {
    font-size: 0.68rem;
  }
}

@media (max-width: 1099px) {
  .catalog {
    padding-top: 1.15rem;
  }

  .feed-rail {
    order: -1;
  }
}

.section-head h2,
.why-intro h2,
.calc-copy h2,
.order-invite h2,
.contacts h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.85rem, 2.6vw, 2.55rem);
}

.section-head p,
.why-intro p,
.calc-copy p,
.order-invite p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  text-wrap: pretty;
}

.catalog-grid {
  width: min(100%, var(--max));
  margin: 1.25rem auto 0;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.catalog-tools {
  width: min(100%, var(--max));
  margin: 1.1rem auto 0;
  padding: 0 var(--pad);
  display: grid;
  gap: 0.75rem;
}

.catalog-search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  padding: 0.7rem 0.95rem;
  font: 500 0.98rem var(--font-body);
  box-shadow: var(--shadow);
}

.catalog-search input:focus {
  outline: 2px solid rgba(31, 111, 178, 0.22);
  border-color: var(--brand);
}

.catalog-filters {
  display: grid;
  gap: 0.55rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  font: 600 0.84rem var(--font-body);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-chip:hover {
  border-color: #b7c6d6;
  color: var(--text);
}

.filter-chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.catalog-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.catalog-empty {
  width: min(100%, var(--max));
  margin: 1rem auto 0;
  padding: 0 var(--pad);
  color: var(--muted);
}

.product.is-hidden {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.product {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(28, 36, 48, 0.12);
}

.product-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
  user-select: none;
  touch-action: pan-y;
  cursor: zoom-in;
}

.product-slides {
  position: absolute;
  inset: 0;
}

.product-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.product-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.product-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.product-visual:hover .product-nav,
.product-visual:focus-within .product-nav,
.product-visual.is-touch .product-nav {
  opacity: 1;
}

.product-nav:hover {
  background: #fff;
}

.product-nav-prev {
  left: 0.55rem;
}

.product-nav-next {
  right: 0.55rem;
}

.product-dots {
  position: absolute;
  left: 50%;
  bottom: 0.55rem;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  gap: 0.35rem;
}

.product-dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.product-dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

.product-counter {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(20, 24, 30, 0.55);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.product-body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.product-body h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.3;
}

.product-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-body ul {
  margin: 0.1rem 0;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.product-body ul li + li {
  margin-top: 0.15rem;
}

.price {
  margin-top: auto !important;
  color: var(--brand-deep) !important;
  font-weight: 700;
}

.product .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 0.35rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font: 600 0.95rem var(--font-body);
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.product .text-link:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
  border-bottom-color: transparent;
  color: #fff;
}

.text-link {
  color: var(--brand);
  font-weight: 600;
  width: fit-content;
  border-bottom: 1px solid transparent;
}

.text-link:hover {
  border-color: currentColor;
}

.why {
  background: var(--white);
}

.why-grid {
  width: min(100%, var(--max));
  margin: 2rem auto 0;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.why-grid article {
  padding: 1.25rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.why-num {
  display: block;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}

.why-grid h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}

.why-grid p {
  margin: 0;
  color: var(--muted);
}

.calc {
  background: var(--bg-soft);
}

.calc-panel {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.calc-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.calc-span-2,
.calc-mode,
.calc-hint,
.calc-result,
.calc-order {
  grid-column: 1 / -1;
}

.calc-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f7fa;
}

.calc-mode-btn {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: 600 0.82rem var(--font-body);
  padding: 0.55rem 0.4rem;
  cursor: pointer;
}

.calc-mode-btn.is-active {
  background: #fff;
  color: var(--brand-deep);
  box-shadow: 0 1px 4px rgba(15, 23, 32, 0.08);
}

.calc-hint {
  margin: -0.15rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
}

.calc-hint.is-warn {
  color: #9a4b00;
}

.calc-form label,
.lead-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.calc-form [hidden],
.lead-form [hidden] {
  display: none !important;
}

.calc-area-live {
  grid-column: 1 / -1;
  margin: -0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.calc-area-live strong {
  color: var(--text);
  font-weight: 600;
}

.calc-form input,
.calc-form select,
.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  padding: 0.75rem 0.8rem;
  font: 500 1rem var(--font-body);
}

.lead-form textarea {
  resize: vertical;
  min-height: 5.5rem;
  max-width: 100%;
}

.calc-form input:focus,
.calc-form select:focus,
.lead-form input:focus,
.lead-form textarea:focus {
  outline: 2px solid rgba(31, 111, 178, 0.25);
  border-color: var(--brand);
}

.calc-result {
  padding: 1rem;
  background: #e8f3fc;
  border: 1px solid #c5def3;
  border-radius: 8px;
}

.calc-result p {
  margin: 0.2rem 0;
  font-size: 1.05rem;
}

.calc-result-main {
  font-size: 1.35rem !important;
}

.calc-result .muted,
.calc-note {
  color: var(--muted);
  font-size: 0.9rem !important;
}

.calc-order {
  width: 100%;
}

.phone {
  -webkit-touch-callout: none;
}

.phone-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.phone-sheet[hidden] {
  display: none;
}

.phone-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 32, 0.42);
  cursor: pointer;
}

.phone-sheet-card {
  position: relative;
  z-index: 1;
  width: min(100% - 1rem, 420px);
  margin: 0 0.5rem 0.75rem;
  padding: 0.7rem 0.7rem 0.55rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(15, 23, 32, 0.18);
  display: grid;
  gap: 0.35rem;
}

.phone-sheet-number {
  margin: 0.15rem 0.35rem 0.45rem;
  text-align: center;
  font: 600 1rem var(--font-body);
  color: var(--text);
}

.phone-sheet-item,
.phone-sheet-cancel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--brand-deep);
  font: 600 0.95rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
}

.phone-sheet-item:hover,
.phone-sheet-cancel:hover {
  background: #f3f8fc;
}

.phone-sheet-cancel {
  color: var(--muted);
  font-weight: 500;
  border-color: transparent;
  background: transparent;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 90;
  transform: translateX(-50%);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: #123a63;
  color: #fff;
  font: 600 0.88rem var(--font-body);
  box-shadow: 0 10px 28px rgba(15, 23, 32, 0.2);
}

.copy-toast[hidden] {
  display: none;
}

.delivery-row {
  width: min(100%, var(--max));
  margin: 2rem auto 0;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.delivery-row article {
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 3px solid var(--brand);
  box-shadow: var(--shadow);
}

.delivery-row h3 {
  margin: 0 0 0.45rem;
}

.delivery-row p {
  margin: 0;
  color: var(--muted);
}

.order {
  background: var(--white);
}

.order-invite {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 1.6rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background:
    radial-gradient(circle at 12% 20%, rgba(31, 111, 178, 0.12), transparent 42%),
    radial-gradient(circle at 88% 80%, rgba(47, 143, 107, 0.1), transparent 40%),
    var(--bg);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

.order-invite h2 {
  margin: 0 0 0.4rem;
}

.order-invite p {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
}

.order-invite .btn {
  flex-shrink: 0;
}

.product .text-link,
.order-open {
  cursor: pointer;
}

.order-modal {
  width: min(100% - 2rem, 560px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.order-modal::backdrop {
  background: rgba(16, 24, 34, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.order-modal-card {
  position: relative;
  padding: 1.45rem 1.35rem 1.25rem;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  border: 1px solid rgba(215, 222, 231, 0.95);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(16, 24, 34, 0.22);
}

.order-modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.order-modal-close:hover {
  background: #e5ebf1;
  color: var(--text);
}

.order-modal-head {
  margin: 0 1.6rem 1.1rem 0;
}

.order-modal-eyebrow {
  margin: 0 0 0.25rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-modal-head h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 3vw, 1.8rem);
}

.order-modal-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.order-modal .lead-form input[name="material"]:not(:placeholder-shown) {
  border-color: rgba(31, 111, 178, 0.35);
  background: #f3f8fd;
}

.lead-form .full,
.lead-form .full-btn,
.form-note,
.form-success,
.form-error {
  grid-column: 1 / -1;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.form-success {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
}

.form-error {
  margin: 0;
  color: #9a3b2f;
  font-weight: 600;
}

.contacts {
  background: var(--bg-soft);
}

.contacts-grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.contact-list li {
  display: grid;
  gap: 0.15rem;
}

.contact-list span {
  color: var(--muted);
  font-size: 0.85rem;
}

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

.socials a {
  color: var(--brand);
  font-weight: 600;
  border-bottom: 1px solid rgba(31, 111, 178, 0.3);
}

.map-placeholder {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(20, 36, 56, 0.15), rgba(20, 36, 56, 0.55)),
    url("../assets/photos/prod-landscape.jpg") center / cover;
  display: grid;
  place-content: end start;
  padding: 1.25rem;
  color: #fff;
  overflow: hidden;
}

.map-placeholder p {
  margin: 0.15rem 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem var(--pad) 2rem;
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-size: 0.9rem;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }

  .header-cta {
    margin-left: auto;
    gap: 0.45rem;
  }

  .header-cta .btn {
    order: 1;
    flex-shrink: 0;
    padding: 0.5rem 0.7rem;
    font-size: 0.8rem;
  }

  .header-cta .phone {
    order: 2;
    display: inline;
    font-size: 0.72rem;
    letter-spacing: -0.01em;
    line-height: 1.15;
  }

  .phone-full {
    display: none;
  }

  .phone-short {
    display: inline;
  }

  .burger {
    display: inline-block;
    margin-left: 0;
    flex-shrink: 0;
  }

  .site-header.is-open .nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(28px) saturate(1.4);
    -webkit-backdrop-filter: blur(28px) saturate(1.4);
    border: 0;
    box-shadow: 0 18px 40px rgba(15, 23, 32, 0.14);
    padding: 0.35rem 0 0.55rem;
  }

  .site-header.is-open .nav a {
    padding: 0.95rem var(--pad);
    color: #1a2330;
    font-weight: 600;
    text-shadow: none;
    border-bottom: 1px solid rgba(28, 36, 48, 0.06);
  }

  .site-header.is-open .nav a:last-child {
    border-bottom: 0;
  }

  .stats-track,
  .why-grid,
  .delivery-row,
  .calc-panel,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .catalog-grid,
  .calc-form,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 300px;
  }

  .order-modal {
    width: min(100% - 1.25rem, 560px);
  }

  .order-invite .btn {
    width: 100%;
  }
}

/* Feed page */
.page-feed .site-header {
  background: rgba(255, 255, 255, 0.86);
}

.feed-main {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 1.5rem var(--pad) 4rem;
}

.feed-hero {
  margin: 1.5rem 0 2.25rem;
}

.feed-hero h1 {
  margin: 0.15rem 0 0.55rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.feed-hero > p:last-child {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
}

.feed-stream {
  display: grid;
  gap: 1.6rem;
}

.feed-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  scroll-margin-top: 5.5rem;
}

.feed-card.is-target {
  outline: 2px solid rgba(31, 111, 178, 0.35);
  outline-offset: 3px;
}

.feed-card-head {
  padding: 1.25rem 1.3rem 0.85rem;
}

.feed-card-head time {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.feed-card-head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.25;
}

.feed-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-soft);
  display: block;
}

.feed-article .feed-media img {
  aspect-ratio: 2 / 1;
  object-fit: contain;
  background: #f3f6f9;
}

.feed-gallery {
  display: grid;
  gap: 0.35rem;
  padding: 0 0.35rem;
}

.feed-gallery[data-count="2"],
.feed-gallery[data-count="4"] {
  grid-template-columns: 1fr 1fr;
}

.feed-gallery[data-count="3"],
.feed-gallery[data-count="5"],
.feed-gallery[data-count="6"] {
  grid-template-columns: 1fr 1fr;
}

.feed-gallery[data-count="3"] img:first-child,
.feed-gallery[data-count="5"] img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

.feed-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  background: var(--bg-soft);
  border-radius: 6px;
  cursor: zoom-in;
}

.feed-media,
.feed-gallery img,
.hero-media {
  cursor: zoom-in;
}

.feed-rail-media,
.feed-rail-media img {
  cursor: pointer;
}

.feed-card-body {
  padding: 1rem 1.3rem 1.4rem;
  display: grid;
  gap: 0.7rem;
}

.feed-card-body p,
.feed-card-body li {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
}

.feed-card-body ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  display: grid;
  gap: 0.3rem;
}

.feed-lead {
  margin: 0.65rem 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.feed-media {
  margin: 0;
}

.feed-contacts {
  margin-top: 1.35rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  background: #eef5fb;
  border: 1px solid #d5e6f4;
  display: grid;
  gap: 0.35rem;
}

.feed-contacts p {
  margin: 0 !important;
  color: var(--text) !important;
  font-size: 0.95rem !important;
}

.feed-contacts a[href^="tel:"] {
  color: var(--brand-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.feed-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.feed-cta .btn {
  text-decoration: none;
}

.feed-gallery[data-count="8"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feed-gallery[data-count="8"] img {
  aspect-ratio: 1 / 1;
}

.feed-kicker {
  color: var(--brand-deep) !important;
  font-weight: 700;
  font-size: 0.92rem !important;
}

.nav a[aria-current="page"] {
  color: var(--brand-deep);
  font-weight: 600;
}

.site-footer a {
  color: var(--brand);
  font-weight: 600;
}

@media (max-width: 640px) {
  .feed-main {
    padding-top: 0.75rem;
  }

  .feed-gallery[data-count="4"],
  .feed-gallery[data-count="6"],
  .feed-gallery[data-count="8"] {
    grid-template-columns: 1fr 1fr;
  }
}

/* Photo lightbox */
.photo-lightbox {
  width: min(100vw - 1rem, 960px);
  max-height: min(92vh, 900px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--text);
  overflow: visible;
}

.photo-lightbox::backdrop {
  background: rgba(28, 36, 48, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.photo-lightbox-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.65rem;
  padding: 0.9rem 0.9rem 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(16, 24, 34, 0.2);
  max-height: min(92vh, 900px);
}

.photo-lightbox-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 5;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.photo-lightbox-close:hover {
  background: #e5ebf1;
  color: var(--text);
}

.photo-lightbox-title {
  margin: 0 2.4rem 0 0.15rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.3;
  color: var(--text);
}

.photo-lightbox-stage {
  position: relative;
  min-height: min(58vh, 560px);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  touch-action: none;
  cursor: grab;
}

.photo-lightbox-stage.is-panning {
  cursor: grabbing;
}

.photo-lightbox-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}

.photo-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: 0 6px 16px rgba(28, 36, 48, 0.12);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.photo-lightbox-nav:hover {
  background: #fff;
}

.photo-lightbox-prev {
  left: 0.65rem;
}

.photo-lightbox-next {
  right: 0.65rem;
}

.photo-lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.15rem;
}

.photo-lightbox-counter {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.photo-lightbox-zooms {
  display: flex;
  gap: 0.4rem;
}

.photo-lightbox-zooms button {
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0 0.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.photo-lightbox-zooms button:hover {
  border-color: #b7c6d6;
  background: var(--bg-soft);
}

.photo-lightbox-thumbs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
  scrollbar-width: none;
}

.photo-lightbox-thumbs::-webkit-scrollbar {
  display: none;
}

.photo-lightbox-thumbs button {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-soft);
  cursor: pointer;
  opacity: 0.75;
}

.photo-lightbox-thumbs button.is-active {
  border-color: var(--brand);
  opacity: 1;
}

.photo-lightbox-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .photo-lightbox {
    width: calc(100vw - 0.75rem);
  }

  .photo-lightbox-stage {
    min-height: 52vh;
  }

  .photo-lightbox-nav {
    width: 2.1rem;
    height: 2.1rem;
  }
}
