@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Nunito+Sans:wght@400;500;600;700;800&family=PT+Sans:wght@400;500;700&display=swap");

:root {
  --bg: #f7ead4;
  --paper: #fffaf0;
  --cream: #fff8e8;
  --site-bg:
    radial-gradient(circle at 9% 34%, rgba(214, 162, 58, .08) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 62%, rgba(36, 90, 22, .05) 0 2px, transparent 3px),
    linear-gradient(180deg, var(--cream) 0%, var(--bg) 100%);
  --site-bg-size: 120px 120px, 160px 160px, auto;
  --content-max: 1320px;
  --content-inline-gap: 112px;
  --menu-inline-gap: var(--content-inline-gap);
  --content-inline-gap-mobile: 28px;
  --green: #245a16;
  --button: #2f741b;
  --grass: #6ca72c;
  --gold: #d6a23a;
  --gold-soft: #e8d4a6;
  --text: #2b2b1f;
  --brown: #6f451d;
  --shadow: 0 16px 34px rgba(105, 69, 24, 0.13);
  --book-page: #fff8e8;
  --book-line: #d8b56d;
  --book-line-soft: #ecd9aa;
  --book-divider-height: 168px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", "Segoe UI", Calibri, Arial, sans-serif;
  --heading: "Nunito Sans", "Segoe UI", Calibri, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--site-bg);
  background-size: var(--site-bg-size);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

.container {
  width: min(var(--content-max), calc(100% - var(--content-inline-gap)));
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  padding: 0 28px;
  border: 1px solid var(--gold);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(72, 77, 23, 0.16);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(72, 77, 23, 0.2);
}

.btn-primary {
  background: linear-gradient(180deg, #367d20, #245f13);
  color: #fff;
}

.btn-light {
  background: rgba(255, 253, 246, 0.92);
  color: var(--green);
}

.btn-small {
  min-height: 52px;
  padding-inline: 24px;
}

.centered {
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  background: url("assets/hero.webp") center -75px / cover no-repeat;
  font-family: "PT Sans", Arial, sans-serif;
}

.topbar {
  position: absolute;
  z-index: 5;
  top: 38px;
  left: 50%;
  width: min(var(--content-max), calc(100% - var(--menu-inline-gap)));
  min-height: 91px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 293px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 0 18px;
  border: 1px solid var(--gold-soft);
  border-radius: 0 0 16px 16px;
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(55, 52, 21, .18);
  transition:
    top .32s ease,
    min-height .32s ease,
    padding .32s ease,
    border-radius .32s ease,
    background .32s ease,
    border-color .32s ease,
    box-shadow .32s ease;
}

.topbar::before,
.topbar::after {
  content: "";
  position: absolute;
  bottom: -8px;
  width: 58px;
  height: 18px;
  border-bottom: 1px solid var(--gold);
  pointer-events: none;
}

.topbar::before {
  left: 8px;
  border-left: 1px solid var(--gold);
  border-radius: 0 0 0 18px;
}

.topbar::after {
  right: 8px;
  border-right: 1px solid var(--gold);
  border-radius: 0 0 18px 0;
}

.topbar.is-sticky {
  position: fixed;
  top: 0;
}

.flying-bird {
  position: fixed;
  z-index: 12;
  top: 0;
  left: 0;
  width: clamp(38px, 3.8vw, 54px);
  height: auto;
  opacity: 0;
  pointer-events: none;
  transform: translate(-120px, 160px);
  transform-origin: 72% 72%;
  filter: drop-shadow(0 5px 8px rgba(43, 31, 11, .2));
  will-change: transform, opacity;
  transition: transform .42s cubic-bezier(.24, .72, .18, 1), opacity .24s ease, filter .24s ease;
}

.flying-bird.is-perched {
  opacity: 1;
  will-change: auto;
}

.flying-bird.is-away {
  opacity: 0;
  filter: drop-shadow(0 2px 4px rgba(43, 31, 11, .08));
  will-change: transform, opacity;
}

.brand {
  display: block;
  width: 293px;
  height: 82px;
  overflow: hidden;
  transition: width .32s ease, height .32s ease;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.menu-panel {
  display: contents;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: #19170d;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding-block: 8px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
}

.phone {
  color: var(--green);
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: var(--cream);
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--green);
}

@media (max-width: 1320px) {
  .topbar {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    left: 10px;
    right: 10px;
    width: auto;
    transform: none;
  }

  .brand {
    grid-column: 2;
    justify-self: center;
    width: 293px;
    height: 82px;
  }

  .menu-toggle {
    grid-column: 3;
    display: flex;
    justify-self: end;
  }

  .menu-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: none;
    border: 1px solid var(--gold-soft);
    border-radius: 14px;
    padding: 18px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .menu-panel.is-open {
    display: block;
  }

  .nav-links {
    position: static;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
  }

  .nav-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
  }

  .flying-bird {
    display: none;
  }
}

