:root {
  --primary: #8e735b;
  --primary-dark: #6d5848;
  --accent: #d35400;
  --bg: #faf9f6;
  --white: #ffffff;
  --text: #333;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Заголовки */
h2 {
  font-family: "Playfair Display", serif;
  font-size: 30px;
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-dark);
}

/* --- HEADER --- */
header {
  background: var(--white);
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.phone-btn {
  background: var(--primary);
  color: white;
  padding: 8px 15px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

/* --- HERO --- */
.hero {
  background: url("../images/main.jpg") center/cover;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero p {
  font-size: 18px;
  margin-bottom: 25px;
}

.hero-btn {
  background: var(--accent);
  color: white;
  padding: 15px 35px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  transition: 0.3s;
}

.hero-btn:hover {
  transform: scale(1.05);
}

/* --- INFO BLOCK --- */
.info-section {
  padding: 20px 0;
  background: white;
  scroll-margin-top: 60px;
  border-bottom: 1px solid #eee;
}

.info-grid {
  display: flex;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.specs-info {
  width: 100%;
  max-width: 600px;
}

/* Убираем старую сетку */
.info-img img {
  display: none;
}

.specs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.specs-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #e0e0e0;
  padding: 10px 0;
  font-size: 14px;
}

.specs-list li span:first-child {
  color: #888;
  font-weight: 400;
}

.specs-list li span:last-child {
  font-weight: 500;
  color: #333;
}

.fabric-badge {
  display: inline-block;
  background: #f0fdf4;
  color: #1b5e20;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 15px;
  border: 1px solid #c8e6c9;
}

/* --- SIZES (TABS) --- */
.sizes-section {
  background: var(--bg);
  padding: 0;
}

.tabs-wrapper {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.size-tab {
  padding: 8px 20px;
  border: 1px solid #ddd;
  border-radius: 30px;
  background: white;
  color: #555;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
  font-size: 13px;
}

.size-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(142, 115, 91, 0.2);
}

.size-content {
  display: none;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeIn 0.4s;
}

.size-content.active {
  display: block;
}

.size-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 20px;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.size-item span {
  display: block;
  font-size: 11px;
  color: #999;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.size-item strong {
  font-size: 15px;
  color: #333;
  font-weight: 600;
}

/* --- CATALOG --- */
.catalog {
  padding: 40px 0;
  background: var(--bg);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  position: relative;
  transition: 0.3s;
  border: 1px solid #eee;
  /* Добавляем flex для растягивания */
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 400px; /* Примерная высота как в другом ленде */
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
  background: #e74c3c;
}

/* Стили для скидки как на первом сайте */
.badge-discount {
  position: absolute;
  left: 10px;
  top: 10px;
  background: #ef4444;
  color: white;
  font-weight: 1000;
  font-size: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
  border: 2px solid white;
  letter-spacing: 0.5px;
  z-index: 5;
  text-transform: uppercase;
}

.card-img-wrap {
  height: 300px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 15px;
  text-align: center;
  /* Добавляем flex для управления пространством */
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #222;
}

.p-stock {
  color: #888;
  font-size: 13px;
  margin: 5px 0;
}

.p-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
}

.old {
  color: #9ca3af;
  text-decoration: line-through;
  font-weight: 800;
  font-size: 14px;
}

.now {
  font-weight: 1000;
  font-size: 20px;
  color: var(--primary);
}

.buy-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: #333;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.buy-btn:hover {
  background: var(--primary);
}

/* --- ADVANTAGES --- */
.advantages-section {
  padding: 0 0 30px 0;
  background: white;
  border-top: 1px solid #eee;
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.adv-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
}

.adv-icon {
  font-size: 30px;
  color: var(--primary);
}

.adv-text h4 {
  margin: 0 0 5px;
  font-size: 15px;
}

.adv-text p {
  margin: 0;
  font-size: 13px;
  color: #666;
}

/* ====== FOOTER (обновленный) ====== */
.site-footer {
  background: #1a1a1a;
  padding: 40px 0 20px;
  border-top: 3px solid var(--accent);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Логотип в футере */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo-icon {
  font-size: 32px;
}

.footer-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.footer-logo-sub {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.5px;
}

/* Заголовки колонок */
.footer-title {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

/* Контактная информация */
.footer-company {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  line-height: 1.8;
  margin: 5px 0;
  padding: 3px 0;
}

.footer-link {
  color: #ffaa66;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #ffcc99;
  text-decoration: underline;
}

/* Список документов */
.footer-docs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-docs-list li {
  margin-bottom: 10px;
}

.footer-doc-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-doc-link i {
  color: var(--accent);
  font-size: 14px;
  width: 20px;
  text-align: center;
}

.footer-doc-link:hover {
  color: #fff;
  padding-left: 5px;
}

/* Юридическая информация */
.footer-legal {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.6;
}

.footer-legal p {
  margin: 4px 0;
}

.footer-legal strong {
  color: rgba(255, 255, 255, 0.9);
}

/* Нижняя строка */
.footer-bottom {
  text-align: center;
  padding-top: 10px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  margin: 5px 0;
}

.footer-disclaimer {
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
}

/* ====== АДАПТИВ ====== */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-title {
    text-align: center;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-company {
    text-align: center;
    font-size: 12px;
  }

  .footer-docs-list li {
    text-align: center;
  }

  .footer-doc-link {
    justify-content: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .footer-doc-link:hover {
    padding-left: 0;
  }

  .footer-legal {
    text-align: center;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 30px 0 15px;
  }

  .footer-company {
    font-size: 11px;
    word-break: break-word;
  }

  .footer-bottom p {
    font-size: 10px;
  }

  .footer-logo-text {
    font-size: 18px;
  }

  .footer-logo-icon {
    font-size: 28px;
  }
}

/* --- MODAL (обновленный как на первом сайте) --- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal {
  background: white;
  width: 90%;
  max-width: 450px;
  padding: 25px;
  border-radius: 18px;
  position: relative;
  text-align: left;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  line-height: 1;
}

/* Карточка товара в модалке */
.modal-product-card {
  display: flex;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
  margin: 10px 0 20px;
}

.modal-product-image {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 1px solid #e5e7eb;
}

.modal-product-details {
  flex: 1;
}

.modal-product-details h4 {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.modal-product-details p {
  margin: 4px 0;
  color: #6b7280;
  font-size: 13px;
}

.modal-product-details .modal-price {
  font-weight: 1000;
  color: var(--primary);
  font-size: 18px;
  margin-top: 6px;
}

/* Поля формы */
.form-group {
  margin-bottom: 10px;
}

input {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  outline: none;
}

input:focus {
  border-color: var(--primary);
}

.field-error {
  color: #ef4444;
  margin: 5px 0 10px;
  font-size: 12px;
  display: none;
}

.agree {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.35;
  margin: 10px 0;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.submit-btn:hover {
  background: #b34500;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1020px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 30px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .card {
    min-height: 380px;
  }

  .card-img-wrap {
    height: 350px;
  }

  .card-title {
    font-size: 18px;
  }

  .now {
    font-size: 16px;
  }

  .buy-btn {
    font-size: 11px;
    padding: 10px;
  }

  .badge-discount {
    font-size: 12px;
    padding: 5px 10px;
  }
}

@media (max-width: 760px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .card {
    min-height: 360px;
  }
}

/* --- 6. КАК ЗАКАЗАТЬ (STEPS) --- */
.steps-section {
  padding: 0px 0 40px 0;
  background: white;
  border-top: 1px solid #eee;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.step-item {
  position: relative;
}

@media (min-width: 900px) {
  .step-item:not(:last-child)::after {
    content: "..........";
    position: absolute;
    top: 30px;
    right: -50%;
    width: 100%;
    color: #ffd1b3;
    font-size: 30px;
    letter-spacing: 5px;
    z-index: 0;
  }
}

.step-icon {
  width: 80px;
  height: 80px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 20px rgba(211, 84, 0, 0.2);
}

.step-title {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 16px;
}

.step-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

/* --- 7. BOTTOM HERO --- */
.bottom-hero {
  background: url("../images/main.jpg") center/cover;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

.bottom-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(60, 40, 30, 0.7);
}

.bottom-content {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.bottom-content h1 {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  margin-bottom: 10px;
  line-height: 1.2;
}

.bottom-content p {
  font-size: 18px;
  margin-bottom: 25px;
}

.bottom-btn {
  background: white;
  color: var(--text);
  padding: 15px 40px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 20px;
  display: inline-block;
  transition: 0.3s;
}

.bottom-btn:hover {
  transform: scale(1.05);
  background: var(--accent);
  color: white;
}

@media (max-width: 480px) {
  .size-content.active,
  .card {
    max-width: 100%;
    width: 100%;
  }
}

/* ====== FOOTER (обновленный) ====== */
footer {
  background: #1a1a1a;
  padding: 40px 0 20px;
  border-top: 3px solid var(--accent);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-title {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.footer-company {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  line-height: 1.6;
  margin: 5px 0;
  padding: 3px 0;
}

.footer-link {
  color: #ffaa66;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #ffcc99;
  text-decoration: underline;
}

/* Документы */
.footer-docs {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-docs-title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  margin-bottom: 15px;
}

.footer-docs-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-doc-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
  padding: 5px 10px;
  border-radius: 4px;
}

.footer-doc-link i {
  margin-right: 6px;
  color: var(--accent);
  font-size: 12px;
}

.footer-doc-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* Копирайт */
.footer-bottom {
  text-align: center;
  padding-top: 5px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  margin: 5px 0;
}

.footer-disclaimer {
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
}

/* ====== АДАПТИВ ====== */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-title {
    text-align: center;
  }

  .footer-company {
    text-align: center;
    font-size: 12px;
  }

  .footer-docs-links {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .footer-doc-link {
    font-size: 12px;
    padding: 6px 12px;
    width: 100%;
    max-width: 280px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .footer-doc-link:last-child {
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 30px 0 15px;
  }

  .footer-company {
    font-size: 11px;
    word-break: break-word;
  }

  .footer-bottom p {
    font-size: 10px;
  }
}
