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

:root {
  --color-bg: #f8f6f3;
  --color-surface: #ffffff;
  --color-text: #1a1f2e;
  --color-text-muted: #5c6478;
  --color-primary: #0d7ea8;
  --color-primary-dark: #065a78;
  --color-accent: #e8a838;
  --color-accent-soft: #fff4e0;
  --color-telegram: #229ed9;
  --color-telegram-dark: #1a8bc4;
  --shadow-sm: 0 2px 8px rgba(26, 31, 46, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 31, 46, 0.1);
  --shadow-lg: 0 16px 48px rgba(26, 31, 46, 0.12);
  --radius: 16px;
  --radius-lg: 24px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 1.25rem 3rem;
  overflow: hidden;
  min-height: auto;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(13, 126, 168, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(232, 168, 56, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #eef6f9 0%, var(--color-bg) 100%);
  z-index: 0;
}

.hero__content,
.hero__image-wrap {
  position: relative;
  z-index: 1;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: rgba(13, 126, 168, 0.12);
  border-radius: 100px;
}

.hero h1 {
  font-size: clamp(2.25rem, 8vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.hero__tagline {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 28ch;
}

.hero__image-wrap {
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}

.hero__image {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 1;
}

/* Telegram button */
.btn-telegram {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--color-telegram) 0%, var(--color-telegram-dark) 100%);
  border: none;
  border-radius: 100px;
  box-shadow:
    0 4px 20px rgba(34, 158, 217, 0.45),
    0 0 0 0 rgba(34, 158, 217, 0.4);
  overflow: hidden;
  cursor: pointer;
  animation: pulse-ring 2.2s ease-out infinite, gentle-bounce 3s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-telegram--large {
  padding: 1.15rem 2.25rem;
  font-size: 1.125rem;
}

.btn-telegram:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 8px 28px rgba(34, 158, 217, 0.55),
    0 0 0 0 rgba(34, 158, 217, 0.3);
  animation: none;
}

.btn-telegram:active {
  transform: translateY(0) scale(0.98);
}

.btn-telegram__icon {
  display: flex;
  flex-shrink: 0;
}

.btn-telegram__shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 45%,
    transparent 90%
  );
  animation: shine 2.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse-ring {
  0% {
    box-shadow:
      0 4px 20px rgba(34, 158, 217, 0.45),
      0 0 0 0 rgba(34, 158, 217, 0.5);
  }
  70% {
    box-shadow:
      0 4px 20px rgba(34, 158, 217, 0.45),
      0 0 0 14px rgba(34, 158, 217, 0);
  }
  100% {
    box-shadow:
      0 4px 20px rgba(34, 158, 217, 0.45),
      0 0 0 0 rgba(34, 158, 217, 0);
  }
}

@keyframes gentle-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes shine {
  0%, 40% { left: -100%; }
  60%, 100% { left: 150%; }
}

/* Sections */
.section {
  padding: 2.5rem 0;
}

.section--who {
  background: var(--color-surface);
}

.section--benefits {
  background: var(--color-bg);
}

.section--work {
  background: var(--color-surface);
}

.section--cta {
  background: linear-gradient(180deg, var(--color-accent-soft) 0%, var(--color-bg) 100%);
  padding-bottom: 4rem;
}

.section__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(1.35rem, 4.5vw, 1.65rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.section__emoji {
  font-size: 1.35em;
  line-height: 1;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 1rem;
  color: var(--color-text);
}

.check-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* Benefits grid */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.benefit-card {
  background: var(--color-surface);
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(26, 31, 46, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.benefit-card__icon {
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.35rem;
}

.benefit-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.benefit-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.work-box {
  background: linear-gradient(135deg, rgba(13, 126, 168, 0.08) 0%, rgba(232, 168, 56, 0.08) 100%);
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--color-primary);
}

.work-box p {
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.65;
}

.work-box strong {
  color: var(--color-primary-dark);
}

/* CTA block */
.cta-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cta-block__urgency {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  max-width: 32ch;
}

/* Floating Telegram FAB */
.fab-telegram {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-telegram), var(--color-telegram-dark));
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(34, 158, 217, 0.5);
  text-decoration: none;
  animation: fab-pulse 2s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.fab-telegram:hover {
  transform: scale(1.08);
  animation: none;
}

@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(34, 158, 217, 0.5); }
  50% { box-shadow: 0 4px 28px rgba(34, 158, 217, 0.75), 0 0 0 8px rgba(34, 158, 217, 0.15); }
}

.footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  border-top: 1px solid rgba(26, 31, 46, 0.06);
}

/* Tablet+ */
@media (min-width: 640px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 3rem 2rem 4rem;
    max-width: 1100px;
    margin: 0 auto;
  }

  .hero__content {
    margin: 0;
    order: 1;
  }

  .hero__image-wrap {
    margin: 0;
    order: 2;
    max-width: none;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }

  .section {
    padding: 3rem 0;
  }

  .container {
    max-width: 900px;
    padding: 0 2rem;
  }
}

@media (min-width: 900px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero h1 {
    font-size: 3.5rem;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .btn-telegram,
  .fab-telegram {
    animation: none;
  }

  .btn-telegram__shine {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