.hero-copy {
  position: relative;
  z-index: 2;
  isolation: isolate;
  width: min(590px, calc(100% - 80px));
  margin-left: max(72px, calc((100vw - 1240px) / 2));
  padding-top: 238px;
}

.hero-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 178px;
  right: -34px;
  bottom: -56px;
  left: -72px;
  border-radius: 44% 56% 52% 48% / 40% 44% 56% 60%;
  background:
    radial-gradient(ellipse at 42% 42%, rgba(255, 255, 255, .88) 0%, rgba(231, 247, 255, .8) 30%, rgba(218, 241, 255, .56) 52%, rgba(218, 241, 255, 0) 76%),
    radial-gradient(ellipse at 34% 62%, rgba(218, 241, 255, .42) 0%, rgba(218, 241, 255, 0) 70%);
  filter: blur(8px);
  pointer-events: none;
}

.hero-copy h1 {
  margin: 0 0 20px;
  color: var(--green);
  font-family: var(--serif);
  font-size: 78px;
  font-weight: 700;
  line-height: .92;
  letter-spacing: 0;
  text-shadow: 0 2px 0 rgba(255, 249, 235, .7);
}

.hero-kicker {
  position: relative;
  margin: 0 0 16px;
  color: #3d2a16;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
}

.hero-kicker::after {
  content: "";
  display: inline-block;
  width: 44px;
  height: 14px;
  margin-left: 16px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  clip-path: polygon(0 50%, 74% 43%, 100% 0, 84% 50%, 100% 100%, 74% 57%);
  opacity: .75;
}

.hero-text {
  margin: 0 0 34px;
  max-width: 500px;
  color: #3b2d1d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.56;
}

.hero-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.book-divider {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: var(--book-divider-height);
  pointer-events: none;
}

.book-divider img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.benefits {
  position: relative;
  z-index: 4;
  margin-top: -1px;
  padding: 24px 0 36px;
  background: var(--book-page);
}

.benefits::after {
  display: none;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
}

.benefit {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 16px;
  min-width: 0;
  min-height: 132px;
  align-items: center;
  padding: 0 32px;
  border-right: 0;
}

.benefit img {
  width: 108px;
  height: 108px;
  object-fit: cover;
  border-radius: 50%;
}

.benefit h3 {
  display: flex;
  min-height: 38px;
  align-items: center;
  margin: 0 0 7px;
  color: #3d2a16;
  font-family: var(--heading);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.benefit p {
  margin: 0;
  color: #2f2a20;
  font-size: 15.5px;
  line-height: 1.42;
}

.programs {
  padding: 28px 0 16px;
  background: var(--cream);
}

.section-shell {
  position: relative;
}

.decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.decor-left {
  left: -58px;
  top: 12px;
  width: 154px;
  transform: rotate(-4deg);
}

.decor-right {
  right: 18px;
  top: 18px;
  width: 84px;
  transform: rotate(20deg);
  opacity: .86;
}

.program-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(390px, .95fr);
  gap: 32px;
  align-items: stretch;
  padding: 18px 24px 24px;
  border-top: 1px solid var(--gold-soft);
  border-bottom: 1px solid var(--gold-soft);
  background: rgba(255, 253, 246, .42);
}

.groups-panel,
.classes-panel {
  padding: 0;
}

.classes-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-left: 30px;
  border-left: 1px solid var(--gold-soft);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}

