:root {
  --bg-main: #fffdf9;
  --text-main: #221f22;
  --text-secondary: #666066;
  --card-white: #ffffff;
  --border-soft: #e8e0da;
  --pink-main: #e25b86;
  --pink-dark: #be3660;
  --pink-light-bg: #ffeff6;
  --cream-block: #fdf7f0;
  --badge-warm: #fff4e2;
  --button-dark: #23191d;
  --button-text: #ffffff;
  --yellow-accent: #ffe785;
  --shadow-soft: 0 14px 30px rgba(80, 55, 65, 0.09);
  --shadow-card: 0 10px 24px rgba(80, 55, 65, 0.08);
  --container: min(1256px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  text-rendering: geometricPrecision;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(226, 91, 134, 0.42);
  outline-offset: 4px;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 34px 0;
}

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

h1,
h2,
h3,
.brand strong {
  font-family: "Inter", Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(26px, 3vw, 30px);
  line-height: 1.18;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, 0.92);
  border-bottom: 1px solid rgba(232, 224, 218, 0.56);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-size: 25px;
  line-height: 30px;
}

.brand small {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

/* зелёная точка «в сети» перед подписью «английский онлайн» в шапке */
.online-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #2fac66;
}

.brand-heart {
  width: 58px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(80, 55, 65, 0.07);
}

.brand-heart img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  transform: rotate(-2deg);
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 38px);
}

.main-nav a {
  color: #2e292c;
  font-size: 13px;
  font-weight: 800;
  line-height: 16px;
  text-transform: uppercase;
}

.main-nav a:hover {
  color: var(--pink-dark);
}

.header-cta {
  justify-self: end;
  min-width: 142px;
  padding: 13px 24px;
  border: 1px solid #fadce6;
  border-radius: 18px;
  background: #ffeef4;
  color: var(--button-dark);
  font-size: 14px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(226, 91, 134, 0.08);
}

.header-cta:hover {
  background: #ffe4ee;
  transform: translateY(-1px);
}

.main-nav-cta {
  display: none;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.menu-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 3px;
  display: block;
  border-radius: 999px;
  background: var(--text-main);
  transform-origin: center;
  transition:
    opacity 0.22s ease,
    transform 0.36s ease,
    box-shadow 0.25s ease;
}

.menu-toggle:hover span {
  box-shadow: 1px 1px 7px rgba(80, 55, 65, 0.18);
}

.menu-toggle span:nth-child(1) {
  transform: translate(-50%, -50%) translateY(-7px);
}

.menu-toggle span:nth-child(2) {
  transform: translate(-50%, -50%) scaleX(1);
}

