:root {
  --primary-color: #8B3A3A;
  --secondary-color: #A84D4D;
  --accent-color: #5C2020;
  --light-color: #FAF0EE;
  --dark-color: #3A1A1A;
  --gradient-primary: linear-gradient(135deg, #8B3A3A 0%, #A84D4D 100%);
  --hover-color: #712F2F;
  --background-color: #FDFAF9;
  --text-color: #3A2A2A;
  --border-color: rgba(139, 58, 58, 0.16);
  --divider-color: rgba(139, 58, 58, 0.08);
  --shadow-color: rgba(90, 30, 30, 0.10);
  --highlight-color: #C0E0B1;
  --main-font: 'Roboto Condensed', sans-serif;
  --alt-font: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

body {
  font-family: var(--alt-font);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-color);
  background-color: var(--background-color);
}

/* PATTERN BG — диагональные полосы + мягкие пятна */
.pattern-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  background-image:
    radial-gradient(ellipse 70% 50% at 5% 50%, rgba(139, 58, 58, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 95% 20%, rgba(168, 77, 77, 0.05) 0%, transparent 60%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 24px,
      rgba(139, 58, 58, 0.03) 24px,
      rgba(139, 58, 58, 0.03) 25px
    ),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 24px,
      rgba(139, 58, 58, 0.025) 24px,
      rgba(139, 58, 58, 0.025) 25px
    );
}

/* HEADER */
header {
  background: var(--gradient-primary);
  padding: 1.2rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow-color);
}

.header-deco-1 {
  position: absolute;
  top: 50%;
  right: 6%;
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255,255,255,0.16);
  transform: translateY(-50%) rotate(45deg);
  display: none;
}
.header-deco-2 {
  position: absolute;
  top: 50%;
  right: 12%;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255,255,255,0.12);
  transform: translateY(-50%) rotate(45deg);
  display: none;
}
.header-deco-3 {
  position: absolute;
  top: 50%;
  right: 18%;
  width: 14px;
  height: 14px;
  background: rgba(255,255,255,0.1);
  transform: translateY(-50%) rotate(45deg);
  display: none;
}
@media (min-width: 768px) {
  .header-deco-1, .header-deco-2, .header-deco-3 { display: block; }
}

.container {
  max-width: 1020px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: white;
  font-family: var(--main-font);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.18);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transform: rotate(-5deg);
}

/* MAIN */
main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 2rem 0;
  justify-content: center;
}

.product-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .product-section { grid-template-columns: 1fr 1fr; }
}

.product-left {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.product-image-container { position: relative; }

.product-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 24px var(--shadow-color);
  display: block;
  transition: box-shadow 0.3s ease;
}
.product-image:hover {
  box-shadow: 0 12px 32px rgba(90,30,30,0.18);
}

/* GUARANTEE — тёмный фон с рамкой */
.guarantee-block {
  background: var(--dark-color);
  color: white;
  padding: 1.3rem 1.4rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 14px var(--shadow-color);
  position: relative;
  overflow: hidden;
}
.guarantee-block::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(139,58,58,0.25);
}
.guarantee-block h3 {
  font-family: var(--main-font);
  color: var(--highlight-color);
  margin-bottom: 0.55rem;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.guarantee-block p {
  font-size: 0.84rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.88);
}

/* FEATURES-ICONS — сетка 2x2 с рамкой и цветным верхом */
.features-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border-top: 3px solid var(--primary-color);
  box-shadow: 0 2px 8px var(--shadow-color);
  transition: all 0.25s ease;
  gap: 0.5rem;
}
.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px var(--shadow-color);
}
.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--light-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 1px solid var(--border-color);
}
.feature-item span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-color);
  font-family: var(--alt-font);
  line-height: 1.3;
}

