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

:root {
  --navy: #112855;
  --navy-end: #424077;
  --blue: #3366ff;
  --cyan: #00c6fb;
  --sky: #005bea;
  --text: #333;
  --heading: #222;
  --muted: #555;
  --line: #e4e4e4;
  --trophy: #2ea8ff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
}

/* ===== Меню: на широком прилипает, на узком уезжает со страницей ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-end) 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.main-nav {
  position: relative;
  width: 100%;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 14px 18px;
  margin-right: auto;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 24px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before { top: -8px; }
.nav-toggle-icon::after { top: 8px; }

.nav-toggle:checked + .nav-toggle-label .nav-toggle-icon {
  background: transparent;
}

.nav-toggle:checked + .nav-toggle-label .nav-toggle-icon::before {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle:checked + .nav-toggle-label .nav-toggle-icon::after {
  transform: translateY(-8px) rotate(-45deg);
}

.menu {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  width: 100%;
}

.menu > li {
  position: relative;
}

.menu > li > a {
  display: block;
  padding: 26px 14px;
  color: #fff;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.menu > li > a:hover,
.menu > li > a:focus {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.menu > li > a.active {
  box-shadow: inset 0 -3px 0 #fff;
}

.has-submenu > a::after {
  content: "";
  display: inline-block;
  margin-left: 8px;
  border: 5px solid transparent;
  border-top-color: #fff;
  vertical-align: 2px;
}

.submenu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 280px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 20;
}

.submenu a {
  display: block;
  padding: 12px 18px;
  color: var(--heading);
  font-size: 0.76rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.submenu a:hover,
.submenu a:focus,
.submenu a.active {
  background: #f3f6ff;
  color: var(--blue);
  text-decoration: none;
}

.menu > li:hover > .submenu,
.menu > li:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ===== Баннер ===== */
.hero {
  min-height: 420px;
  background: #2b241c center / cover no-repeat url("topb_02.jpg");
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 70px 20px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, 0.28);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  margin: 0 auto 18px;
  opacity: 0.85;
}

.hero-kicker {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.hero-sub {
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  font-weight: 600;
  line-height: 1.35;
}

/* ===== Секции ===== */
.section {
  padding: 75px 0;
}

.section-white { background: #fff; }
.section-soft { background: #f7f7f7; }
.section-pattern {
  background: #fafafa url("fon-38.jpg") repeat;
}

.section-blue {
  background: linear-gradient(45deg, var(--cyan) 0%, var(--sky) 100%);
  color: #fff;
}

.section-blue .spec-title,
.section-blue .spec-copy {
  color: #fff;
}

.section-blue .split-text {
  color: #fff;
}

.section-mint {
  background: linear-gradient(45deg, #dfffd0 0%, #dee9fa 100%);
}

.section-offer {
  background: #fcf2b2;
  padding: 40px 0;
}

.section-offer .offer-box {
  margin-top: 0;
}

.section-article {
  background: #d8f7c2;
  padding: 40px 0;
}

.offer-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.offer-row h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--heading);
}

.section-cta {
  background: linear-gradient(45deg, var(--cyan) 0%, var(--sky) 100%);
  color: #fff;
  text-align: center;
  padding: 42px 20px;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 700;
}

.page-title {
  text-align: center;
  color: var(--heading);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 22px;
}

.lead {
  width: 100%;
  margin: 0 auto;
  font-size: 20.8px;
  text-align: justify;
  text-align-last: left;
}

.wave {
  line-height: 0;
  background: #fff;
}

.wave svg {
  display: block;
  width: 100%;
  height: 48px;
}

.wave path { fill: #fff; }
.wave-from-soft { background: #f7f7f7; }

.wave-gray svg {
  height: 99px;
}

.wave-gray path {
  fill: #e5e5e5;
}

/* ===== Главная: как на оригинале ===== */
.page-home .hero {
  min-height: 570px;
  padding: 75px 20px;
}

.page-home .hero-kicker,
.page-home .hero-title,
.page-home .hero-sub {
  font-size: 36px;
  font-weight: 700;
  color: #ecf0f1;
  letter-spacing: 0;
  line-height: 1.3;
}

.page-home .page-title {
  font-size: 28px;
}

.page-home .lead {
  font-size: 24px;
  text-align: left;
  text-align-last: auto;
}

.page-home .section-cta {
  padding: 20px 0;
  font-size: 28px;
}

.page-home .feature-icon {
  width: 41px;
  height: 38px;
  color: #3366ff;
}

.page-home .feature h3 {
  font-size: 28px;
  font-weight: 700;
  color: #22262a;
}

.page-home .feature p {
  font-size: 24px;
  color: #22262a;
}

.home-catalog {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 30px;
  margin-top: 28px;
  justify-items: center;
}

.home-catalog article {
  width: 300px;
  max-width: 100%;
}

.home-catalog a {
  text-decoration: none;
}

.home-catalog img {
  width: 300px;
  height: 300px;
  max-width: 100%;
  object-fit: cover;
}

.home-catalog .btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  border-radius: 0;
}

.page-home .seo-text {
  font-size: 18px;
  color: #22262a;
}

/* ===== Преимущества ===== */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  color: var(--trophy);
}

.feature h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--heading);
}

