:root {
  color-scheme: light;
  --ink: #24302b;
  --muted: #67736d;
  --paper: #fffdf7;
  --soft: #f4efe3;
  --line: #ddd5c3;
  --leaf: #2f765c;
  --leaf-dark: #1f5541;
  --sun: #f0b74f;
  --berry: #b8505d;
  --blue: #426f93;
  --shadow: 0 18px 50px rgba(36, 48, 43, 0.16);
  font-family:
    Inter,
    "Segoe UI",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

.page {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto 1fr;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 28, 23, 0.82), rgba(15, 28, 23, 0.34) 55%, rgba(15, 28, 23, 0.08)),
    linear-gradient(0deg, rgba(15, 28, 23, 0.3), rgba(15, 28, 23, 0));
  z-index: -1;
}

.hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(47, 118, 92, 0.2), rgba(184, 80, 93, 0.1)),
    url("/assets/photos/hero-kindergarten.jpg") center / cover no-repeat;
  z-index: -2;
}

.announcement {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: 42px;
  margin: 12px auto 0;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, rgba(47, 118, 92, 0.94), rgba(184, 80, 93, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  box-shadow: 0 10px 28px rgba(15, 28, 23, 0.16);
}

.announcement[hidden] {
  display: none;
}

.announcement p {
  grid-column: 2;
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
}

.announcement span:first-child {
  margin-right: 8px;
}

.announcement a {
  color: white;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.announcement__close {
  grid-column: 3;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: white;
  font: inherit;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.86;
}

.announcement__close:hover {
  opacity: 1;
}

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 24px;
  row-gap: 5px;
  color: white;
}

.brand {
  grid-column: 1;
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  width: 278px;
  min-height: 68px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.brand__logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 3px 10px rgba(15, 28, 23, 0.36));
}

.nav__links {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  color: rgba(255, 255, 255, 0.86);
}

.nav__phone {
  grid-column: 3;
  grid-row: 1;
  justify-self: center;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-weight: 700;
}

.nav__vk {
  grid-column: 3;
  grid-row: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
}

.nav__vk img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(15, 28, 23, 0.22);
}

.hero__content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0 120px;
  align-self: center;
  color: white;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--leaf);
}

.hero .eyebrow {
  color: #ffd484;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  width: min(780px, 100%);
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  font-size: 22px;
  line-height: 1.18;
}

.lead {
  max-width: 650px;
  font-size: clamp(19px, 2vw, 25px);
  color: rgba(255, 255, 255, 0.9);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}

.button--primary {
  background: var(--sun);
  color: #2c2415;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.button--map {
  width: fit-content;
  background: var(--leaf);
  color: white;
}

.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  background: #fff9ed;
}

.trust div {
  padding: 28px;
  border-right: 1px solid var(--line);
}

.trust div:last-child {
  border-right: 0;
}

.trust strong,
.trust span {
  display: block;
}

.trust strong {
  font-size: 27px;
  line-height: 1.1;
}

