/* === U-Deco Master Stylesheet === */
/* Светлая тема */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  color: #1e293b;
  line-height: 1.7;
  min-height: 100vh;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* === Header === */
header {
  padding: 20px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span { color: #f75c4c; }
.logo-img { height: 32px; }

/* === CTA Button === */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #f75c4c, #ff6b6b);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(247,92,76,0.4);
}

/* === Hero Section === */
.article-hero {
  padding: 70px 0 40px;
  text-align: center;
}

.article-hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  line-height: 1.3;
}

.article-hero p {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 28px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  padding: 14px 32px;
  font-size: 16px;
}

/* === Article Content === */
.article-content {
  padding: 20px 0 60px;
  max-width: 800px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 1.5rem;
  color: #0f172a;
  margin: 40px 0 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-content p {
  margin-bottom: 16px;
  color: #475569;
  font-size: 1rem;
}

.article-content ul,
.article-content ol {
  margin: 16px 0 16px 24px;
  color: #475569;
}

.article-content li {
  margin-bottom: 10px;
  font-size: 1rem;
}

.article-content strong {
  color: #0f172a;
  font-weight: 600;
}

.article-content a {
  color: #4f46e5;
  text-decoration: none;
  border-bottom: 1px dashed #4f46e5;
}

.article-content a:hover {
  color: #4338ca;
  border-bottom-style: solid;
}

/* === Step/Feature Cards === */
.step-card, .feature-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  transition: transform 0.25s, border-color 0.25s;
}

.step-card:hover, .feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(247,92,76,0.4);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.step-card h3, .feature-card h3 {
  color: #0f172a;
  font-size: 1.2rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-card p, .feature-card p {
  color: #64748b;
  font-size: 0.95rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #f75c4c, #ff6b6b);
  color: #fff;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
}

.feature-icon { font-size: 1.5rem; }

/* === Gallery === */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.gallery-card {
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  transition: transform 0.25s, box-shadow 0.25s;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(247,92,76,0.15);
  border-color: rgba(247,92,76,0.4);
}

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

.gallery-card-info { padding: 16px; }

.gallery-card-info h3 {
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 4px;
  font-weight: 600;
}

.gallery-card-info p {
  font-size: 0.9rem;
  color: #64748b;
}

/* === CTA Section === */
.cta-section {
  background: linear-gradient(135deg, rgba(247,92,76,0.08), rgba(139,92,246,0.08));
  border: 1px solid rgba(247,92,76,0.2);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  margin: 50px 0;
}

.cta-section h3 {
  font-size: 1.4rem;
  color: #0f172a;
  margin-bottom: 12px;
  font-weight: 600;
}

.cta-section p {
  color: #64748b;
  margin-bottom: 24px;
  font-size: 1rem;
}

/* === See Also Box === */
.see-also {
  background: #f1f5f9;
  padding: 20px;
  border-radius: 12px;
  margin: 40px 0;
  border: 1px solid #e2e8f0;
}

.see-also h3 {
  color: #0f172a;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.see-also ul {
  margin: 0;
  padding-left: 20px;
  color: #64748b;
  line-height: 2;
}

.see-also a {
  color: #4f46e5;
  text-decoration: none;
}

.see-also a:hover {
  color: #4338ca;
  text-decoration: underline;
}

/* === FAQ === */
.faq-item {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: "▼";
  font-size: 0.8rem;
  color: #64748b;
  transition: transform 0.2s;
}

.faq-item[open] summary::after { transform: rotate(180deg); }

.faq-item p {
  padding: 0 20px 16px;
  color: #64748b;
  font-size: 0.95rem;
}

/* === Footer === */
footer {
  background: #f1f5f9;
  padding: 50px 20px 30px;
  margin-top: 40px;
  border-top: 1px solid #e2e8f0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 35px;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-col h4 {
  font-size: 0.95rem;
  color: #0f172a;
  margin-bottom: 18px;
  font-weight: 600;
}

.footer-col p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col ul { list-style: none; }

.footer-col a {
  display: block;
  color: #64748b;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover { color: #4f46e5; }

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  margin-top: 35px;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: #64748b;
  text-decoration: none;
  margin: 0 8px;
}

.footer-bottom a:hover { color: #4f46e5; }

/* === Responsive === */
@media (max-width: 768px) {
  .article-hero { padding: 50px 0 30px; }
  .article-hero h1 { font-size: 1.8rem; }
  .cta-section { padding: 30px 20px; }
  .gallery { grid-template-columns: 1fr; }
  .header-content { flex-wrap: wrap; gap: 12px; }
  
  /* Слайдер на мобильной */
  section iframe[src="/before-after.html"] {
    height: 300px !important;
  }
}

/* === Accessibility === */
a:focus-visible, button:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
  border-radius: 8px;
}

/* === Additional Components === */
/* Price Table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.price-table th, .price-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.price-table th {
  background: rgba(247,92,76,0.05);
  color: #0f172a;
  font-weight: 700;
}

.price-table td { color: #475569; }
.price-table tr:last-child td { border-bottom: none; }
.highlight { color: #f75c4c; font-weight: 600; }

/* Trend Card */
.trend-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  transition: transform 0.25s, border-color 0.25s;
}

.trend-card:hover {
  transform: translateY(-3px);
  border-color: rgba(247,92,76,0.4);
}

