/* Публичный сайт сети «Солнышко».
   Жанр — детская, игровая, но без визуального шума: родитель должен
   за пять секунд понять, где записаться и сколько это стоит. */

@import url('/fonts/fonts.css');

:root {
  --sun:      #ffc53d;
  --sun-deep: #f5a524;
  --orange:   #ff8a3d;
  --sky:      #4fc3f7;
  --mint:     #3fc79a;
  --coral:    #ff7a8a;
  --grape:    #7b6bd6;

  --ink:      #33305a;
  --ink-soft: #6b6890;
  --cream:    #fffaf0;
  --card:     #ffffff;
  --line:     #f0e6d6;

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow: 0 10px 30px rgba(51, 48, 90, .09);
  --shadow-lift: 0 18px 44px rgba(51, 48, 90, .16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.6 'Nunito', -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: 'Comfortaa', 'Nunito', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0;
}

a { color: inherit; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
@media (max-width: 600px) { .wrap { width: calc(100% - 32px); } }

/* ------------------------------------------------------------- шапка */

header.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 240, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 24px; padding: 12px 0; }

.logo {
  display: flex; align-items: center; gap: 9px;
  font-family: 'Comfortaa', sans-serif; font-weight: 700; font-size: 21px;
  text-decoration: none; white-space: nowrap;
}
.logo .mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--sun) 0%, var(--sun-deep) 100%);
  box-shadow: 0 0 0 4px rgba(255, 197, 61, .28);
  flex: 0 0 auto;
}

nav.main { display: flex; gap: 4px; margin-left: auto; }
nav.main a {
  text-decoration: none; padding: 9px 14px; border-radius: 999px;
  font-weight: 700; color: var(--ink-soft); white-space: nowrap;
}
nav.main a:hover { background: #fff3d8; color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none;
  font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 16px;
  padding: 13px 26px; border-radius: 999px; min-height: 48px;
  background: linear-gradient(135deg, var(--orange), var(--sun-deep));
  color: #fff; box-shadow: 0 8px 20px rgba(245, 165, 36, .38);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(245, 165, 36, .46); }
.btn:active { transform: translateY(0); }
.btn.ghost {
  background: #fff; color: var(--ink); box-shadow: var(--shadow);
  border: 2px solid var(--line);
}
.btn.sky { background: linear-gradient(135deg, var(--sky), #2f9fd6); box-shadow: 0 8px 20px rgba(79,195,247,.38); }

.burger { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--ink); }

@media (max-width: 900px) {
  nav.main {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 10px 20px 18px;
  }
  nav.main.open { display: flex; }
  .burger { display: block; margin-left: auto; }
  /* На 375px логотип, бургер и кнопка не влезали в строку и давали
     горизонтальный скролл по всей странице. Жмём отступы и кнопку. */
  .top-in { gap: 10px; }
  .top-in .btn { padding: 10px 16px; font-size: 15px; min-height: 42px; }
}
@media (max-width: 420px) {
  .logo { font-size: 18px; gap: 7px; }
  .logo .mark { width: 28px; height: 28px; box-shadow: 0 0 0 3px rgba(255,197,61,.28); }
  .top-in .btn { padding: 9px 13px; font-size: 14px; }
}

/* -------------------------------------------------------------- герой */

.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; } .hero { padding: 40px 0 60px; } }

