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

:root {
  --color-bg-dark: #1a1a1a;
  --color-bg-light: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #666;
  --color-text-light: #ffffff;
  --color-accent: #2aabee;
  --color-accent-dark: #1a8fd4;
  --color-border: #e8e8e8;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --container-width: 720px;
  --radius: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg-light);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.highlight {
  color: var(--color-accent);
}

.loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: var(--color-text-muted);
}

.loading-screen.is-hidden {
  display: none;
}

/* Hero */
.hero {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: 48px 0 40px;
}

.hero h1 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 28px;
}

.hero-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}

.hero-feature-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--color-text-light);
}

.hero-feature-icon svg {
  width: 100%;
  height: 100%;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  display: block;
  width: 100%;
  padding: 16px 24px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-text-light);
  border: 2px solid var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-light);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  border-color: var(--color-text-light);
}

/* Sections */
.section {
  padding: 40px 0;
}

.section h2 {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

.section-title-blue {
  color: var(--color-accent);
}

.intro-text {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.7;
}

/* Key types */
.key-types {
  background: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
}

.key-types-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.key-type-card {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fafafa;
}

.key-type-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.key-type-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.key-type-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* Solution */
.solution-block {
  background: #f5f9fc;
  border-left: 4px solid var(--color-accent);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.solution-label {
  font-weight: 600;
  margin-bottom: 12px;
}

.solution-block p + p {
  margin-top: 12px;
}

/* B2B */
.b2b p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Prices */
.prices {
  background: #fafafa;
  border-top: 1px solid var(--color-border);
}

.prices h2 {
  text-align: center;
  margin-bottom: 32px;
}

.price-section + .price-section {
  margin-top: 32px;
}

.price-section h3 {
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.4;
}

.price-list {
  list-style: none;
  border-top: 1px solid var(--color-border);
}

.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.price-name {
  flex: 1;
}

.price-value {
  font-weight: 600;
  white-space: nowrap;
  color: var(--color-text);
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.review-card {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fafafa;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.stars {
  color: #f5a623;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.review-date {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.review-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
}

/* Footer */
.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: 32px 0 24px;
}

.footer-contacts {
  margin-bottom: 20px;
}

.footer-phone {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-light);
  text-decoration: none;
  margin-bottom: 8px;
}

.footer-phone:hover {
  color: var(--color-accent);
}

.footer-address {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 600px) {
  .hero {
    padding: 64px 0 56px;
  }

  .key-types-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (min-width: 900px) {
  :root {
    --container-width: 860px;
  }

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