/* Nunito и Comfortaa, SIL Open Font License, файлы Fontsource лежат локально. */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/nunito-cyrillic-400.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/nunito-cyrillic-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/nunito-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/nunito-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Comfortaa";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/comfortaa-cyrillic-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Comfortaa";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/comfortaa-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #fff6f1;
  --bg-accent: #ffe8dc;
  --ink: #2c2140;
  --muted: #6d5c78;
  --paper: #ffffff;
  --line: rgba(44, 33, 64, 0.1);
  --raspberry: #e23d6b;
  --raspberry-dark: #c21f52;
  --sun: #ffbf47;
  --mint: #12886f;
  --plum: #2c2140;
  --shadow: 0 18px 40px rgba(44, 33, 64, 0.1);
  --radius: 1.6rem;
  --header: 4.4rem;
  --font: "Nunito", "Segoe UI", sans-serif;
  --display: "Comfortaa", "Nunito", sans-serif;
  --space: clamp(1.1rem, 0.7rem + 1.6vw, 2rem);
  --content: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #16111e;
    --bg-accent: #24182c;
    --ink: #f7f1ea;
    --muted: #cbbdd2;
    --paper: #241c30;
    --line: rgba(247, 241, 234, 0.12);
    --raspberry: #ff6b93;
    --raspberry-dark: #ff8eab;
    --sun: #ffd27a;
    --mint: #3dceb4;
    --plum: #120d18;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% -10%, rgba(255, 191, 71, 0.45), transparent 32%),
    radial-gradient(circle at 110% 8%, rgba(226, 61, 107, 0.18), transparent 28%),
    var(--bg);
}

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

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

h1,
h2,
h3,
.logo-name,
.price {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 1.4rem + 3.2vw, 4.4rem);
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.8rem);
}

h3 {
  margin: 0;
  font-size: 1.35rem;
}

p {
  margin: 0;
}

.skip {
  position: absolute;
  left: 0.6rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: var(--sun);
  color: #2c2140;
}

.skip:focus {
  top: 0.6rem;
}

.wrap {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
  width: min(calc(100% - 1.2rem), var(--content));
  margin: 0.5rem auto 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(16px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.logo img {
  width: 2.6rem;
  height: 2.6rem;
}

.logo-name {
  font-size: 1.05rem;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
  pointer-events: none;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  background: var(--plum);
  color: #fff8f4;
  font-weight: 700;
  cursor: pointer;
}

.nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.5rem);
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.nav a {
  display: block;
  padding: 0.85rem 0.7rem;
  border-radius: 0.9rem;
  text-decoration: none;
  font-weight: 700;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--bg-accent);
}

.nav-toggle:checked ~ .nav,
.nav-toggle:focus-visible ~ .nav {
  display: grid;
}

.hero,
.section {
  padding: clamp(2.2rem, 1.4rem + 3vw, 5rem) 0;
}

.hero {
  display: grid;
  gap: 1.4rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--sun) 70%, white);
  color: #3a2a12;
  font-weight: 700;
  font-size: 0.92rem;
}

.lead {
  margin-top: 1rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.actions {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.75rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: var(--raspberry);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  background: var(--raspberry-dark);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: var(--paper);
}

.hero-photo {
  position: relative;
  margin: 0;
}

.hero-photo img {
  width: 100%;
  height: min(70vw, 28rem);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-note {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  max-width: 14rem;
  padding: 0.8rem 0.95rem;
  border-radius: 1.1rem;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  font-weight: 700;
}

.section-head {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}

.section-head p {
  max-width: 40rem;
  color: var(--muted);
}

.cards,
.steps,
.prices,
.reviews {
  display: grid;
  gap: 0.9rem;
}

.card,
.step,
.price-card,
.review,
.contact-card,
.form-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.card img,
.gallery img {
  width: 100%;
  height: 12.5rem;
  object-fit: cover;
  border-radius: 1.1rem;
}

.card p,
.step p,
.review p,
.price-card p {
  margin-top: 0.55rem;
  color: var(--muted);
}

.step strong {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  background: var(--sun);
  color: #3a2a12;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.gallery figure {
  margin: 0;
}

.gallery figcaption {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.price {
  margin-top: 0.8rem;
  font-size: 2rem;
}

.price-card.featured {
  background: var(--plum);
  color: #fff8f4;
}

.price-card.featured p {
  color: rgba(255, 248, 244, 0.78);
}

.review span {
  display: block;
  margin-top: 0.9rem;
  font-weight: 700;
}

.contact {
  display: grid;
  gap: 0.9rem;
}

.contact a {
  color: var(--raspberry);
  font-weight: 700;
}

.contact-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.contact-list span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

form {
  display: grid;
  gap: 0.85rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.button:focus-visible,
.nav-button:focus-visible,
.nav a:focus-visible,
.logo:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}

.form-success {
  display: grid;
  gap: 0.4rem;
  min-height: 12rem;
  place-items: center;
  text-align: center;
}

.form-success strong {
  font-family: var(--display);
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem);
}

.site-footer {
  padding: 1.4rem 0 2rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: grid;
  gap: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

@media (min-width: 720px) {
  .actions {
    grid-template-columns: max-content max-content;
  }

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

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .nav-button {
    display: none;
  }

  .nav {
    display: flex;
    position: static;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    gap: 0.2rem;
  }

  .nav a {
    padding: 0.55rem 0.7rem;
  }

  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 2.4rem;
  }

  .hero-photo img {
    height: 34rem;
  }

  .cards,
  .prices {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards.four {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