.menu-toggle span:nth-child(3) {
  transform: translate(-50%, -50%) translateY(7px);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: translate(-50%, -50%) scaleX(0);
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.hero {
  padding-top: 52px;
  padding-bottom: 44px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 42px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hello-badge {
  width: fit-content;
  margin-bottom: 24px;
  padding: 8px 17px;
  border: 1px solid #f4e5cd;
  border-radius: 999px;
  background: var(--badge-warm);
  color: #3c3033;
  font-size: 14px;
  font-weight: 800;
  line-height: 18px;
  box-shadow: 0 7px 18px rgba(140, 90, 95, 0.08);
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(40px, 4vw, 58px);
  line-height: 1.14;
}

.pink-mark {
  position: relative;
  color: var(--pink-main);
  display: inline-block;
}

.pink-mark::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -8px;
  bottom: 3px;
  height: 8px;
  z-index: -1;
  border-radius: 999px;
  background: rgba(226, 91, 134, 0.34);
  transform: rotate(-2deg);
}

.hero-subtitle {
  max-width: 590px;
  margin-top: 24px;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 29px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  padding: 16px 28px;
  font-size: 14px;
  font-weight: 800;
  line-height: 18px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  border: 1px solid var(--button-dark);
  background: var(--button-dark);
  color: var(--button-text);
  box-shadow: 0 16px 26px rgba(35, 25, 29, 0.16);
}

.btn-primary:hover {
  background: #120d10;
}

.btn-secondary {
  border: 1px solid #b4aeae;
  background: #fff;
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: #7f787c;
  box-shadow: 0 12px 22px rgba(80, 55, 65, 0.08);
}

.cta-note {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 20px;
}

.hero-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.hero-benefits li {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 10px;
  align-items: center;
  align-content: start;
}

.hero-benefits strong,
.hero-benefits span:not(.benefit-icon) {
  grid-column: 2;
}

.hero-benefits strong {
  font-size: 15px;
  line-height: 20px;
}

.hero-benefits span:not(.benefit-icon) {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 16px;
}

.benefit-icon {
  grid-row: 1 / span 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 28px;
  line-height: 1;
}

.benefit-icon.heart {
  color: var(--pink-main);
}

.benefit-icon.sparkle,
.benefit-icon.star {
  color: #f0c94f;
}

.hero-visual {
  position: relative;
  min-height: 540px;
}

.hero-person {
  position: absolute;
  right: 70px;
  bottom: 20px;
  z-index: 3;
  width: min(470px, 78%);
  max-height: 560px;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 24px 22px rgba(80, 55, 65, 0.1));
}

.sticker {
  position: absolute;
  z-index: 4;
  pointer-events: none;
}

.sticker-flag {
  top: 72px;
  left: 56px;
  width: 98px;
  transform: rotate(-3deg);
}

.sticker-heart-face {
  top: 72px;
  right: 0;
  width: 58px;
  transform: rotate(4deg);
}

.sticker-heart-hand {
  top: 82px;
  right: 64px;
  width: 76px;
  transform: rotate(-2deg);
}

.sticker-paperclip {
  right: 56px;
  bottom: 146px;
  width: 50px;
  transform: rotate(2deg);
}

.hero-note {
  position: absolute;
  right: 0;
  bottom: 82px;
  z-index: 5;
  width: 184px;
  padding: 20px 18px;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: #fff;
  color: #443b3f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  box-shadow: var(--shadow-soft);
  transform: rotate(-2deg);
}

.soft-band {
  position: relative;
  border-radius: 28px;
  background: var(--cream-block);
}

.help-band {
  padding: 30px 36px 38px;
}

.help-band h2 {
  margin-bottom: 26px;
}

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

.decor-tape-left {
  top: -12px;
  left: -20px;
  width: 94px;
  transform: rotate(-7deg);
}

.decor-tape-right {
  top: -12px;
  right: -18px;
  width: 96px;
  transform: rotate(42deg);
}

.help-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.card {
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: var(--card-white);
  box-shadow: var(--shadow-card);
}

.help-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 16px;
  text-align: center;
}

.help-card img {
  width: 62px;
  height: 62px;
  justify-self: center;
  object-fit: contain;
}

.help-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 22px;
}

.help-card p {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 17px;
}

.section-wrap {
  position: relative;
}

.formats-section {
  padding-top: 34px;
}

.formats-section h2 {
  margin-bottom: 30px;
}

.decor-format-flower {
  right: 0;
  bottom: 58px;
  width: 76px;
  transform: rotate(4deg);
}

.formats-method {
  position: relative;
  z-index: 2;
  margin-bottom: 40px;
}

.formats-method-text {
  margin-bottom: 26px;
}

.formats-method-text p {
  color: #4b4448;
  font-family: "Inter", Arial, sans-serif;
  font-style: italic;
  font-size: 15px;
  line-height: 22px;
}

.formats-method-text p + p {
  margin-top: 14px;
}

.miro-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}

.miro-shot-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.miro-shot-btn img {
  width: 100%;
  height: auto;
}

.miro-zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(46, 34, 40, 0.66);
  color: #fff;
}

.formats-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.format-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.format-card > img,
.format-slider {
  width: 100%;
  height: 136px;
}