.section-title span {
  width: 44px;
  height: 18px;
  background:
    radial-gradient(ellipse at 25% 50%, #6e9c25 0 35%, transparent 36%),
    radial-gradient(ellipse at 68% 50%, #8eaa35 0 32%, transparent 33%);
  border-bottom: 2px solid #6e9c25;
}

.section-title h2,
.info-card h2,
.visit-card h2,
.question-card h2,
.form-card h2 {
  margin: 0;
  color: var(--green);
  font-family: var(--heading);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-title h2 {
  font-size: 32px;
}

.classes-panel .section-title {
  gap: 10px;
}

.classes-panel .section-title span {
  width: 32px;
}

.classes-panel .section-title h2 {
  white-space: nowrap;
}

.group-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin-inline: auto;
}

.group-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 90px;
  overflow: hidden;
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  background: rgba(255, 253, 246, .88);
  box-shadow: 0 10px 22px rgba(105, 69, 24, .11);
}

.info-card,
.address-card,
.question-card,
.form-card {
  position: relative;
  border-radius: 16px;
  background: rgba(255, 253, 246, .92);
  box-shadow: var(--shadow);
}

.address-card {
  border: 1px solid var(--gold-soft);
}

.info-card,
.question-card,
.form-card {
  border: 0;
}

.group-photo {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  background: rgba(255, 248, 232, .9);
  box-shadow: none;
}

.group-card-body {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 90px;
  padding: 0 12px;
  text-align: center;
  border-top: 1px solid rgba(232, 212, 166, .7);
}

.group-card-body h3 {
  margin: 0;
  color: var(--green);
  font-family: var(--heading);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.12;
}

.group-card-body p {
  margin: 0;
  color: #372816;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.35;
}

.group-more {
  grid-column: 2;
  justify-self: center;
  margin-top: -2px;
}

.classes-more {
  align-self: center;
  margin-top: 10px;
}

.classes-content {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) 170px;
  align-items: stretch;
  gap: 14px;
  min-height: 0;
}

.classes-grid {
  display: grid;
  align-content: space-between;
  gap: 8px;
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin-inline: auto;
  overflow: visible;
  padding: 6px 0;
}

.class-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-align: left;
}

.class-card img {
  display: block;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  object-fit: contain;
  background: transparent;
}

.class-card h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin: 0;
  color: #372816;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.18;
  white-space: nowrap;
}

.classes-house {
  width: 100%;
  max-width: 178px;
  justify-self: end;
  align-self: end;
}

.cards-section {
  padding: 12px 0 20px;
  background: var(--site-bg);
  background-size: var(--site-bg-size);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.info-card {
  height: 356px;
  min-height: 0;
  padding: 25px 26px 22px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.info-card::before,
.question-card::before,
.form-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 1;
  background: url("assets/card-frame.svg") center / 100% 100% no-repeat;
  opacity: .95;
  pointer-events: none;
}

.info-card::before {
  inset: 0;
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  background: none;
  opacity: 1;
}

.question-card::before,
.form-card::before {
  inset: 0;
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  background: none;
  opacity: 1;
}

.info-card::after,
.question-card::after,
.form-card::after {
  display: none;
}

.info-card > *,
.question-card > *,
.form-card > * {
  position: relative;
  z-index: 2;
}

.info-card h2 {
  margin-bottom: 18px;
  text-align: center;
  font-size: 32px;
}

.schedule-list {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 6px;
  width: calc(100% - 132px);
}

.schedule-list div {
  display: grid;
  grid-template-columns: 22px 78px 1fr;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  color: #352918;
  font-size: 14px;
  line-height: 1.28;
}

.schedule-list img {
  width: 20px;
  height: 20px;
}

.schedule-list b {
  font-weight: 700;
}

.squirrel {
  position: absolute;
  right: 28px;
  bottom: 96px;
  width: 110px;
}

.price-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 260px);
  justify-content: center;
  gap: 0 18px;
}

.price-card h2 {
  grid-column: 1 / -1;
}

.wallet {
  width: 116px;
  align-self: center;
  justify-self: end;
}

.price-lines {
  display: grid;
  gap: 10px;
  width: min(100%, 260px);
}

.price-lines p {
  margin: 0;
  border-radius: 12px;
  padding: 9px 12px;
  color: #55341a;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.42;
}

