:root {
  --text: #4a2c3a;
  --text-secondary: #8c6a78;
  --background: #fff6f4;
  --card: #ffffff;
  --border: #f6d2da;
  --accent: #e8577a;
  --gradient-top: #ffe3e8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #fcedef;
    --text-secondary: #c9a9b5;
    --background: #1e1419;
    --card: #33212a;
    --border: #4a2f3b;
    --accent: #ff7a9a;
    --gradient-top: #341b27;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Quicksand', system-ui, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(var(--gradient-top), var(--background) 320px) no-repeat,
    var(--background);
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}

header {
  text-align: center;
  margin-bottom: 32px;
}

header img {
  width: 140px;
  height: auto;
}

h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 8px 0 4px;
}

h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 8px;
}

p,
ul {
  margin: 0 0 12px;
}

ul {
  padding-left: 20px;
}

.subtitle {
  color: var(--text-secondary);
  margin: 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 16px;
}

.card > :last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  font-weight: 600;
}

main.wide {
  max-width: 1040px;
}

section {
  margin-bottom: 56px;
}

.narrow {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-text {
  flex: 1;
}

.hero-mascot {
  width: 120px;
  height: auto;
}

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

.tagline {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.badge {
  display: inline-block;
  background: var(--accent);
  color: var(--background);
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 20px;
  margin-top: 8px;
}

.phone {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(74, 44, 58, 0.18);
}

.hero-phone {
  width: 300px;
  flex-shrink: 0;
}

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

.features .card {
  margin-bottom: 0;
}

.section-title {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 24px;
}

.gallery {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 40px;
}

.gallery figure {
  flex: 0 0 220px;
  margin: 0;
  scroll-snap-align: center;
}

.gallery figcaption {
  text-align: center;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 12px;
}

@media (max-width: 720px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

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

  .hero-phone {
    width: 240px;
  }
}

footer {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 32px;
}
