:root {
  color-scheme: light;
  --bg: #f8efe4;
  --bg-2: #fdebd6;
  --text: #1d1b1a;
  --muted: #5d5751;
  --accent: #ff7a59;
  --accent-2: #2a9d8f;
  --accent-3: #ffd166;
  --card: #ffffff;
  --line: #e1d7cc;
  --shadow: 0 18px 40px rgba(22, 18, 14, 0.15);
  --radius: 22px;
  --max: 1120px;
}

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

body {
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, #fff8f2 0%, var(--bg) 45%, transparent 60%),
    radial-gradient(circle at 90% 15%, #ffe6f0 0%, transparent 55%),
    radial-gradient(circle at 20% 80%, #e7f6f4 0%, transparent 55%),
    linear-gradient(180deg, #fffaf6 0%, var(--bg) 40%, #fff 100%);
  line-height: 1.6;
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 28px 60px;
}

h1,
h2,
h3 {
  font-family: "Literata", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 3vw, 3.4rem);
  margin: 16px 0 14px;
}

h2 {
  font-size: clamp(1.7rem, 2.3vw, 2.4rem);
  line-height: 1.2;
}

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

p {
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
  margin-bottom: 60px;
}

.hero__badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffe2d6;
  color: #a64223;
  font-weight: 600;
  font-size: 0.95rem;
}

.hero__name {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__exp {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-3) 0%, #ffe29a 100%);
  color: #5a3417;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(255, 209, 102, 0.35);
}

.hero__logo {
  width: 190px;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px;
  box-shadow: 0 10px 22px rgba(31, 28, 26, 0.12);
}

.hero__subtitle {
  margin-bottom: 24px;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 68ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.fact__title {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8c8277;
}

.fact__value {
  font-weight: 600;
  font-size: 0.95rem;
}

.hero__portrait {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #f1d8c5;
  background:
    radial-gradient(circle at 30% 20%, #fff 0%, #fff4ea 45%, #ffe4d6 100%);
  aspect-ratio: 4 / 5;
  min-height: 360px;
}

.hero__portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center 20%;
  filter: saturate(0.85) contrast(1.05) brightness(0.98);
}

.hero__portrait-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(29, 27, 26, 0.86);
  color: #fff4ea;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.section {
  margin: 60px 0;
}

.section__head {
  display: grid;
  gap: 10px;
  max-width: 620px;
  margin-bottom: 28px;
}

.section__head p {
  max-width: 60ch;
}

.section--muted {
  background: linear-gradient(135deg, #fff4e6 0%, var(--bg-2) 100%);
  padding: 40px;
  border-radius: var(--radius);
}

.section--accent {
  background: linear-gradient(140deg, #1f1c1a 0%, #2f241f 60%, #1d1a18 100%);
  color: #f6efe8;
  padding: 40px;
  border-radius: var(--radius);
}

.section--accent p {
  color: #e1d6cc;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(31, 28, 26, 0.08);
}

.card p,
.step p {
  line-height: 1.65;
}

.card--outline {
  background: transparent;
  border: 1px solid var(--line);
  box-shadow: none;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.step {
  background: linear-gradient(160deg, #fff8f1 0%, #fff2df 100%);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid #efd7c6;
}

.step__number {
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.2em;
  font-size: 0.9rem;
}

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: center;
}

.cta > div:first-child {
  display: grid;
  gap: 10px;
}

.cta__contacts {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.cta__contacts .button {
  width: min(100%, 340px);
}

.cta__note {
  font-size: 0.85rem;
  color: #bbaea4;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff9c7c 100%);
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 18px rgba(197, 91, 42, 0.3);
}

.button:hover {
  transform: translateY(-2px);
}

.button--priority {
  background: linear-gradient(135deg, #ff7c2a 0%, #ff4f2f 100%);
  box-shadow: 0 12px 24px rgba(255, 89, 47, 0.45);
}

.button--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.section--accent .button--ghost {
  color: #f6efe8;
  border-color: #6b5d52;
}

.footer {
  text-align: center;
  margin-top: 40px;
  color: #7b7269;
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .page {
    padding: 24px 16px 40px;
  }

  h1 {
    margin: 12px 0 10px;
  }

  .hero {
    gap: 22px;
    margin-bottom: 42px;
  }

  .hero__logo {
    width: 156px;
  }

  .hero__actions {
    margin-bottom: 20px;
  }

  .hero__facts {
    padding: 14px;
    gap: 10px;
  }

  .hero__portrait-badge {
    left: 12px;
    right: 12px;
    bottom: 12px;
    font-size: 0.82rem;
    text-align: center;
  }

  .section--muted,
  .section--accent {
    padding: 22px;
  }

  .section {
    margin: 42px 0;
  }

  .section__head {
    gap: 8px;
    margin-bottom: 20px;
  }

  .grid,
  .steps {
    gap: 14px;
  }

  .card,
  .step {
    padding: 18px;
  }

  .cta {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cta__contacts .button {
    width: 100%;
  }

  .footer {
    margin-top: 28px;
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__content,
  .hero__card,
  .section,
  .card,
  .step {
    animation: rise 0.7s ease both;
  }

  .hero__card {
    animation-delay: 0.1s;
  }

  .section:nth-of-type(2) {
    animation-delay: 0.15s;
  }

  .section:nth-of-type(3) {
    animation-delay: 0.2s;
  }

  .section:nth-of-type(4) {
    animation-delay: 0.25s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