.price-lines strong {
  color: #c9531e;
  font-family: var(--heading);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.matcapital {
  grid-column: 1 / -1;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: max-content;
  max-width: 100%;
  margin-top: 10px;
  border-radius: 14px;
  padding: 8px 12px;
}

.matcapital p {
  margin: 0;
  color: #4e3b24;
  text-align: center;
  font-size: 14px;
  line-height: 1.32;
}

.review-card {
  display: flex;
  flex-direction: column;
}

.review-card blockquote {
  margin: 0 auto 12px;
  max-width: 330px;
  color: #372816;
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.36;
}

.review-card cite {
  display: block;
  margin: 0 auto;
  max-width: 320px;
  color: #5d482b;
  font-family: var(--sans);
  font-style: normal;
  font-size: 15px;
  font-weight: 700;
}

.review-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
}

.review-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  background: #fffdf6;
  color: var(--green);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.dots {
  display: flex;
  gap: 9px;
}

.dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-soft);
}

.dots i.is-active {
  background: var(--gold);
}

.visit-section {
  position: relative;
  z-index: 3;
  overflow: visible;
  padding: 20px 0 18px;
  background: var(--site-bg);
  background-size: var(--site-bg-size);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1.38fr .54fr 1.18fr;
  gap: 24px;
  align-items: stretch;
  padding-top: 14px;
  border-top: 1px solid var(--gold-soft);
}

.visit-card {
  position: relative;
  min-height: 338px;
  padding: 28px 28px 28px 122px;
  background: transparent;
  border: 0;
  box-shadow: none;
  isolation: isolate;
}

.visit-card::before {
  display: none;
}

.visit-card::after {
  display: block;
  content: none;
}

.lower-terem {
  position: absolute;
  z-index: 4;
  left: -178px;
  bottom: -96px;
  width: 292px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0 62%, rgba(0, 0, 0, .9) 76%, rgba(0, 0, 0, .45) 91%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0 62%, rgba(0, 0, 0, .9) 76%, rgba(0, 0, 0, .45) 91%, transparent 100%);
  pointer-events: none;
}

.visit-card h2 {
  margin-bottom: 12px;
  font-size: 40px;
}

.visit-card h2,
.visit-card > p,
.address-grid {
  position: relative;
  z-index: 2;
}

.visit-card > p {
  margin: 0 0 18px;
  color: #4a3924;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
}

.address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.address-card {
  overflow: hidden;
  padding-bottom: 16px;
  text-align: center;
}

.address-card > img {
  width: 100%;
  aspect-ratio: 1.55 / 1;
  object-fit: cover;
  border-bottom: 1px solid var(--gold-soft);
}

.address-card h3 {
  margin: 12px 10px 0;
  color: #2d2519;
  font-family: var(--heading);
  font-size: 17px;
  font-weight: 800;
}

.address-card p {
  margin: 2px 10px 12px;
  color: #5d482b;
  font-size: 14.5px;
}

.address-card .btn {
  min-height: 36px;
  padding-inline: 15px;
  font-size: 13px;
}

.question-card,
.form-card {
  background: transparent;
  box-shadow: none;
}

.question-card {
  align-self: center;
  min-height: 214px;
  padding: 28px 20px 24px;
  text-align: center;
}

.question-card h2 {
  margin-bottom: 12px;
  font-size: 31px;
}

.question-card p {
  margin: 0 0 14px;
  color: #4b3a24;
  font-family: var(--sans);
  font-size: 16px;
}

.question-phone {
  display: block;
  margin-bottom: 16px;
  color: var(--green);
  font-family: var(--heading);
  font-size: 25px;
  font-weight: 700;
  white-space: nowrap;
}

.messengers {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.messengers img {
  width: 34px;
  height: 34px;
}

.form-card {
  min-height: 320px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 40px 30px 18px 34px;
}

.form-content {
  position: relative;
  z-index: 2;
}

.form-card h2 {
  margin-bottom: 8px;
  font-size: clamp(31px, 2vw, 34px);
}

.form-card p {
  margin: 0 0 20px;
  color: #4b3a24;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.42;
}

.tour-form {
  display: grid;
  gap: 11px;
}

.tour-form label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.tour-form input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--gold-soft);
  border-radius: 7px;
  padding: 0 16px;
  background: rgba(255, 253, 246, .96);
  color: var(--text);
  outline: none;
}