.feature p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* ===== Каталог карточки ===== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.catalog-card {
  display: block;
  text-align: center;
  color: inherit;
  background: #fff;
  padding: 16px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.catalog-card:hover {
  text-decoration: none;
}

.catalog-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.catalog-card h3 {
  margin-top: 12px;
  font-size: 1.05rem;
  color: var(--heading);
}

.offer-box,
.article-box {
  text-align: center;
  margin-top: 36px;
}

.offer-box h3,
.article-box h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin: 16px 0;
  color: var(--heading);
}

.btn {
  display: inline-block;
  padding: 8px 12px;
  background: var(--blue);
  color: #fff;
  border-radius: 0;
  font-size: 16px;
  text-align: center;
}

.btn:hover {
  background: #254ed6;
  color: #fff;
  text-decoration: none;
}

.btn-wrap {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.photos-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}

.seo-text {
  color: var(--muted);
  font-size: 0.95rem;
  text-align: justify;
  text-align-last: left;
}

.seo-text p + p {
  margin-top: 14px;
}

/* ===== Товарные блоки: фото и подписи вместе в одной карточке ===== */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 36px;
  margin-top: 28px;
  align-items: start;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.product-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-card > div {
  width: 100%;
}

.product-card h3 {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--heading);
}

.product-card .price {
  font-weight: 700;
  margin-top: 6px;
}

.product-card ul {
  list-style: disc;
  padding-left: 20px;
  margin-top: 8px;
}

.product-card li {
  margin: 3px 0;
}

.spec-block {
  margin: 28px 0;
}

.spec-block h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.spec-block ul {
  list-style: disc;
  padding-left: 22px;
}

.spec-block li {
  margin: 4px 0;
}

/* Текст слева, фото справа — как на оригинале */
.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 30px;
  align-items: start;
  margin: 0;
  width: 100%;
  max-width: 100%;
}

.split-block > *,
.split-photos > *,
.split-photo,
.split-text {
  min-width: 0;
}

.split-photo img,
.split-photos img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Каталог: полоса 1320 (как на оригинале), внутри по 15px, фото 630 */
.page-catalog .container {
  width: min(1320px, calc(100% - 40px));
  padding-left: 15px;
  padding-right: 15px;
}

@media (max-width: 1399.98px) {
  .page-catalog .container {
    width: min(1140px, calc(100% - 40px));
  }
}

@media (max-width: 1199.98px) {
  .page-catalog .container {
    width: min(960px, calc(100% - 40px));
  }
}

@media (max-width: 991.98px) {
  .page-catalog .container {
    width: min(720px, calc(100% - 24px));
  }
}

@media (max-width: 767.98px) {
  .page-catalog .container {
    width: min(540px, calc(100% - 24px));
  }
}

.split-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #22262a;
}

.spec-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 10px;
}

.spec-title .gost {
  color: #b00606;
}

