@font-face {
  font-family: Golos;
  src: url('/assets/golos.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: Caveat;
  src: url('/assets/caveat.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5efe3;
  --card: #fffaf1;
  --ink: #213b44;
  --muted: #4f6260;
  --line: #d6cbbb;
  --blue: #285471;
  --green: #e7eee7;
  --pink: #eed8d0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.55 Golos, system-ui, sans-serif;
}

a { color: var(--blue); text-decoration-thickness: .08em; text-underline-offset: .17em; }
a:hover { text-decoration-thickness: .13em; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: Georgia, serif; letter-spacing: -.04em; line-height: 1.07; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.2rem; line-height: 1.28; }
p + p { margin-top: .75em; }

.wrap { width: min(100% - 3rem, 70rem); margin-inline: auto; }
.skip-link { position: absolute; z-index: 1; top: .5rem; left: .5rem; padding: .55rem .85rem; background: var(--card); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.header { border-bottom: 1px solid var(--line); }
.header .wrap { min-height: 5rem; display: flex; gap: 1.15rem; align-items: center; justify-content: space-between; }
.brand {
  flex: none;
  display: grid;
  place-items: center;
  width: 8.4rem;
  min-height: 3.7rem;
  padding-right: .45rem;
  background: url('/assets/lermi-paper.webp') center / contain no-repeat;
  color: #654653;
  text-decoration: none;
  font: 650 2.75rem/.9 Caveat, cursive;
  letter-spacing: -.045em;
}
.brand span { transform: rotate(-5deg); }
.nav, .footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.25rem; }
.nav a { color: var(--ink); font-weight: 530; text-decoration: none; }
.nav a:hover { text-decoration: underline; }

.hero {
  min-height: 28rem;
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: clamp(1.5rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 8vw, 6.4rem);
  border-bottom: 1px solid var(--line);
}
.hero h1 { max-width: 12ch; font-size: clamp(2.85rem, 6.3vw, 5.5rem); }
.intro { max-width: 60ch; margin-top: 1rem; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.17rem); }
.action {
  display: inline-block;
  margin-top: 1.5rem;
  padding: .75rem 1.25rem;
  border-radius: .55rem;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.action:hover { background: #21475f; }
.hero-art {
  isolation: isolate;
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1.06;
}
.hero-art::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 10% 3% 5%;
  border: 1px solid #d4c3b6;
  border-radius: 40% 44% 33% 36%;
  transform: rotate(-7deg);
  background: var(--pink);
}
.hero-art img { width: min(95%, 19rem); height: auto; }

.examples, .steps, .pricing, .contacts { padding-block: 3.3rem; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.tile { min-width: 0; border: 1px solid var(--line); border-radius: .8rem; background: var(--card); }
.tile p, .step-list p { margin-top: .55rem; color: var(--muted); }
.example { overflow: hidden; }
.example img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-bottom: 1px solid var(--line); background: #f4eee2; }
.example div { padding: 1.2rem; }
.steps { border-block: 1px solid var(--line); }
.step-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; padding-left: 1.3rem; margin-block: 1.5rem 0; }
.step-list li { padding-left: .2rem; }
.step-list li::marker { color: var(--blue); font-weight: 660; }
.plan { padding: 1.4rem 1.25rem; }
.plan:nth-child(2) { background: var(--green); border-color: #b9cdc0; }
.plan .price { margin-top: .65rem; font-family: Georgia, serif; color: var(--ink); font-size: 2.1rem; line-height: 1.1; }
.price .period { font: .89rem/1.3 Golos, sans-serif; color: var(--muted); }
.plan .plan-credits { color: var(--blue); font-weight: 680; }
.topup { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .75rem 2rem; margin-top: 1rem; padding: 1.25rem; }
.pack-list { min-width: min(100%, 14rem); list-style: none; padding: 0; margin: 0; }
.pack-list li { display: flex; justify-content: space-between; gap: 1.3rem; padding-block: .18rem; }
.pack-list li + li { border-top: 1px solid var(--line); }
.pack-list strong { white-space: nowrap; }
.billing-note { color: var(--muted); margin-top: 1rem; }
.contacts { border-top: 1px solid var(--line); }
.contacts > p { margin-block: .55rem; color: var(--muted); }
.contact-list { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 0; }

.footer { padding-block: 1.8rem; border-top: 1px solid var(--line); background: #ebe3d5; }
.footer .wrap { display: grid; gap: .8rem; }
.merchant { max-width: 70ch; color: var(--muted); font-size: .94rem; overflow-wrap: anywhere; }

.legal { max-width: 51rem; padding-block: clamp(2.6rem, 6.5vw, 5rem); }
.legal h1 { font-size: clamp(2.45rem, 7vw, 4.25rem); }
.legal h2 { margin-block: 1.8rem .65rem; font: 670 1.28rem/1.27 Golos, system-ui, sans-serif; letter-spacing: -.02em; }
.legal h3 { margin-block: 1rem .35rem; font-size: 1.1rem; }
.legal h1 + p { margin-top: 1rem; }
.legal section { margin-top: 1.4rem; }
.legal ul, .legal ol { padding-left: 1.28rem; margin-block: .65rem; }
.legal li + li { margin-top: .3rem; }
.seller-details { padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--card); overflow-wrap: anywhere; }
.seller-details dt { color: var(--muted); }
.seller-details dd { margin: 0 0 .45rem; }
.seller-details dd:last-child { margin-bottom: 0; }

@media (max-width: 720px) {
  .wrap { width: min(100% - 2rem, 42rem); }
  .header .wrap { justify-content: flex-start; flex-wrap: wrap; padding-block: .5rem .85rem; }
  .nav { gap: .35rem 1rem; }
  .hero { min-height: auto; gap: .75rem; grid-template-columns: 1fr; padding-block: 2rem; }
  .hero h1 { max-width: 15ch; }
  .hero-art { width: min(47vw, 13rem); justify-self: end; margin-right: .6rem; }
  .tiles, .step-list { grid-template-columns: 1fr; }
  .example img { max-height: 12rem; object-fit: cover; }
  .examples, .steps, .pricing, .contacts { padding-block: 2.45rem; }
}

@media (max-width: 460px) {
  .topup { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; }
  .nav a { font-size: .92rem; }
}