.eyebrow {
  display: inline-block; background: #fff; color: var(--sun-deep);
  font-weight: 900; font-size: 14px; letter-spacing: .02em;
  padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow); margin-bottom: 20px;
}
.hero h1 { font-size: clamp(34px, 5.6vw, 62px); }
.hero h1 .accent { color: var(--orange); }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); margin: 18px 0 30px; max-width: 30em; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art { position: relative; min-height: 300px; display: grid; place-items: center; }
.sun-art { width: min(340px, 80vw); height: auto; }
.sun-art .ray { transform-origin: 160px 160px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Мягкие цветные пятна на фоне — вместо картинок, чтобы не тянуть вес */
.blob {
  position: absolute; border-radius: 50%; filter: blur(46px); opacity: .5;
  z-index: -1; pointer-events: none;
}
.blob.a { width: 340px; height: 340px; background: #ffe0a3; top: -90px; right: -60px; }
.blob.b { width: 300px; height: 300px; background: #cdeafd; bottom: -110px; left: -80px; }

/* ------------------------------------------------------------ секции */

section { padding: 64px 0; position: relative; }
section > .wrap > h2 { font-size: clamp(27px, 3.6vw, 40px); margin-bottom: 10px; }
section > .wrap > .sub { color: var(--ink-soft); margin: 0 0 34px; font-size: 18px; }

.band { background: #fff; }
.band.sky-band { background: linear-gradient(180deg, #eef8ff, #fffaf0); }

/* Волна между секциями */
.wave { display: block; width: 100%; height: 48px; }

/* ------------------------------------------------------------ карточки */

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

.card {
  background: var(--card); border-radius: var(--r-lg); padding: 26px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); margin: 0; font-size: 16px; }

.emoji {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  font-size: 27px; margin-bottom: 14px;
}
.e1 { background: #fff1cf; } .e2 { background: #dff3ff; }
.e3 { background: #ffe1e6; } .e4 { background: #dcf7ec; } .e5 { background: #eae5ff; }

/* --------------------------------------------------------------- прайс */

.price-group { margin-bottom: 30px; }
.price-group h3 {
  font-size: 21px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.price-group h3::after { content: ''; flex: 1; height: 2px; background: var(--line); border-radius: 2px; }

.price-list { display: grid; gap: 10px; }
.price-row {
  display: flex; align-items: baseline; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 15px 20px;
}
.price-row .nm { font-weight: 700; }
.price-row .dur { color: var(--ink-soft); font-size: 15px; white-space: nowrap; }
.price-row .dots { flex: 1; border-bottom: 2px dotted #e3d8c4; transform: translateY(-4px); min-width: 20px; }
.price-row .pr {
  font-family: 'Comfortaa', sans-serif; font-weight: 700;
  font-size: 19px; color: var(--orange); white-space: nowrap;
}
@media (max-width: 560px) {
  .price-row { flex-wrap: wrap; gap: 4px 12px; }
  .price-row .dots { display: none; }
  .price-row .pr { margin-left: auto; }
}

/* ------------------------------------------------------------- мастера */

.master-card { text-align: center; }
.master-ava {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center;
  font-family: 'Comfortaa', sans-serif; font-weight: 700; font-size: 30px; color: #fff;
}

/* ------------------------------------------------------------- филиалы */

.branch-card { display: flex; flex-direction: column; gap: 10px; }
.branch-card .addr { color: var(--ink-soft); }
.branch-card .hours { font-size: 15px; color: var(--ink-soft); }
.branch-card .soon {
  display: inline-block; background: #fff1cf; color: var(--sun-deep);
  font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 999px; align-self: flex-start;
}

/* ---------------------------------------------------------------- CTA */

.cta-box {
  background: linear-gradient(135deg, var(--grape), #5a49b8);
  color: #fff; border-radius: var(--r-lg); padding: 48px 40px; text-align: center;
  box-shadow: var(--shadow-lift);
}
.cta-box h2 { color: #fff; font-size: clamp(25px, 3.4vw, 36px); }
.cta-box p { color: #e4dffb; margin: 12px 0 26px; font-size: 18px; }

/* ------------------------------------------------------------- подвал */

footer.bottom { background: #fff; border-top: 1px solid var(--line); padding: 46px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
footer.bottom h4 { font-family: 'Comfortaa', sans-serif; font-size: 16px; margin: 0 0 12px; }
footer.bottom ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer.bottom a { color: var(--ink-soft); text-decoration: none; }
footer.bottom a:hover { color: var(--orange); }
.foot-note {
  margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--ink-soft); font-size: 14px;
}
.staff-link { font-weight: 700; }

/* --------------------------------------------------------- cookie-плашка */

.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-lift); padding: 16px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  max-width: 760px; margin-inline: auto; font-size: 15px;
}
.cookie p { margin: 0; flex: 1; min-width: 240px; color: var(--ink-soft); }
/* Атрибут hidden даёт display:none из таблицы браузера, а наше display:flex
   выше по приоритету и перебивает его — без этой строки плашка не прячется. */
.cookie[hidden] { display: none; }

.empty-note { color: var(--ink-soft); background: #fff; border: 1px dashed var(--line);
  border-radius: var(--r-md); padding: 26px; text-align: center; }

/* ------------------------------------------------------------- запись */

.booking {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow);
}
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .book-grid { grid-template-columns: 1fr; } }

.booking .field { display: flex; flex-direction: column; gap: 6px; }
.booking label { font-size: 14px; color: var(--ink-soft); font-weight: 700; }
.booking .req { color: var(--coral); }
.booking input, .booking select, .booking textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 2px solid var(--line); border-radius: 12px;
  padding: 12px 14px; min-height: 48px; width: 100%;
}
.booking input:focus, .booking select:focus, .booking textarea:focus {
  outline: none; border-color: var(--sun-deep);
}
.booking textarea { min-height: 62px; resize: vertical; }

/* Ловушка для роботов: убрана с экрана, но не display:none —
   часть ботов пропускает скрытые таким образом поля. */
.trap {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
}

.times { display: flex; flex-wrap: wrap; gap: 8px; min-height: 48px; align-items: center; }
.times button {
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  background: #fff; color: var(--ink); border: 2px solid var(--line);
  border-radius: 12px; padding: 10px 16px; min-height: 44px;
}
.times button:hover { border-color: var(--sun); }
.times button[aria-pressed="true"] {
  background: var(--sun-deep); color: #fff; border-color: var(--sun-deep);
}
.times .muted { color: var(--ink-soft); font-size: 15px; }

.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px;
  font-weight: 400 !important; font-size: 15px; color: var(--ink-soft); cursor: pointer; }
.consent input { width: 20px; height: 20px; min-height: 20px; flex: 0 0 auto; margin-top: 2px; }
.consent a { color: var(--orange); }

.book-error {
  margin-top: 14px; background: #fff0f1; color: #b23a3a;
  border-radius: 12px; padding: 12px 16px; font-weight: 600;
}

.book-done {
  background: var(--card); border: 2px solid var(--mint); border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--shadow); text-align: center;
}
.book-done .tick { font-size: 44px; line-height: 1; }
.book-done h3 { font-size: 24px; margin: 12px 0 6px; }
.book-done dl { margin: 20px auto 0; max-width: 360px; text-align: left; }
.book-done dl div { display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid var(--line); }
.book-done dl div:last-child { border-bottom: 0; }
.book-done dt { color: var(--ink-soft); }
.book-done dd { margin: 0; font-weight: 700; text-align: right; }