.trust span {
  margin-top: 8px;
  color: var(--muted);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.section__copy {
  max-width: 790px;
}

.section__copy p:not(.eyebrow) {
  font-size: 20px;
  color: var(--muted);
}

.intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.intro__points {
  display: grid;
  gap: 16px;
}

.intro__points article,
.program__grid article {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(36, 48, 43, 0.06);
}

.intro__points p,
.program__grid p {
  color: var(--muted);
  margin-bottom: 0;
}

.program {
  width: 100%;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
  background: #eef5ed;
}

.program__copy {
  max-width: 900px;
}

.program__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.program__grid article {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 216px;
}

.program__grid h3 {
  margin-bottom: 0;
  color: var(--leaf-dark);
}

.program__grid p {
  font-size: 16px;
  line-height: 1.55;
}

.program__wide {
  grid-column: 1 / -1;
  min-height: auto;
}

.day {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.timeline li {
  padding: 20px 24px;
  background: white;
  border-left: 6px solid var(--leaf);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(36, 48, 43, 0.06);
}

.timeline span {
  display: block;
  margin-bottom: 6px;
  color: var(--berry);
  font-weight: 800;
}

.gallery {
  width: 100%;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
  background: #fff9ed;
}

.gallery__frame {
  position: relative;
  max-height: 680px;
  margin-top: 36px;
  overflow: hidden;
}

.gallery__frame.is-expanded {
  max-height: none;
  overflow: visible;
  padding-bottom: 58px;
}

.gallery__grid {
  column-count: 7;
  column-gap: 8px;
}

.gallery__grid img {
  width: 100%;
  height: auto;
  margin: 0 0 8px;
  display: block;
  break-inside: avoid;
  border-radius: 8px;
}

.gallery__fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 190px;
  background: linear-gradient(180deg, rgba(255, 249, 237, 0), #fff9ed 72%);
  pointer-events: none;
}

.gallery__frame.is-expanded .gallery__fade {
  display: none;
}

.gallery__toggle {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 1;
  transform: translateX(-50%);
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--leaf-dark);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.gallery__frame.is-expanded .gallery__toggle {
  bottom: 6px;
}

.gallery__toggle-icon {
  font-size: 18px;
  line-height: 1;
}

.visit {
  width: min(1180px, calc(100% - 32px));
  margin: 92px auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  padding: 40px;
  background: var(--leaf-dark);
  color: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.visit .eyebrow {
  color: #ffd484;
}

.visit p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.form {
  display: grid;
  gap: 14px;
}

.form label {
  display: grid;
  gap: 7px;
}

.form span {
  font-weight: 700;
}

.form a {
  color: white;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.form__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form__status {
  min-height: 22px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.form__status[data-state="success"] {
  color: #ffe49f;
}

.form__status[data-state="error"] {
  color: #ffd2c9;
}

.form .button[disabled] {
  cursor: progress;
  opacity: 0.72;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  font: inherit;
}

.checkbox {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.checkbox input {
  width: 18px;
  min-height: 18px;
}

.route {
  padding-top: 18px;
}

.route__layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  margin-top: 34px;
}

.route__map,
.route__details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 30px rgba(36, 48, 43, 0.06);
}

.route__map {
  min-height: 420px;
}

.route__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.route__details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  padding: 30px;
}

.route__details p {
  color: var(--muted);
  font-size: 19px;
}

.license {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0 36px;
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--line);
}

.license__preview {
  display: block;
  width: min(522px, 100%);
  padding: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(36, 48, 43, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.license__preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(36, 48, 43, 0.16);
}

.license__preview img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer__nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  color: var(--leaf-dark);
  font-size: 15px;
}

.footer__nav a {
  color: inherit;
  font-weight: 400;
}

.footer__contacts {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 44px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.footer .eyebrow {
  margin-bottom: 8px;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.footer h2 {
  max-width: 520px;
  margin-bottom: 8px;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.2;
}

.footer p {
  margin-bottom: 0;
  font-size: 15px;
  font-weight: 400;
}

.footer__links {
  display: grid;
  gap: 7px;
  font-size: 16px;
  font-weight: 400;
  text-align: right;
}

.footer__links a {
  font-weight: 400;
}

.footer__legal {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 46px;
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
}

.footer__legal p {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
}

.footer__docs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 6px;
}

.footer__docs a {
  color: var(--leaf-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 72px;
}

.legal-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 8px 0 34px;
}

.legal-brand {
  width: 220px;
  display: block;
}

.legal-header__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--leaf-dark);
  font-size: 15px;
}

.legal-phone {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--leaf-dark);
  font-size: 15px;
}

.legal-content {
  max-width: 880px;
  padding: 46px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 38px rgba(36, 48, 43, 0.07);
}

