:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --surface-soft: #f1ece2;
  --text: #28302a;
  --muted: #626c66;
  --border: #ddd6ca;
  --primary: #295c3a;
  --primary-dark: #214b30;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(27, 33, 29, 0.08);
  --radius: 18px;
  --container: 1200px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.section {
  padding: 88px 0;
}

.section--light {
  background: var(--surface);
}

.section--accent {
  background: var(--primary);
}

#offer.section--accent {
  background: linear-gradient(135deg, #ff9f1c 0%, #f97316 100%);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading--compact {
  margin-bottom: 32px;
}

.section-heading h2,
.promo-box h2,
.hero h1 {
  margin: 0 0 16px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  line-height: 1.15;
}

.section-heading h2,
.promo-box h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.section-heading p,
.promo-box p {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(221, 214, 202, 0.9);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: var(--header-height);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.875rem;
}

.logo__text {
  font-size: 1.125rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.site-nav a,
.footer-nav a,
.section-link a,
.contact-item a {
  transition: color 0.2s ease;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a:hover,
.footer-nav a:hover,
.section-link a:hover,
.contact-item a:hover {
  color: var(--primary);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-phone {
  font-weight: 600;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--primary);
  border-radius: 12px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.button--small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.9375rem;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--white);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.48);
}

.button--text {
  border-color: transparent;
  background: transparent;
  color: var(--white);
}

.button--text:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: transparent;
}

.button--light {
  background: var(--white);
  border-color: var(--white);
  color: var(--primary);
}

.button--light:hover {
  background: #f1ece2;
  border-color: #f1ece2;
}

.button--block {
  width: 100%;
}