.cart-button {
  background: var(--gradient-primary);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: 0 4px 14px var(--shadow-color);
  font-family: var(--main-font);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.cart-button:hover {
  background: linear-gradient(135deg, var(--hover-color) 0%, var(--primary-color) 100%);
  transform: translateY(-2px);
}

/* PRODUCT RIGHT */
.product-right h1 {
  font-family: var(--main-font);
  font-size: 2.1rem;
  color: var(--primary-color);
  margin-bottom: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  margin: 0.8rem 0;
  font-family: var(--main-font);
}

.product-description {
  font-size: 0.91rem;
  margin-bottom: 1.2rem;
  line-height: 1.8;
  color: var(--text-color);
}
.product-description p + p { margin-top: 0.75rem; }

.highlight-text {
  background: var(--highlight-color);
  color: var(--accent-color);
  padding: 1.1rem 1.4rem;
  border-radius: 8px;
  font-weight: 700;
  margin: 1.2rem 0;
  text-align: center;
  font-size: 0.96rem;
  font-family: var(--main-font);
  letter-spacing: 0.03em;
  box-shadow: 0 3px 10px rgba(192, 224, 177, 0.4);
  border: 1px solid rgba(92,32,32,0.12);
}

.features-list {
  list-style: none;
  margin: 1.2rem 0;
}
.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  padding: 0.7rem 1rem;
  background: white;
  border-radius: 6px;
  box-shadow: 0 1px 6px var(--shadow-color);
  font-size: 0.89rem;
  border-right: 3px solid var(--primary-color);
  transition: transform 0.25s ease;
}
.features-list li:hover { transform: translateX(-3px); }

.feature-check {
  width: 20px;
  height: 20px;
  background: var(--gradient-primary);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  flex-shrink: 0;
  font-size: 0.72rem;
}

/* MID BLOCK — горизонтальный прогресс-баннер с большими иконками */
.mid-block {
  background: var(--light-color);
  color: var(--text-color);
  padding: 3rem 1.5rem;
  border-top: 4px solid var(--primary-color);
  border-bottom: 4px solid var(--primary-color);
}
.mid-block-inner {
  max-width: 1020px;
  margin: 0 auto;
}
.mid-block h2 {
  font-family: var(--main-font);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Новый макет: горизонтальный "путь" — шаги с нумерацией */
.mid-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .mid-steps { grid-template-columns: repeat(3, 1fr); }
}
.mid-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.6rem 1.2rem;
  background: white;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 3px 12px var(--shadow-color);
  position: relative;
  transition: transform 0.3s ease;
}
.mid-step:hover { transform: translateY(-4px); }
.mid-step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  font-family: var(--main-font);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  flex-shrink: 0;
}
.mid-step-icon {
  font-size: 1.8rem;
  margin-bottom: 0.7rem;
}
.mid-step h3 {
  font-family: var(--main-font);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  letter-spacing: 0.02em;
}
.mid-step p {
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--text-color);
}

/* TESTIMONIALS */
.testimonials {
  background: var(--dark-color);
  color: white;
  padding: 3rem 1.5rem;
}
.testimonials h2 {
  font-family: var(--main-font);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.3rem;
  max-width: 1020px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
}
.testimonial {
  background: rgba(255,255,255,0.06);
  padding: 1.4rem;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
  transition: transform 0.3s ease;
}
.testimonial:hover { transform: translateY(-3px); }
.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}
.testimonial-icon {
  width: 42px;
  height: 42px;
  background: var(--light-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.testimonial-name {
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--main-font);
  letter-spacing: 0.03em;
}
.testimonial-location {
  font-size: 0.79rem;
  color: rgba(255,255,255,0.55);
}
.testimonial p {
  line-height: 1.65;
  font-size: 0.87rem;
  color: rgba(255,255,255,0.86);
}

/* FOOTER */
footer {
  background: var(--accent-color);
  color: white;
  padding: 2rem 1.5rem;
}
.footer-content {
  max-width: 1020px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.footer-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
@media (min-width: 768px) {
  .footer-nav { justify-content: flex-end; }
}
.footer-nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.84rem;
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--light-color); }
.footer-credit {
  text-align: center;
  padding-top: 1.2rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
  max-width: 1020px;
  margin: 0 auto;
}
.footer-credit a { color: var(--light-color); text-decoration: none; }