.tour-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214, 162, 58, .16);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.tour-form .btn {
  width: 100%;
  min-height: 43px;
  margin-top: 1px;
  border-radius: 7px;
}

.tour-form .btn:disabled {
  cursor: default;
  opacity: .78;
}

.form-card small {
  display: block;
  margin-top: 12px;
  color: #675137;
  text-align: center;
}

.form-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.form-status[data-state="error"] {
  color: #9b2f16;
}

.ink-feather {
  align-self: end;
  justify-self: end;
  width: 132px;
  margin-top: -18px;
  margin-bottom: -10px;
}

.section-title h2 {
  font-size: clamp(34px, 2.6vw, 42px);
}

.info-card h2,
.question-card h2 {
  font-size: clamp(30px, 2.15vw, 36px);
  line-height: 1.08;
}

.form-card h2 {
  font-size: clamp(31px, 2vw, 34px);
  line-height: 1.08;
}

.visit-card h2 {
  font-size: clamp(34px, 2.6vw, 40px);
  line-height: 1.08;
}

.benefit h3,
.group-card-body h3,
.class-card h3,
.address-card h3 {
  color: #332818;
  font-family: var(--heading);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.22;
}

.benefit h3 {
  font-size: 17px;
}

.benefit p,
.group-card-body p,
.schedule-list div,
.price-lines p,
.matcapital p,
.visit-card > p,
.address-card p,
.question-card p,
.form-card p,
.form-card small {
  font-family: var(--sans);
  letter-spacing: 0;
  line-height: 1.45;
}

.benefit p {
  color: #40382a;
  font-size: 15.5px;
}

.group-card-body h3 {
  color: var(--green);
  font-size: 18px;
}

.group-card-body p {
  font-size: 15px;
}

.class-card h3 {
  justify-content: flex-start;
  min-height: 0;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.22;
  white-space: nowrap;
}

.schedule-list div {
  grid-template-columns: 22px 92px minmax(0, 1fr);
  font-size: 14px;
  line-height: 1.28;
}

.schedule-list b {
  color: #3d2b17;
  font-weight: 700;
  white-space: nowrap;
}

.price-lines p {
  font-size: 15.5px;
  line-height: 1.42;
}

.price-lines strong {
  font-family: var(--heading);
  font-size: 30px;
  font-weight: 800;
}

.matcapital p {
  font-size: 14px;
  line-height: 1.32;
}

.review-card blockquote {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.36;
}