.button--secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.button--secondary:hover {
  background: var(--surface-soft);
  border-color: var(--primary);
  color: var(--primary);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__media,
.hero__media img,
.hero__overlay {
  position: absolute;
  inset: 0;
}

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

.hero__overlay {
  background: rgba(27, 33, 29, 0.72);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 96px 0;
}

.hero__text {
  max-width: 760px;
  color: var(--white);
}

.hero__eyebrow {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.hero__lead {
  margin: 0 0 32px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.inner-hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(circle at top left, rgba(41, 92, 58, 0.2), transparent 38%),
    linear-gradient(135deg, #f1ece2 0%, #ffffff 58%, #edf5ef 100%);
}

.inner-hero--articles {
  padding-bottom: 48px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.9375rem;
}

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

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

.breadcrumbs span + span::before,
.breadcrumbs a + span::before,
.breadcrumbs a + a::before {
  content: "/";
  margin-right: 10px;
  color: rgba(98, 108, 102, 0.55);
}

.inner-hero__content {
  max-width: 820px;
}

.inner-hero__content--narrow {
  max-width: 900px;
}

.inner-hero__eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.inner-hero h1 {
  margin: 0 0 18px;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
}

.inner-hero p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.mounting {
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: 40px;
  align-items: center;
}

.mounting__image img,
.portfolio-card,
.product-card,
.format-panel,
.feature-card,
.marker-card,
.calculator__card,
.price-table,
.faq-item,
.contacts__map {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mounting__image img {
  width: 100%;
  background: #f1ece2;
}

.feature-grid,
.product-grid,
.portfolio-grid,
.product-groups,
.info-grid {
  display: grid;
  gap: 24px;
}

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

.feature-card,
.product-card,
.marker-card,
.calculator__card,
.format-panel,
.faq-item,
.contacts__map {
  background: var(--surface);
}

.feature-card,
.product-card,
.marker-card,
.format-panel,
.calculator__card {
  padding: 24px;
}

.feature-card h3,
.product-card h3,
.format-panel h3,
.portfolio-card h3,
.contact-item h3,
.site-footer h3 {
  margin: 0 0 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
}

.feature-card p,
.product-card__text,
.portfolio-card p,
.calculator__note,
.faq-answer p,
.site-footer__text,
.contact-item p {
  margin: 0;
  color: var(--muted);
}

.format-selector {
  max-width: 860px;
  margin: 0 auto;
}

.format-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.format-tab,
.option-button {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.format-tab {
  padding: 14px 20px;
}

.format-tab.is-active,
.option-button.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.format-panel p {
  margin: 0 0 22px;
  color: var(--muted);
}

.check-list,
.promo-list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.check-list li,
.promo-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li + li,
.promo-list li + li {
  margin-top: 12px;
}

.check-list li::before,
.promo-list li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

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

.product-groups {
  gap: 28px;
}

.product-group {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 236, 226, 0.72));
  box-shadow: var(--shadow);
}

.product-group__header {
  max-width: 720px;
  margin-bottom: 22px;
}

.product-group__eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-group__header h3 {
  margin: 0 0 10px;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 800;
}

.product-group__header p {
  margin: 0;
  color: var(--muted);
}

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

.product-card {
  display: flex;
  flex-direction: column;
}

.product-card__badge {
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(41, 92, 58, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
}

.product-card__size {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.product-card__price {
  margin: auto 0 20px;
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.product-card__meta {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.product-card__meta li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-card__meta li + li {
  margin-top: 10px;
}

.product-card__meta li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

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

.info-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.info-card h3 {
  margin: 0 0 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.info-card--accent {
  background: linear-gradient(135deg, rgba(41, 92, 58, 0.12), rgba(255, 255, 255, 0.98));
}

.section-link,
.section-actions {
  margin: 28px 0 0;
  text-align: center;
}

.section-link a {
  color: var(--primary);
  font-weight: 700;
}

.calculator {
  max-width: 720px;
  margin: 0 auto;
}

.calculator__field + .calculator__field {
  margin-top: 24px;
}

.calculator__field label,
.calculator__field legend {
  display: block;
  margin-bottom: 12px;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.calculator__field input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}

.calculator__scale,
.calculator__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.calculator__scale {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.875rem;
}

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

.option-button {
  padding: 14px 16px;
}

.calculator__summary {
  margin: 28px 0 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.calculator__row + .calculator__row {
  margin-top: 12px;
}

.calculator__row--total {
  margin-top: 18px;
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem;
}

.calculator__row--total strong {
  color: var(--primary);
}

.calculator__note {
  margin-top: 12px;
  text-align: center;
  font-size: 0.875rem;
}

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

.marker-card {
  font-weight: 700;
}

.promo-box {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
}

.promo-box h2,
.promo-box p,
.promo-list li {
  color: var(--white);
}

.promo-box__lead {
  margin-bottom: 10px;
  font-weight: 700;
}

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

.promo-list li {
  padding-left: 24px;
  font-weight: 600;
  text-align: left;
}

.promo-list li::before {
  background: var(--white);
}

.price-table {
  overflow: hidden;
  background: var(--surface);
}

.price-table table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.price-table th:last-child,
.price-table td:last-child {
  text-align: right;
}

.price-table thead th {
  background: #f1ece2;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.price-table tbody tr:nth-child(even) td {
  background: rgba(241, 236, 226, 0.55);
}

.price-table tbody tr:last-child td {
  border-bottom: 0;
}

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

.portfolio-card {
  overflow: hidden;
  background: var(--surface);
}

.portfolio-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.portfolio-card__body {
  padding: 22px;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.article-grid {
  max-width: 860px;
  margin: 0 auto;
}

.article-card,
.article-aside__card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-card {
  padding: 32px;
}

.article-card__meta {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-card h2,
.article-aside__card h2,
.article-content h2 {
  margin: 0 0 14px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

.article-card h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.article-card p {
  margin: 0 0 24px;
  color: var(--muted);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 360px);
  gap: 28px;
  align-items: start;
}

.article-content,
.article-aside {
  min-width: 0;
}

.article-content {
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-content p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.article-content p + p,
.article-content h2 + p,
.article-content p + h2 {
  margin-top: 18px;
}

.article-content h2 {
  margin-top: 34px;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

.article-aside {
  display: grid;
  gap: 20px;
}

.article-aside__card {
  padding: 24px;
}

.article-aside__card p {
  margin: 0 0 20px;
  color: var(--muted);
}

.article-aside__card--accent {
  background: var(--primary);
  color: var(--white);
}

.article-aside__card--accent h2,
.article-aside__card--accent p,
.article-aside__card--accent .check-list li {
  color: var(--white);
}

.faq-item + .faq-item {
  margin-top: 14px;
}

.faq-question {
  position: relative;
  width: 100%;
  padding: 22px 56px 22px 24px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
}

.faq-question::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 600;
}

.faq-question[aria-expanded="true"]::after {
  content: "−";
}

.faq-answer {
  padding: 0 24px 22px;
}

.contacts {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 28px;
}

.contacts__info {
  display: grid;
  gap: 20px;
}

.contacts__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-item h3 {
  margin-bottom: 6px;
}

.contacts__map {
  min-height: 320px;
  padding: 0;
  overflow: hidden;
  background: #f1ece2;
}

.contacts__map img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.site-footer {
  padding: 56px 0 32px;
  background: #1f261f;
  color: var(--white);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}

.logo--footer .logo__text,
.site-footer h3 {
  color: var(--white);
}

.site-footer__text,
.footer-nav a,
.site-footer__bottom {
  color: rgba(255, 255, 255, 0.68);
}

.footer-nav {
  display: grid;
  gap: 10px;
}

.site-footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.875rem;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__bottom p + p {
  margin-top: 8px;
}

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

  .portfolio-grid,
  .article-layout,
  .site-footer__inner,
  .product-grid--group,
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .site-header__inner {
    grid-template-columns: auto auto auto;
  }

  .menu-toggle {
    display: inline-block;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 12px 0;
  }

  .site-header__actions .button {
    display: none;
  }

  .mounting,
  .contacts,
  .article-layout,
  .site-footer__inner,
  .feature-grid,
  .portfolio-grid,
  .marker-grid,
  .product-grid--group,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .promo-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .section {
    padding: 72px 0;
  }

  .hero__content {
    padding: 80px 0;
  }

  .product-grid,
  .option-grid {
    grid-template-columns: 1fr;
  }

  .hero__actions .button,
  .format-tab,
  .site-phone {
    width: 100%;
  }

  .contacts__actions .button {
    width: 100%;
  }

  .site-header__actions {
    display: none;
  }

  .price-table {
    overflow-x: auto;
  }

  .price-table table {
    min-width: 620px;
  }

  .article-content {
    padding: 28px 22px;
  }

  .article-card {
    padding: 24px;
  }
}