.legal-content h1 {
  width: 100%;
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.03;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.legal-content h2 {
  margin: 34px 0 12px;
  font-size: 24px;
  line-height: 1.2;
}

.legal-content section:first-of-type h2 {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 17px;
}

.legal-content p {
  margin-bottom: 14px;
}

.legal-content ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal-content a {
  color: var(--leaf-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-meta {
  margin-bottom: 30px;
  color: var(--berry);
  font-size: 14px;
}

.cookie-consent {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 30;
  width: min(1180px, calc(100% - 32px));
  min-height: 58px;
  transform: translateX(-50%);
  padding: 12px 14px 12px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  background: linear-gradient(90deg, rgba(47, 118, 92, 0.96), rgba(184, 80, 93, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: white;
  box-shadow: 0 18px 44px rgba(15, 28, 23, 0.22);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent p {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.cookie-consent a {
  color: white;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cookie-consent__button {
  min-width: 108px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cookie-consent__button:hover {
  background: rgba(255, 255, 255, 0.24);
}

@media (max-width: 900px) {
  .nav__links {
    display: none;
  }

  .trust,
  .intro,
  .day,
  .route__layout,
  .visit {
    grid-template-columns: 1fr;
  }

  .trust {
    grid-template-columns: repeat(2, 1fr);
  }

  .program__grid {
    grid-template-columns: 1fr;
  }

  .gallery__frame {
    max-height: 560px;
  }

  .gallery__grid {
    column-count: 4;
  }

  .footer__contacts {
    display: grid;
  }

  .footer__links {
    text-align: left;
  }

  .footer__legal {
    padding-bottom: 40px;
  }

  .legal-header {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 14px;
  }

  .legal-header__nav {
    justify-content: flex-start;
  }

  .legal-content {
    padding: 34px;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 86vh;
  }

  .hero__content {
    padding: 54px 0 84px;
  }

  .announcement {
    min-height: 48px;
    margin-top: 10px;
    grid-template-columns: 18px minmax(0, 1fr) 18px;
    gap: 8px;
    padding: 9px 10px;
  }

  .announcement p {
    font-size: 14px;
  }

  .announcement span:first-child {
    display: block;
    margin-right: 0;
  }

  .announcement__close {
    width: 18px;
    height: 18px;
    font-size: 17px;
  }

  .nav {
    column-gap: 12px;
  }

  .brand {
    width: min(200px, 48vw);
    min-height: 55px;
    padding: 0;
  }

  .nav__phone {
    padding: 9px 11px;
    font-size: 13px;
  }

  .nav__vk {
    gap: 6px;
    font-size: 12px;
  }

  .nav__vk img {
    width: 20px;
    height: 20px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 34px;
  }

  .trust,
  .program__grid {
    grid-template-columns: 1fr;
  }

  .gallery__frame {
    max-height: 500px;
  }

  .gallery__grid {
    column-count: 2;
  }

  .trust div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 66px 0;
  }

  .gallery__toggle {
    bottom: 22px;
  }

  .visit {
    margin: 66px auto;
    padding: 28px;
  }

  .route__map,
  .route__map iframe {
    min-height: 330px;
  }

  .license {
    padding: 54px 0 28px;
  }

  .footer__nav {
    justify-content: flex-start;
    gap: 14px;
    font-size: 14px;
  }

  .footer__contacts {
    padding: 28px 0 34px;
  }

  .footer__legal {
    font-size: 13px;
  }

  .footer__docs {
    display: grid;
    gap: 9px;
  }

  .legal-shell {
    padding-top: 16px;
  }

  .legal-brand {
    width: min(190px, 62vw);
  }

  .legal-header__nav {
    gap: 12px;
    font-size: 14px;
  }

  .legal-content {
    padding: 26px 20px;
  }

  .legal-content h1 {
    font-size: 34px;
  }

  .legal-content h2 {
    font-size: 22px;
  }

  .legal-content p,
  .legal-content li {
    font-size: 15px;
  }

  .cookie-consent {
    bottom: 10px;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .cookie-consent__button {
    width: 100%;
  }
}


@media (max-width: 420px) {
  .nav__vk span {
    display: none;
  }
}