.format-card > img {
  object-fit: cover;
}

.format-card > img.format-mini-group-photo {
  object-fit: cover;
  background: #f7eee4;
}

.format-slider {
  position: relative;
  overflow: hidden;
  background: #f7eee4;
}

.format-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 700ms ease;
}

.format-slider img.is-active {
  opacity: 1;
}

.format-body {
  min-height: 254px;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 20px 18px;
}

.format-body h3 {
  min-height: 45px;
  font-size: 18px;
  line-height: 22px;
}

.format-body p {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 17px;
}

.price-row {
  margin-top: auto;
  padding-top: 16px;
  display: grid;
  gap: 2px;
}

.price-row strong {
  color: var(--text-main);
  font-size: 23px;
  font-weight: 900;
  line-height: 29px;
}

.price-row span {
  color: var(--pink-dark);
  font-size: 11px;
  font-weight: 800;
  line-height: 15px;
}

.mini-btn {
  width: fit-content;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--button-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 15px;
  transition: transform 160ms ease, background 160ms ease;
}

.mini-btn:hover {
  background: #120d10;
  transform: translateY(-1px);
}

.price-note {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 16px;
}

.about-band {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
  padding: 36px 64px 0 62px;
  overflow: hidden;
}

.about-image-wrap {
  position: relative;
  display: grid;
  align-items: end;
  align-self: end;
}

.about-image {
  position: relative;
  z-index: 3;
  justify-self: center;
  width: min(460px, 100%);
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 18px 18px rgba(80, 55, 65, 0.12));
}

.about-copy h2 {
  margin-bottom: 18px;
  text-align: left;
}

.about-copy > p {
  max-width: 610px;
  color: #4b4448;
  font-size: 15px;
  line-height: 22px;
}

.about-copy > p + p {
  margin-top: 14px;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.fact {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 2px 8px;
  align-items: center;
  align-content: start;
}

.fact span {
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  background: #fff;
  color: var(--pink-main);
  font-weight: 900;
}

.fact strong {
  font-size: 13px;
  line-height: 16px;
}

.fact small {
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 14px;
}

.cert-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.cert-shot-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #fff;
  cursor: zoom-in;
  box-shadow: 0 10px 22px rgba(80, 55, 65, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cert-shot-btn:nth-child(odd) {
  transform: rotate(-1.2deg);
}

.cert-shot-btn:nth-child(even) {
  transform: rotate(1.2deg);
}

.cert-shot-btn:hover,
.cert-shot-btn:focus-visible {
  transform: rotate(0) translateY(-4px);
  box-shadow: 0 16px 30px rgba(80, 55, 65, 0.16);
}

.cert-shot-btn img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
}

.cert-zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(46, 34, 40, 0.66);
  color: #fff;
}

.process-section h2 {
  margin-bottom: 32px;
}

.steps-list {
  --steps-line-y: 28px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps-list::before {
  content: "";
  position: absolute;
  left: calc(10% - 8px);
  right: calc(10% - 8px);
  top: var(--steps-line-y);
  border-top: 2px dashed #d5c9c1;
}

.steps-list li {
  position: relative;
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  text-align: center;
}

.step-icon {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  background: #fff;
  color: #7a5b62;
  font-size: 24px;
  box-shadow: 0 8px 18px rgba(80, 55, 65, 0.07);
}

.steps-list h3 {
  margin-top: 18px;
  font-size: 16px;
  line-height: 20px;
}

.steps-list p {
  max-width: 190px;
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 17px;
}

.reviews-section {
  padding-top: 40px;
}

.reviews-band {
  position: relative;
  border-radius: 28px;
  background: var(--cream-block);
  padding: 30px 64px 38px;
}

.reviews-band h2 {
  margin-bottom: 24px;
}

.reviews-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 280px;
  align-items: start;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.reviews-track::-webkit-scrollbar {
  display: none;
}

.reviews-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.reviews-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(190, 54, 96, 0.25);
  transition: background 160ms ease, transform 160ms ease;
}