.review-card cite {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.address-card h3 {
  font-size: 17px;
}

.address-card p {
  font-size: 14.5px;
}

.question-phone {
  font-size: 26px;
  line-height: 1.1;
}

.tour-form input {
  font-size: 15px;
  line-height: 1.2;
}

.form-card small {
  font-size: 14px;
  line-height: 1.4;
}

.footer {
  position: relative;
  z-index: 2;
  min-height: 86px;
  background:
    linear-gradient(90deg, rgba(23, 75, 14, .96) 0%, rgba(31, 85, 17, .86) 24%, rgba(31, 85, 17, 0) 48%),
    linear-gradient(180deg, #2f6d1d 0%, #1f5511 100%);
  color: #fffdf6;
}

.footer::before {
  content: "";
  position: absolute;
  top: -42px;
  right: 0;
  left: 0;
  height: 42px;
  background: linear-gradient(to bottom, rgba(31, 85, 17, 0), rgba(31, 85, 17, .16) 46%, rgba(31, 85, 17, .42));
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(250px, 360px) 1fr;
  align-items: center;
  gap: 22px;
  padding-block: 11px;
}

.footer-brand {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding-left: 132px;
}

.footer-logo-link {
  display: block;
  width: 166px;
  max-width: 100%;
}

.footer-logo {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: .96;
}

.footer-brand small {
  color: rgba(255, 253, 246, .82);
  font-size: 10px;
  line-height: 1.1;
}

.footer-license {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  align-self: center;
  color: rgba(255, 253, 246, .94);
}

.footer-license img {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: contain;
  image-rendering: pixelated;
}

.footer-license p {
  margin: 0;
  max-width: 288px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.32;
}

.footer-license b {
  display: block;
  margin-top: 2px;
  color: #fffdf6;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.footer-contacts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.footer-contacts a,
.footer-contact-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
}

.footer-contacts a {
  transition: transform .2s ease, opacity .2s ease;
}

.footer-contacts a:hover {
  transform: translateY(-1px);
}

.footer-contacts img {
  display: block;
  width: 100%;
  height: 100%;
}

.socials {
  display: flex;
  gap: 14px;
}

.socials a {
  width: 36px;
  height: 36px;
}

.socials img {
  width: 100%;
  height: 100%;
}

@media (max-width: 1220px) {
  .topbar {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    left: 10px;
    right: 10px;
    width: auto;
    transform: none;
  }

  .brand {
    grid-column: 2;
    justify-self: center;
    width: 293px;
    height: 82px;
  }

  .menu-toggle {
    grid-column: 3;
    display: flex;
    justify-self: end;
  }

  .menu-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: none;
    border: 1px solid var(--gold-soft);
    border-radius: 14px;
    padding: 18px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .menu-panel.is-open {
    display: block;
  }

  .nav-links {
    position: static;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
  }

  .nav-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
  }

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

  .benefit:nth-child(2) {
    border-right: 0;
  }

  .benefit:nth-child(-n + 2) {
    border-bottom: 1px solid var(--gold-soft);
  }

  .program-layout {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 18px 20px 22px;
  }

  .classes-panel {
    padding-top: 22px;
    padding-left: 0;
    border-top: 1px solid var(--gold-soft);
    border-left: 0;
  }

  .classes-content {
    grid-template-columns: minmax(0, 1fr) 220px;
    max-width: 820px;
    margin-inline: auto;
  }

  .classes-grid {
    gap: 8px;
    width: 100%;
  }

  .class-card img {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .class-card h3 {
    min-height: 0;
    font-size: 15px;
  }

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

  .visit-card {
    padding-left: 132px;
  }

  .question-card {
    justify-self: center;
    width: min(360px, 100%);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 15px;
    padding: 18px 0;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-license {
    justify-content: center;
    text-align: left;
  }

  .footer-contacts {
    justify-content: center;
  }
}

@media (min-width: 921px) and (max-width: 1220px) {
  .info-grid {
    gap: 18px;
  }

  .info-card {
    height: 336px;
    padding: 22px 18px 18px;
  }

  .info-card h2 {
    margin-bottom: 14px;
    font-size: 28px;
  }

  .schedule-list {
    width: calc(100% - 116px);
    gap: 5px;
  }

  .schedule-list div {
    grid-template-columns: 18px 78px minmax(0, 1fr);
    gap: 5px;
    font-size: 12px;
  }

  .schedule-list img {
    width: 18px;
    height: 18px;
  }

  .squirrel {
    right: 16px;
    bottom: 70px;
    width: 96px;
  }

  .price-card {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 0 10px;
  }

  .wallet {
    width: 82px;
  }

  .price-lines {
    width: 100%;
    gap: 8px;
  }

  .price-lines p {
    padding: 8px 9px;
    font-size: 13px;
  }

  .price-lines strong {
    font-size: 20px;
  }

  .matcapital {
    width: 100%;
    justify-content: center;
    gap: 10px;
    padding: 7px 8px;
  }

  .matcapital p {
    font-size: 12px;
  }

  .review-card blockquote,
  .review-card cite {
    max-width: 100%;
  }

  .review-card blockquote {
    font-size: 15px;
    line-height: 1.45;
  }

  .review-card cite {
    font-size: 14px;
  }
}

@media (max-width: 920px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .classes-content {
    grid-template-columns: minmax(0, 1fr) 150px;
  }

  .info-card {
    height: auto;
  }

}

@media (max-width: 760px) {
  .container {
    width: calc(100% - var(--content-inline-gap-mobile));
  }

  .hero {
    height: 100svh;
    min-height: 680px;
    background-position: 73% -125px;
    background-size: auto calc(100% + 92px);
  }

  .topbar {
    top: 14px;
    left: 6px;
    right: 6px;
    width: auto;
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    gap: 10px;
    min-height: 68px;
    padding: 0 10px;
    border-radius: 0 0 14px 14px;
  }

  .brand {
    width: min(222px, calc(100vw - 96px));
    height: 62px;
  }

  .nav-actions {
    width: 100%;
    gap: 10px;
  }

  .nav-actions .btn {
    width: 100%;
  }

  .hero-copy {
    width: calc(100% - 34px);
    margin-left: 17px;
    padding-top: 166px;
  }

  .hero-copy::before {
    top: 126px;
    right: -18px;
    bottom: -32px;
    left: -18px;
    border-radius: 32px;
    background:
      radial-gradient(ellipse at 44% 42%, rgba(255, 255, 255, .82) 0%, rgba(231, 247, 255, .72) 38%, rgba(218, 241, 255, .4) 58%, rgba(218, 241, 255, 0) 82%);
    filter: blur(6px);
  }

  .hero-copy h1 {
    max-width: 430px;
    font-size: 50px;
  }

  .hero-kicker {
    font-size: 23px;
  }

  .hero-text {
    width: min(400px, 100%);
    padding: 12px 13px;
    border-radius: 12px;
    background: rgba(255, 253, 246, .72);
    font-size: 16px;
  }

  .hero-text br {
    display: none;
  }

  .hero-buttons {
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .book-divider {
    --book-divider-height: 132px;
  }

  .benefits {
    padding-top: 24px;
  }

  .benefits-grid,
  .group-cards,
  .address-grid {
    grid-template-columns: 1fr;
  }

  .benefit {
    grid-template-columns: 108px 1fr;
    min-height: 128px;
    padding: 12px 6px;
    border-right: 0;
    border-bottom: 1px solid var(--gold-soft);
  }

  .benefit:last-child {
    border-bottom: 0;
  }

  .benefit img {
    width: 99px;
    height: 99px;
  }

  .programs {
    padding-top: 28px;
  }

  .program-layout {
    padding: 18px 14px 22px;
  }

  .classes-content {
    grid-template-columns: 1fr;
  }

  .group-more {
    grid-column: 1;
  }

  .classes-house {
    width: 170px;
    justify-self: center;
  }

  .class-card h3 {
    min-height: auto;
    font-size: 16px;
  }

  .section-title h2 {
    font-size: 31px;
    text-align: center;
  }

  .section-title {
    gap: 10px;
  }

  .section-title span {
    width: 28px;
  }

  .decor-left,
  .decor-right {
    display: none;
  }

  .info-card {
    min-height: auto;
    padding: 26px 18px 24px;
  }

  .info-card h2 {
    font-size: 30px;
  }

  .schedule-list {
    width: 100%;
    padding-bottom: 132px;
  }

  .schedule-list div {
    grid-template-columns: 24px 96px minmax(0, 1fr);
    gap: 8px;
    font-size: 13px;
  }

  .squirrel {
    right: 50%;
    bottom: 22px;
    width: 114px;
    transform: translateX(50%);
  }

  .price-card {
    grid-template-columns: 1fr;
  }

  .wallet {
    width: 132px;
    margin: 0 auto 12px;
  }

  .price-lines strong {
    font-size: 28px;
  }

  .matcapital {
    width: 100%;
  }

  .visit-card {
    padding: 26px 0 0;
  }

  .lower-terem {
    position: static;
    width: 124px;
    margin-bottom: -12px;
  }

  .visit-card::after {
    display: none;
  }

  .visit-card h2 {
    font-size: 34px;
  }

  .question-phone {
    font-size: 22px;
  }

  .form-card {
    grid-template-columns: 1fr;
    padding: 42px 32px 18px;
  }

  .form-card h2 {
    font-size: 31px;
  }

  .ink-feather {
    width: 112px;
    justify-self: end;
    margin-top: -10px;
  }

  .footer-contacts {
    justify-content: center;
  }

  .footer-logo-link {
    width: 146px;
  }

  .footer-brand,
  .footer-license {
    transform: translateX(clamp(8px, 4vw, 18px));
  }

  .footer-license {
    flex-direction: column;
    gap: 7px;
    text-align: center;
  }

  .footer-license img {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  .footer-license b {
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .btn {
    padding-inline: 18px;
    white-space: normal;
    text-align: center;
  }

  .hero-copy h1 {
    font-size: 43px;
  }

  .schedule-list div {
    grid-template-columns: 24px 92px minmax(0, 1fr);
  }
}