.trend-card h3 {
  color: #0f172a;
  font-size: 1.2rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.trend-card p { color: #64748b; font-size: 0.95rem; }

.trend-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #f75c4c, #ff6b6b);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Free Card */
.free-card {
  background: linear-gradient(135deg, rgba(247,92,76,0.08), rgba(139,92,246,0.08));
  border: 2px solid rgba(247,92,76,0.2);
  border-radius: 20px;
  padding: 32px;
  margin: 32px 0;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.free-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(247,92,76,0.15);
}

.free-card h3 {
  color: #0f172a;
  font-size: 1.5rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.free-card p {
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.6;
}

.free-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f75c4c, #ff6b6b);
  color: #fff;
  padding: 10px 24px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 16px 0;
}

.free-total {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  padding: 6px 16px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 12px;
}

/* Steps Grid */
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.step-card-grid {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  transition: transform 0.25s, border-color 0.25s;
}

.step-card-grid:hover {
  transform: translateY(-3px);
  border-color: rgba(247,92,76,0.4);
}

.step-number-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #f75c4c, #ff6b6b);
  color: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-card-grid h3 {
  color: #0f172a;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step-card-grid p {
  color: #64748b;
  font-size: 0.9rem;
}

.bonus-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 8px;
}

/* Comparison Box */
.comparison-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0;
}

@media(max-width: 768px) { .comparison-box { grid-template-columns: 1fr; } }
 /* Улучшаем читаемость текста */
  .article-content {
    padding: 20px 15px 40px;
  }
  
  .article-content h2 {
    font-size: 1.3rem;
    margin: 30px 0 12px;
    line-height: 1.3;
  }
  
  .article-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 14px;
  }
  
  /* Списки на мобильной */
  .article-content ul,
  .article-content ol {
    margin: 16px 0 16px 20px;
    padding-left: 5px;
  }
  
  .article-content li {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 0.95rem;
  }
  
  /* Таблицы на мобильной */
  .price-table {
    font-size: 0.85rem;
    overflow-x: auto;
    display: block;
  }
  
  .price-table th,
  .price-table td {
    padding: 10px 8px;
  }
  
  /* Карточки шагов */
  .steps-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .step-card-grid {
    padding: 20px 15px;
  }
  
  /* Галерея */
  .gallery {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .gallery-card img {
    height: 200px;
  }
  
  /* CTA секции */
  .cta-section {
    padding: 30px 20px;
  }
  
  .cta-section h3 {
    font-size: 1.2rem;
  }
  
  /* FAQ */
  .faq-item summary {
    padding: 14px 16px;
    font-size: 0.95rem;
  }
  
  .faq-item p {
    padding: 0 16px 14px;
    font-size: 0.9rem;
  }
  
  /* Преимущества */
  .benefit-item {
    flex-direction: column;
    padding: 16px;
  }
  
  .benefit-icon {
    font-size: 2rem;
    margin-bottom: 8px;
  }
  
  /* Хедер на мобильной */
  header {
    padding: 15px 0;
  }
  
  .header-content {
    flex-direction: column;
    gap: 12px;
  }
  
  .logo {
    font-size: 20px;
  }
  
  .logo-img {
    height: 28px;
  }
  
  /* Кнопки */
  .cta-button {
    padding: 12px 24px;
    font-size: 15px;
    width: 100%;
    justify-content: center;
  }
  
  /* Hero секция */
  .article-hero {
    padding: 40px 15px 30px;
  }
  
  .article-hero h1 {
    font-size: 1.6rem;
    line-height: 1.2;
  }
  
  .article-hero p {
    font-size: 1rem;
  }
  
  /* Футер */
  footer {
    padding: 40px 15px 25px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  /* Sticky CTA на мобильной */
  .sticky-cta {
    padding: 12px 15px;
  }
  
  .sticky-cta strong {
    font-size: 15px;
  }
  
  .sticky-cta p {
    font-size: 12px;
  }
}

/* === ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (до 400px) === */
@media (max-width: 400px) {
  .article-content h2 {
    font-size: 1.2rem;
  }
  
  .article-content p,
  .article-content li {
    font-size: 0.9rem;
  }
  
  .step-number-large {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .gallery-card img {
    height: 180px;
  }
}
.price-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.price-card.featured {
  border: 2px solid #f75c4c;
  background: rgba(247,92,76,0.03);
}

.price-card h3 {
  font-size: 1.4rem;
  color: #0f172a;
  margin-bottom: 8px;
}

.price-tag {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 16px 0;
}

.price-tag span {
  font-size: 1rem;
  color: #64748b;
  font-weight: 400;
}

.price-list {
  list-style: none;
  margin: 24px 0;
}

.price-list li {
  margin-bottom: 12px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-list li::before {
  content: "•";
  color: #f75c4c;
  font-weight: bold;
}

.savings-banner {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  margin: 40px 0;
}

.savings-banner h2 { margin-bottom: 8px; }

/* Benefit List */
.benefit-list { list-style: none; margin: 40px 0; }

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #f75c4c;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.benefit-icon { font-size: 1.5rem; flex-shrink: 0; }
.benefit-content h3 { color: #0f172a; margin-bottom: 8px; }
.benefit-content p { color: #64748b; font-size: 0.95rem; }