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

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #3b2a19;
  background-color: #fffaf1;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.header {
  background: radial-gradient(circle at top left, #ffe9a9 0, #ffcc73 40%, #ffb347 80%);
  color: #3b2a19;
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.header::after {
  content: "";
  position: absolute;
  inset: auto -20% 0;
  height: 120px;
  background: url("data:image/svg+xml,%3Csvg width='1440' height='120' viewBox='0 0 1440 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 48L80 58.7C160 69 320 91 480 93.3C640 96 800 80 960 64C1120 48 1280 32 1360 24L1440 16V120H1360C1280 120 1120 120 960 120C800 120 640 120 480 120C320 120 160 120 80 120H0V48Z' fill='%23fffaf1'/%3E%3C/svg%3E") no-repeat bottom center/cover;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  position: relative;
  z-index: 2;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.logo-title {
  font-weight: 700;
  font-size: 18px;
}

.logo-subtitle {
  font-size: 12px;
  opacity: 0.9;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
  font-weight: 500;
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #7a4a15;
  transition: width 0.2s ease;
}

.nav a:hover::after {
  width: 100%;
}

.header-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  font-size: 13px;
}

.header-phone {
  font-weight: 600;
}

.header-time {
  opacity: 0.9;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.burger span {
  width: 22px;
  height: 2px;
  background: #3b2a19;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  padding: 32px 16px 80px;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: 32px;
  line-height: 1.25;
  margin: 0 0 16px;
}

.hero-subtitle {
  margin: 0 0 20px;
  max-width: 520px;
  font-size: 15px;
}

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

.hero-note {
  font-size: 13px;
  opacity: 0.9;
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-jar {
  width: 180px;
  height: 220px;
  border-radius: 80px;
  background: linear-gradient(180deg, #ffe6a1 0%, #ffb347 70%, #f8943b 100%);
  box-shadow: 0 14px 30px rgba(125, 77, 21, 0.35);
  position: relative;
  overflow: hidden;
}

.hero-jar::before {
  content: "";
  position: absolute;
  inset: 12px 18px auto;
  height: 32px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
}

.hero-jar-label {
  position: absolute;
  inset: 90px 26px auto;
  padding: 6px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

.hero-photo {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 170px;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(118, 75, 24, 0.35);
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  right: 18px;
  bottom: 0;
  transform: translateY(30%);
  background: #fffdf7;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  box-shadow: 0 6px 16px rgba(118, 75, 24, 0.25);
}

.section {
  padding: 64px 0;
}

.section-light {
  background: #fffdf7;
}

.section-title {
  font-size: 26px;
  margin: 0 0 12px;
  text-align: center;
}

.section-subtitle {
  margin: 0 0 32px;
  text-align: center;
  font-size: 15px;
  color: #6b5240;
}

.section-inner.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 32px;
  align-items: flex-start;
}

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.stat-item {
  background: #fff7e3;
  border-radius: 16px;
  padding: 10px 14px;
  min-width: 120px;
}

.stat-value {
  font-weight: 700;
  font-size: 18px;
}

.stat-label {
  font-size: 12px;
  color: #6b5240;
}

.about-card {
  background: #fff7e3;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 10px 25px rgba(115, 82, 39, 0.15);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  font-size: 14px;
}

.checklist li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #7a4a15;
  font-weight: 600;
}

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

.product-card {
  background: #fffdf7;
  border-radius: 20px;
  padding: 20px 18px 18px;
  box-shadow: 0 12px 28px rgba(115, 82, 39, 0.12);
  position: relative;
}

.product-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #7a4a15;
  color: #fffdf7;
}

.product-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.product-desc {
  font-size: 14px;
  color: #6b5240;
  margin: 0 0 14px;
}

.product-price {
  font-weight: 600;
  margin-bottom: 8px;
}

.product-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  font-size: 13px;
  color: #554030;
}

.product-list li {
  margin-bottom: 4px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.benefit-card {
  background: #fffdf7;
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: 0 8px 20px rgba(115, 82, 39, 0.1);
  font-size: 14px;
}

.benefit-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

/* ГАЛЕРЕЯ */

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

.gallery-item {
  background: #fffdf7;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(115, 82, 39, 0.12);
  font-size: 13px;
  color: #6b5240;
}

.gallery-item img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.gallery-item figcaption {
  padding: 10px 12px;
}

.steps-list {
  margin: 16px 0 0;
  padding-left: 20px;
  font-size: 14px;
}

.steps-list li {
  margin-bottom: 10px;
}

.steps-list li span {
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.work-card {
  background: #fff7e3;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 10px 24px rgba(115, 82, 39, 0.12);
}

.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: flex-start;
}

.order-form {
  background: #fffdf7;
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: 0 12px 28px rgba(115, 82, 39, 0.12);
}

.form-row {
  margin-bottom: 12px;
}

.form-row label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e3c99b;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  background: #fffdf7;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: #c48b3b;
  box-shadow: 0 0 0 2px rgba(196, 139, 59, 0.2);
}

.form-note {
  font-size: 11px;
  color: #7a6b5b;
  margin-top: 6px;
}

.order-side {
  font-size: 14px;
}

.contact-box {
  margin: 16px 0 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7e3;
}

.contact-phone {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-email {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.contact-time {
  font-size: 12px;
  color: #6b5240;
}

.small-text {
  font-size: 12px;
  color: #6b5240;
}

.note-center {
  margin-top: 18px;
  font-size: 13px;
  text-align: center;
  color: #6b5240;
}

.note-center a {
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 14px;
  padding: 8px 18px;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease, color 0.1s ease, border-color 0.1s ease;
}

.btn-primary {
  background: #7a4a15;
  color: #fffdf7;
  box-shadow: 0 8px 18px rgba(92, 55, 15, 0.4);
}

.btn-primary:hover {
  background: #5f380f;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(92, 55, 15, 0.5);
}

.btn-secondary {
  background: #fffdf7;
  color: #7a4a15;
  border: 1px solid #e3c99b;
}

.btn-secondary:hover {
  background: #ffe9bd;
}

.btn-outline {
  background: transparent;
  border: 1px solid #7a4a15;
  color: #7a4a15;
}

.btn-outline:hover {
  background: rgba(122, 74, 21, 0.06);
}

.btn-full {
  width: 100%;
}

.footer {
  background: #3b2a19;
  color: #fcefdc;
  padding: 22px 0;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo {
  font-size: 16px;
  font-weight: 600;
}

.footer-copy {
  font-size: 12px;
  color: #d6c2ae;
}

.footer-contacts a {
  display: block;
  margin-bottom: 3px;
}

.footer-links a {
  font-size: 13px;
  text-decoration: underline;
}

/* Модальное окно */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.modal-dialog {
  position: relative;
  z-index: 41;
  background: #fffdf7;
  border-radius: 18px;
  padding: 18px 18px 20px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* Адаптив */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  }

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

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

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

  .order-grid,
  .section-inner.two-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding-top: 10px;
  }

  .nav {
    position: absolute;
    right: 16px;
    top: 56px;
    flex-direction: column;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 248, 220, 0.98);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    transform-origin: top right;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .nav.is-open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .burger {
    display: flex;
  }

  .header-contacts {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 18px;
  }

  .hero-image {
    order: -1;
  }

  .hero-text h1 {
    font-size: 24px;
  }

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

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

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

  .section {
    padding: 48px 0;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-jar {
    width: 150px;
    height: 190px;
  }

  .section-title {
    font-size: 22px;
  }
}