.reviews-dot.is-active {
  background: var(--pink-dark);
  transform: scale(1.3);
}

.review-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: start;
}

.review-shot {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
}

.review-card.is-wide .review-shot {
  object-fit: contain;
  object-position: center;
}

.review-shot-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 10px;
  cursor: zoom-in;
}

.scroll-top {
  position: fixed;
  right: max(18px, calc((100vw - var(--container)) / 2 + 18px));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 45;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.scroll-top-icon {
  width: 100%;
  height: 100%;
  display: block;
  background: url("assets/arrow.png") center / contain no-repeat;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-contact {
  display: inline-flex;
  position: fixed;
  left: 16px;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 45;
  align-items: center;
  gap: 6px;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--pink-main);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(80, 55, 65, 0.14);
  transition: opacity 160ms ease, transform 160ms ease;
}

.floating-contact:hover {
  background: var(--pink-dark);
}

.floating-contact.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(46, 34, 40, 0.82);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: min(560px, 100%);
  max-height: 86vh;
  border-radius: 14px;
  background: #fff;
  /* жесты пинч/пан обрабатываем сами (script.js), браузеру их не отдаём */
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  transform-origin: center;
  will-change: transform;
}

.lightbox.is-wide .lightbox-img {
  max-width: min(1120px, 100%);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.lightbox-close::before,
.lightbox-close::after {
  content: "";
  grid-area: 1 / 1;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-main);
  transform: rotate(45deg);
}

.lightbox-close::after {
  transform: rotate(-45deg);
}

body.lightbox-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(46, 34, 40, 0.82);
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal-card {
  position: relative;
  width: min(340px, 100%);
  padding: 32px 24px 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.contact-modal-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.2;
}

.contact-modal-hint {
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 20px;
}

.contact-modal-close {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

/* крестик рисуется двумя линиями — центрируется точно, в отличие от символа × */
.contact-modal-close::before,
.contact-modal-close::after {
  content: "";
  grid-area: 1 / 1;
  width: 11px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--text-main);
  transform: rotate(45deg);
}

.contact-modal-close::after {
  transform: rotate(-45deg);
}

/* меньший отступ фокусной обводки, чтобы она не выходила за границы карточки */
.contact-modal-close:focus-visible {
  outline-offset: 1px;
}

.contact-modal-links {
  display: grid;
  gap: 12px;
}

.contact-modal-links[hidden] {
  display: none;
}

.contact-modal-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  min-width: 128px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #fff;
  color: var(--button-dark);
  font-size: 14px;
  font-weight: 800;
  line-height: 18px;
  box-shadow: 0 8px 20px rgba(80, 55, 65, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.contact-modal-link:hover {
  border-color: #d8cec2;
  box-shadow: 0 12px 22px rgba(80, 55, 65, 0.1);
  transform: translateY(-1px);
}

.contact-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.contact-modal-card.is-form-mode {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox — скролл остаётся, полоса просто не занимает место */
}

.contact-modal-card.is-form-mode::-webkit-scrollbar {
  display: none;
}

.contact-modal-form {
  text-align: left;
}

.contact-modal-form[hidden] {
  display: none;
}

.contact-modal-back {
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--button-dark);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.contact-modal-form-frame {
  display: block;
  width: 100%;
  /* реальная высота формы ~2200px при ширине 512px (7 вопросов) — держим iframe
     выше её (плюс запас на баннер «Сменить аккаунт» у залогиненных в Google),
     иначе у него появляется собственная прокрутка вдобавок к прокрутке карточки.
     На узких экранах форма выше — см. переопределение в @media 620px */
  min-height: 2350px;
  border: 0;
}

/* после сабмита Google Forms показывает короткую страницу подтверждения
   (у клиента свой текст подтверждения) — без уменьшения высоты под ней
   остаётся пустой «хвост» на 1950px; 500px — запас на кастомный текст */
.contact-modal-form-frame.is-submitted {
  min-height: 500px;
}

body.contact-modal-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

.carousel-arrow {
  position: absolute;
  top: 56%;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  background: #fff;
  color: var(--text-main);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(80, 55, 65, 0.08);
}

.carousel-arrow:hover {
  background: var(--pink-light-bg);
}

.carousel-arrow.prev {
  left: 18px;
}

.carousel-arrow.next {
  right: 18px;
}

.faq-section {
  padding-bottom: 24px;
}

.faq-section h2 {
  margin-bottom: 28px;
}

.decor-faq-flower {
  left: -22px;
  top: 16px;
  width: 64px;
  transform: rotate(-5deg);
}

.decor-faq-star {
  right: -54px;
  top: 82px;
  width: 52px;
  transform: rotate(6deg);
}

.faq-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 14px 56px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(80, 55, 65, 0.04);
}

