@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #0077b6;
  --primary-dark: #023e8a;
  --secondary: #00b4d8;
  --accent: #90e0ef;
  --bg: #f8f9fa;
  --bg-alt: #ffffff;
  --text: #212529;
  --text-light: #6c757d;
  --border: #dee2e6;
  --success: #2a9d8f;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: clip;
}

main {
  flex: 1 0 auto;
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--primary-dark);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 32px;
  text-align: center;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

p {
  margin-bottom: 16px;
  color: var(--text-light);
}

img {
  max-width: 100%;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  max-width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-full {
  width: 100%;
}

.site-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  min-width: 0;
}

.header-notice {
  background: var(--accent);
  color: var(--primary-dark);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

section {
  padding: 64px 0;
}

.hero {
  background: linear-gradient(135deg, #caf0f8 0%, #ffffff 100%);
  padding: 80px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
  max-width: 100%;
}

.hero-content h1 {
  color: var(--primary-dark);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 32px;
  color: var(--text);
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.problems-grid > * {
  min-width: 0;
  max-width: 100%;
}

.problem-card {
  background: var(--bg-alt);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.problem-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.problem-icon i {
  font-size: 2.5rem;
  color: #ffffff;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.product-gallery {
  max-width: 400px; 
  justify-self: center; 
}

.product-info .section-title {
  text-align: left;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-image-wrapper {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow: var(--shadow);
}

.main-image-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.thumbnails {
  display: flex;
  gap: 12px;
}

.thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  opacity: 0.6;
  object-fit: cover;
}

.thumb.active, .thumb:hover {
  border-color: var(--primary);
  opacity: 1;
}

.features-list {
  list-style: none;
  margin-top: 24px;
}

.features-list li {
  margin-bottom: 16px;
  padding-left: 28px;
  position: relative;
  color: var(--text);
}

.features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
  font-size: 1.2rem;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.comparison-grid > * {
  min-width: 0;
  max-width: 100%;
}

.comparison-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.comparison-card.before {
  background: #fff5f5;
  border: 1px solid #ffd6d6;
}

.comparison-card.after {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.comparison-card h3 {
  margin-bottom: 20px;
}

.comparison-card ul {
  list-style: none;
}

.comparison-card li {
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
  color: var(--text);
}

.comparison-card.before li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: #ef4444;
  font-weight: bold;
}

.comparison-card.after li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonials-grid > * {
  min-width: 0;
  max-width: 100%;
}

.testimonial-card {
  background: var(--bg-alt);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--secondary);
}

.testimonial-card p {
  font-style: italic;
  color: var(--text);
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
}

.testimonial-author strong {
  color: var(--primary-dark);
}

.testimonial-author span {
  font-size: 0.9rem;
  color: var(--text-light);
}

.paywall {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #ffffff;
}

.paywall .section-title {
  color: #ffffff;
}

.paywall-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.paywall-inner > * {
  min-width: 0;
  max-width: 100%;
}

.paywall-offer {
  text-align: center;
}

.price-block {
  margin: 24px 0;
}

.old-price {
  text-decoration: line-through;
  opacity: 0.7;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin-right: 16px;
}

.current-price {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  font-family: var(--font-heading);
}

.offer-note {
  color: var(--accent);
  font-size: 0.95rem;
}

.order-form {
  background: var(--bg-alt);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select,
.form-group button {
  width: 100%;
  max-width: 100%;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="number"] {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checkbox-group input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.checkbox-group label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.site-footer {
  background: #0d0d0d;
  color: #cccccc;
  padding: 48px 0 24px;
  margin-top: auto;
  border-top: 3px solid var(--secondary);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 32px;
  align-items: start;
}

.footer-logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.footer-contacts p {
  color: #cccccc;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.footer-contacts strong {
  color: #ffffff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: flex-start;
  align-items: center;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s, text-decoration 0.3s;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-links a:not(:last-child)::before {
  content: '|';
  color: #555;
  margin-right: 12px;
  font-weight: 300;
}

.footer-links a:first-child::before {
  content: none;
}

.footer-disclaimer {
  grid-column: 1 / -1;
  border-top: 1px solid #333333;
  padding-top: 24px;
  margin-top: 24px;
}

.footer-disclaimer p {
  font-size: 0.9rem;
  color: #999999;
  line-height: 1.5;
}

.footer-copyright {
  grid-column: 1 / -1;
  text-align: center;
  border-top: 1px solid #333333;
  padding-top: 24px;
  margin-top: 16px;
}

.footer-copyright p {
  font-size: 0.85rem;
  color: #777777;
  margin: 0;
}

.legal-main {
  padding: 64px 0;
  background: var(--bg);
  flex: 1;
}

.legal-card {
  background: var(--bg-alt);
  padding: 48px 56px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.legal-content {
  word-break: break-word;
}

.legal-card h1 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 32px;
  border-bottom: 3px solid var(--secondary);
  padding-bottom: 16px;
}

.legal-card h2 {
  text-align: left;
  font-size: 1.5rem;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--primary-dark);
}

.legal-card p {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-card b,
.legal-card strong {
  color: var(--primary-dark);
}

.legal-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.legal-card a:hover {
  text-decoration: underline;
}

.legal-card ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-card ul li {
  margin-bottom: 8px;
  color: var(--text);
}

.legal-card .legal-meta {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-light);
}

.thanks-main {
  padding: 80px 0;
  background: var(--bg);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.thanks-container {
  max-width: 700px;
  margin: 0 auto;
}

.thanks-card {
  background: var(--bg-alt);
  padding: 48px 56px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  text-align: center;
}

.thanks-card h1 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin-bottom: 24px;
}

.thanks-card h1 span {
  color: var(--primary);
}

.thanks-card p {
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.thanks-card .btn {
  margin-top: 16px;
}

@media (max-width: 992px) {
  .hero-grid,
  .product-grid,
  .paywall-inner {
    grid-template-columns: 1fr;
  }

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

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo a {
    justify-content: center;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-links a:not(:last-child)::before {
    content: '|';
    margin: 0 8px;
  }
}

@media (max-width: 768px) {
  .thanks-card {
    padding: 32px 24px;
  }

  .legal-card {
    padding: 28px 20px;
  }
}

@media (max-width: 640px) {
  .header-notice {
    word-break: break-all;
  }

  .logo a {
    flex-direction: column;
  }

  .logo a span {
    word-break: break-all;
    min-width: 0;
    flex: 1;
  }

  .footer-contacts,
  .footer-contacts p {
    word-break: break-all;
  }
}

@media (max-width: 576px) {
  section {
    padding: 40px 0;
  }

  .hero {
    padding: 40px 0;
  }

  .problems-grid {
    grid-template-columns: 1fr;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    gap: 12px;
  }

  .footer-links {
    gap: 8px 16px;
  }

  .footer-links a {
    font-size: 0.9rem;
  }

  .footer-links a:not(:last-child)::before {
    margin: 0 6px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .order-form {
    padding: 20px 16px;
  }

  .problem-card,
  .testimonial-card,
  .comparison-card {
    padding: 20px 16px;
  }

  h1 {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  h2,
  .section-title {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}