.spec-copy {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

.spec-copy + .spec-copy {
  margin-top: 8px;
}

.split-text a {
  color: #224faa;
}

.split-text.spec-sm .spec-title {
  font-size: 24px;
  line-height: 1.4;
}

.split-text.spec-sm .spec-copy {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

.split-text.spec-sm .spec-label,
.split-text.spec-sm .price-line {
  font-weight: 700;
}

.split-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 30px;
  margin: 0;
  width: 100%;
  max-width: 100%;
}

.split-tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 30px;
  margin: 20px 0 0;
}

.char-table {
  width: 100%;
  border-collapse: collapse;
  border: 3px solid #6e6e6e;
  font-size: 18px;
  background: #fff;
}

.char-table th,
.char-table td {
  border: 1px solid #8a8a8a;
  padding: 8px 4px;
  text-align: center;
  font-weight: 700;
  vertical-align: middle;
}

.char-table tr:first-child th,
.char-table tr:first-child td {
  background: #f3f2f0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.gallery-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
  align-items: start;
}

.gallery-2 > * {
  width: 100%;
  min-width: 0;
}

.article p {
  margin-bottom: 16px;
  text-align: justify;
  text-align-last: left;
}

.article h2 {
  font-size: 1.45rem;
  margin: 32px 0 14px;
  color: var(--heading);
}

.article h3 {
  font-size: 1.2rem;
  margin: 24px 0 10px;
}

.article ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 16px;
}

.article li { margin: 6px 0; }

/* ===== Таблица цен ===== */
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.price-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 24px auto;
  background: #fff;
}

.price-table th,
.price-table td {
  border: 1px solid #d7d7d7;
  padding: 12px 8px;
  text-align: center;
  overflow-wrap: anywhere;
}

.price-table th {
  background: #f0f3ff;
  font-weight: 700;
}

.price-table tr:nth-child(even) td {
  background: #fafafa;
}

/* ===== Контакты ===== */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
  margin-top: 28px;
}

.contact-card {
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.contact-card div {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 16px;
  font-weight: 700;
  font-size: 1.05rem;
}

.contact-card .c-name { background: #8a6a3b; }
.contact-card .c-phone { background: #2f7a3a; }
.contact-card .c-addr { background: #2b4db3; }

.contact-card a {
  color: #fff;
  text-decoration: underline;
}

.contacts-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carriers {
  margin: 20px 0 8px;
}

.carriers p {
  margin: 8px 0;
  font-weight: 700;
}

/* ===== Подвал ===== */
.site-footer {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-end) 100%);
  color: #fff;
  text-align: center;
  padding: 28px 20px;
  font-size: 0.95rem;
}

/* ===== Узкий экран: меню уходит наверх ===== */
@media (max-width: 900px) {
  .main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .site-header {
    position: relative;
    top: auto;
    min-height: 76px;
  }

  .nav-toggle-label {
    display: flex;
    align-items: center;
    min-height: 76px;
    padding: 21px 18px;
  }

  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .nav-toggle:checked ~ .menu {
    display: flex;
  }

  .menu > li > a {
    padding: 14px 20px;
    text-align: left;
    white-space: normal;
    font-size: 0.8rem;
  }

  .menu > li > a.active {
    box-shadow: inset 4px 0 0 #fff;
  }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    min-width: 0;
    background: rgba(0, 0, 0, 0.18);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .submenu a {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.12);
    padding-left: 32px;
  }

  .submenu a:hover,
  .submenu a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .has-submenu:hover > .submenu,
  .has-submenu:focus-within > .submenu {
    max-height: 420px;
  }

  .features,
  .catalog-grid,
  .home-catalog {
    grid-template-columns: 1fr 1fr;
  }

  .contacts-grid,
  .photos-row,
  .gallery,
  .gallery-2,
  .split-block,
  .split-photos,
  .split-tables,
  .offer-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 280px;
    padding: 48px 16px;
  }
}

@media (max-width: 560px) {
  .features,
  .catalog-grid,
  .product-grid,
  .home-catalog {
    grid-template-columns: 1fr;
  }

  .product-card img {
    width: 100%;
    height: auto;
    margin: 0;
  }

  .price-table {
    font-size: 0.82rem;
  }

  .container {
    width: calc(100% - 24px);
  }
}