.faq-item button {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border: 0;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  line-height: 16px;
}

.plus {
  flex: 0 0 auto;
  color: #342c30;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  transition: transform 160ms ease;
}

.faq-item.is-open .plus {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 180ms ease;
}

.faq-answer > p {
  overflow: hidden;
  padding: 0 18px 0;
  transition: padding-bottom 180ms ease;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 17px;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.is-open .faq-answer > p {
  padding-bottom: 16px;
}

.final-section {
  padding-top: 22px;
}

.final-cta {
  position: relative;
  min-height: 214px;
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(320px, 1.1fr) minmax(210px, 0.7fr);
  gap: 28px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #fadce6;
  border-radius: 24px;
  background: var(--pink-light-bg);
  padding: 30px 38px;
}

.final-photo {
  position: relative;
  align-self: stretch;
  min-height: 174px;
}

.final-photo > img {
  position: absolute;
  left: 54px;
  bottom: -44px;
  width: min(286px, 82%);
  height: 270px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 18px 18px rgba(80, 55, 65, 0.1));
}

.heart-tile {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: 68px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.heart-tile img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.final-copy h2 {
  text-align: left;
  font-size: clamp(28px, 3.2vw, 33px);
  line-height: 1.18;
}

.final-copy h2 span {
  font-size: clamp(25px, 2.8vw, 30px);
}

.final-copy p {
  max-width: 520px;
  margin-top: 14px;
  color: #5c5358;
  font-size: 15px;
  line-height: 22px;
}

.final-copy .btn {
  margin-top: 20px;
  min-height: 48px;
  padding: 14px 24px;
  font-size: 13px;
}

.paper-note {
  justify-self: end;
  width: min(250px, 100%);
  padding: 24px 20px;
  border: 1px solid #eadfd8;
  border-radius: 5px;
  background: #fff;
  color: #3f373b;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  box-shadow: 0 12px 24px rgba(80, 55, 65, 0.1);
  transform: rotate(2deg);
}

.paper-note::before {
  content: "";
  position: absolute;
  left: 30%;
  top: -26px;
  width: 86px;
  height: 44px;
  background: url("assets/sticker-beige-tape.png") center / contain no-repeat;
  transform: rotate(-6deg);
}

.site-footer {
  margin-top: 34px;
  background: #f8efe5;
}

.footer-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.footer-icon-instagram {
  background-image: url("assets/footer-icon-instagram.png");
}

.footer-icon-whatsapp {
  background-image: url("assets/footer-icon-whatsapp.png");
}

.footer-icon-telegram {
  background-image: url("assets/footer-icon-telegram.png");
}

.site-footer p {
  justify-self: end;
  padding-right: 78px; /* не заезжать под фикс-кнопку «наверх» */
  color: #5b5357;
  font-size: 12px;
  line-height: 16px;
  text-align: right;
}

.footer-policy {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-policy:hover {
  color: var(--pink-dark);
}

@media (max-width: 1180px) {
  :root {
    --container: min(100% - 36px, 1080px);
  }

  .header-inner {
    gap: 16px;
  }

  .main-nav {
    gap: 16px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1fr);
    gap: 24px;
  }

  .hero-person {
    right: 40px;
    width: min(440px, 82%);
  }

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

  /* 3 + 2: сетка из 6 колонок, карточка занимает 2, низ по центру */
  .help-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .help-card {
    grid-column: span 2;
  }

  .help-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .help-card:nth-child(5) {
    grid-column: 4 / span 2;
  }

  .format-card {
    min-height: 365px;
  }

  .about-band {
    grid-template-columns: 0.9fr 1.1fr;
    padding: 34px;
  }

  .reviews-track {
    grid-auto-columns: 280px;
  }
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
  }

  .header-inner {
    grid-template-columns: auto auto;
    min-height: 66px;
  }

  .brand-heart,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .main-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 78px;
    width: auto;
    justify-self: stretch;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(80, 55, 65, 0.16);
    overflow: hidden;
  }

  .menu-open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 17px 20px;
    border-bottom: 1px solid var(--border-soft);
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .main-nav a.main-nav-cta {
    display: block;
    margin: 14px 16px 16px;
    padding: 14px 20px;
    border: 1px solid #fadce6;
    border-radius: 14px;
    background: #ffeef4;
    color: var(--button-dark);
    text-align: center;
  }

  .hero {
    padding-top: 36px;
  }

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

  .hero h1 {
    font-size: clamp(35px, 8vw, 48px);
  }

  .hero-visual {
    min-height: 560px;
  }

  .hero-person {
    right: auto;
    left: 0;
    width: min(440px, 72vw);
    max-height: 100%;
    object-position: bottom left;
  }

  .hero-note {
    right: 5%;
  }

  .hero-benefits {
    grid-template-columns: 1fr;
    max-width: 460px;
  }

  .help-band {
    padding: 30px 20px;
  }

  .about-band {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cert-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .about-image {
    margin: 0 auto;
  }

  .about-copy h2,
  .final-copy h2 {
    text-align: center;
  }

  .about-copy > p {
    max-width: none;
  }

  .steps-list {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .steps-list::before {
    content: none;
  }

  .steps-list li {
    min-height: 94px;
    grid-template-columns: 56px 1fr;
    column-gap: 18px;
    justify-items: start;
    text-align: left;
  }

  .steps-list li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 27px;
    top: 47px;
    bottom: -65px;
    border-left: 2px dashed #d5c9c1;
  }

  .step-icon {
    grid-row: 1 / span 3;
    align-self: center;
  }

  .steps-list h3 {
    margin-top: 2px;
  }

  .steps-list p {
    max-width: none;
  }

  .reviews-band {
    padding: 28px 22px 34px;
  }

  .carousel-arrow {
    display: none;
  }

  .reviews-dots {
    display: flex;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .final-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .final-photo {
    min-height: 190px;
    order: 2;
  }

  .final-photo > img {
    left: 50%;
    transform: translateX(-50%);
    width: min(270px, 82%);
  }

  .heart-tile {
    /* max(0px, ...) — чтобы плитку не срезало краем карточки на экранах уже ~340px */
    left: max(0px, calc(50% - 156px));
  }

  .paper-note {
    justify-self: center;
    order: 3;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 24px 0;
    text-align: center;
  }

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

  .site-footer p {
    justify-self: center;
    padding-right: 0;
    text-align: center;
  }
}

@media (max-width: 620px) {
  :root {
    --container: min(100% - 28px, 560px);
  }

  /* на узкой ширине текст формы переносится и она выше: ~2400px при iframe
     366px, ~2510px при 336px (замеры с ошибкой валидации; баннер аккаунта уже
     внутри). Запас ~150px — на увеличенный шрифт у пользователя; больше не
     закладывать: пустой хвост с кнопкой «?» (Справка Google) выглядит как баг */
  .contact-modal-form-frame {
    min-height: 2560px;
  }

  .section {
    padding: 28px 0;
  }

  .brand strong {
    font-size: 21px;
    line-height: 26px;
  }

  .hello-badge {
    margin-bottom: 18px;
  }

  .hero h1 {
    font-size: clamp(32px, 10vw, 42px);
  }

  .hero-subtitle {
    font-size: 16px;
    line-height: 25px;
  }

  .button-row,
  .btn {
    width: 100%;
  }

  .button-row {
    gap: 12px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .hero-person {
    right: auto;
    left: 0;
    bottom: 10px;
    width: 80vw;
    max-height: 430px;
  }

  .sticker-flag {
    top: 54px;
    left: 22px;
    width: 82px;
  }

  .sticker-heart-face {
    top: 34px;
    right: 18px;
    width: 44px;
    transform: rotate(4deg);
  }

  .sticker-heart-hand {
    top: 220px;
    right: 72px;
    width: 58px;
    transform: rotate(-3deg);
  }

  .sticker-paperclip {
    display: none;
  }

  .hero-note {
    right: 6px;
    bottom: 46px;
    width: 154px;
    padding: 14px;
    font-size: 12px;
  }

  .help-grid,
  .formats-grid,
  .facts-grid,
  .miro-gallery {
    grid-template-columns: 1fr;
  }

  .help-card {
    min-height: 126px;
    display: grid;
    grid-template-columns: 68px 1fr;
    grid-column: auto;
    gap: 14px;
    align-items: center;
    padding: 22px;
    text-align: left;
  }

  .help-card:nth-child(4),
  .help-card:nth-child(5) {
    grid-column: auto;
  }

  .format-card > img,
  .format-slider {
    height: 150px;
  }

  .format-card {
    min-height: auto;
  }

  .about-band {
    padding: 28px 20px;
  }

  .about-image {
    width: min(340px, 100%);
  }

  .decor-format-flower,
  .decor-faq-flower,
  .decor-faq-star {
    opacity: 0.62;
    transform: scale(0.78);
  }

  .decor-faq-star {
    right: -28px;
  }

  .reviews-track {
    grid-auto-columns: minmax(244px, 88%);
  }

  .scroll-top {
    right: 16px;
    bottom: max(18px, env(safe-area-inset-bottom));
    width: 42px;
    height: 42px;
  }

  .scroll-top-icon {
    width: 100%;
    height: 100%;
  }

  .final-cta {
    padding: 28px 18px;
  }

  .paper-note {
    width: min(236px, 100%);
    font-size: 13px;
  }

  .footer-links {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .footer-links .contact-modal-link {
    min-width: 0;
    flex: 1 1 0;
    padding: 10px 8px;
    gap: 6px;
    font-size: 12px;
    white-space: nowrap;
  }

  .footer-links .contact-icon {
    width: 16px;
    height: 16px;
  }

  /* встроенная Google-форма: у неё есть свой нерезиновый инпут "Другое" (~200px),
     который вылезает за край и создаёт горизонтальную прокрутку при узкой ширине —
     отдаём ей почти весь экран, срезая паддинги модалки/карточки только в этом режиме */
  .contact-modal.is-form-mode {
    padding: 6px;
  }

  .contact-modal-card.is-form-mode {
    width: 100%;
    padding-left: 6px;
    padding-right: 6px;
  }
}

/* самые узкие телефоны (320px): форма ещё выше — ~2590px при iframe 296px */
@media (max-width: 340px) {
  .contact-modal-form-frame {
    min-height: 2660px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  /* Speaking Club: keep the gentle opacity crossfade (fade only, no movement) */
  .format-slider img {
    transition-duration: 700ms !important;
  }

  .menu-toggle span {
    transition-duration: 0.22s, 0.36s, 0.25s !important;
  }
}
