:root {
  --teal: #0797a8;
  --teal-dark: #067182;
  --coral: #ee6f57;
  --coral-dark: #d95f4a;
  --honey: #f5bd52;
  --ink: #182328;
  --muted: #607075;
  --paper: #fffaf1;
  --soft: #f4f6f4;
  --line: rgba(24, 35, 40, 0.12);
  --shadow: 0 22px 60px rgba(24, 35, 40, 0.14);
  --shadow-hover: 0 24px 52px rgba(24, 35, 40, 0.16);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

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

a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: rgba(7, 151, 168, 0.16);
}

:focus-visible {
  outline: 3px solid rgba(245, 189, 82, 0.72);
  outline-offset: 4px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 64px);
  background: rgba(255, 250, 241, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: var(--muted);
  font-size: 15px;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 2px;
  transition: color 180ms ease;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  background: var(--coral);
  border-radius: 999px;
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--teal-dark);
}

.nav a:hover::after,
.nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(7, 151, 168, 0.24);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.header-phone:hover {
  color: var(--teal-dark);
  background: rgba(7, 151, 168, 0.08);
  border-color: rgba(7, 151, 168, 0.42);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  position: absolute;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  background: #123137;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 49, 55, 0.92) 0%, rgba(18, 49, 55, 0.72) 36%, rgba(18, 49, 55, 0.08) 74%),
    url("assets/hero-studio.png") center right / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(760px, 100%);
  padding: clamp(72px, 10vw, 120px) clamp(20px, 5vw, 76px);
  color: #fff;
}

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

.hero .eyebrow {
  color: var(--honey);
}

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

h1 {
  max-width: 620px;
  margin-bottom: 20px;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.15;
}

.lead {
  max-width: 650px;
  margin-bottom: 30px;
  font-size: clamp(19px, 2.2vw, 26px);
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button:active {
  transform: translateY(0);
}

.button.primary {
  color: #fff;
  background: var(--coral);
  box-shadow: 0 16px 36px rgba(238, 111, 87, 0.32);
}

.button.primary:hover {
  background: var(--coral-dark);
  box-shadow: 0 20px 42px rgba(238, 111, 87, 0.42);
}

.button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.button.ghost:hover {
  border-color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.16);
}

.button.light {
  margin-top: 14px;
  color: var(--ink);
  background: #fff;
}

.button.light:hover {
  background: var(--honey);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 14px;
  max-width: 700px;
  margin: 0;
}

.hero-facts a {
  display: block;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.hero-facts a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.16);
}

.hero-facts dt {
  margin-bottom: 4px;
  font-size: 24px;
  font-weight: 900;
}

.hero-facts dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.section {
  padding: clamp(70px, 9vw, 120px) clamp(20px, 5vw, 76px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(260px, 0.72fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: end;
  background: #fff;
}

.intro-side {
  align-self: end;
}

.intro-text {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 22px;
}

.directions {
  background: var(--soft);
}

.section-copy {
  max-width: 860px;
  margin-bottom: 38px;
}

.section-copy.with-action {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.section-copy.with-action h2 {
  max-width: 860px;
}

.text-link,
.section-action,
.card a,
.format a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-dark);
  font-weight: 800;
}

.text-link::after,
.section-action::after,
.card a::after,
.format a::after {
  content: ">";
  transition: transform 180ms ease;
}

.text-link:hover::after,
.section-action:hover::after,
.card:hover a::after,
.format:hover a::after {
  transform: translateX(4px);
}

.section-action {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(7, 151, 168, 0.24);
  border-radius: 8px;
  background: rgba(7, 151, 168, 0.06);
  white-space: nowrap;
}

.section-action:hover {
  background: rgba(7, 151, 168, 0.12);
}

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

.card,
.format {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(24, 35, 40, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card:hover,
.format:hover {
  transform: translateY(-4px);
  border-color: rgba(7, 151, 168, 0.28);
  box-shadow: var(--shadow-hover);
}

.card-mark {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--teal-dark);
  font-weight: 900;
}

.card p,
.format p,
.teacher-copy p,
.signup-copy p,
.footer p {
  color: var(--muted);
}

.card p,
.format p {
  margin-bottom: 24px;
}

.teacher {
  padding: clamp(70px, 9vw, 120px) clamp(20px, 5vw, 76px);
  background: #123137;
}

.teacher-panel {
  display: grid;
  grid-template-columns: minmax(180px, 330px) minmax(0, 760px);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.teacher-logo {
  padding: 26px;
  border-radius: 8px;
  background: #e7e5df;
  box-shadow: var(--shadow);
  transition: transform 180ms ease;
}

.teacher-logo:hover {
  transform: rotate(-1deg) scale(1.015);
}

.teacher-logo img {
  border-radius: 8px;
}

.teacher-copy {
  color: #fff;
}

.teacher-copy p {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.formats {
  background: #fff;
}

.format.accent {
  color: #fff;
  background: var(--teal-dark);
}

.format.accent p {
  color: rgba(255, 255, 255, 0.82);
}

.format.accent a {
  color: #fff;
}

.quote {
  padding: clamp(70px, 9vw, 120px) clamp(20px, 5vw, 76px);
  color: #fff;
  background: linear-gradient(135deg, #ee6f57 0%, #c65340 100%);
}

.quote blockquote {
  max-width: 1000px;
  margin: 0 auto;
  font-size: clamp(30px, 4vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.signup {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 520px);
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(70px, 9vw, 120px) clamp(20px, 5vw, 76px);
  background: var(--paper);
}

.big-phone {
  display: inline-flex;
  margin-top: 18px;
  color: var(--teal-dark);
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 900;
  line-height: 1;
  transition: color 180ms ease, transform 180ms ease;
}

.big-phone:hover {
  color: var(--coral);
  transform: translateX(3px);
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 520px;
  margin-top: 28px;
}

.contact-link {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 4px 12px;
  min-height: 74px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(24, 35, 40, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.contact-link:hover {
  transform: translateY(-2px);
  border-color: rgba(7, 151, 168, 0.42);
  box-shadow: var(--shadow-hover);
}

.contact-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-row: span 2;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  font-size: 11px;
  font-weight: 900;
}

.contact-link strong {
  align-self: end;
  line-height: 1;
}

.contact-link small {
  align-self: start;
  color: var(--muted);
}

.contact-link.call span {
  background: var(--coral);
}

.contact-link.whatsapp span {
  background: #22a86b;
}

.contact-link.telegram span {
  background: #249bd7;
}

.contact-link.max span {
  background: #111820;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.form-head h3 {
  margin-bottom: 6px;
}

.form-head p,
.form-note,
.form-error {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-error {
  display: none;
  padding: 10px 12px;
  border: 1px solid rgba(238, 111, 87, 0.34);
  border-radius: 8px;
  color: #a83e2d;
  background: rgba(238, 111, 87, 0.09);
  font-weight: 700;
}

.contact-form.was-validated .form-error:not(:empty) {
  display: block;
}

.contact-form.was-validated input:invalid,
.contact-form.was-validated select:invalid,
.contact-form.was-validated textarea:invalid {
  border-color: rgba(238, 111, 87, 0.72);
  background: rgba(238, 111, 87, 0.06);
}

.contact-form.was-validated .consent input:invalid + span {
  color: #a83e2d;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

label b,
.form-note b {
  color: var(--coral);
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfbfa;
  font: inherit;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

textarea {
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(7, 151, 168, 0.34);
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(7, 151, 168, 0.22);
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 10px 24px rgba(7, 151, 168, 0.1);
}

.consent {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.consent input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--teal-dark);
}

.consent span {
  cursor: pointer;
}

.consent:hover {
  color: var(--ink);
}

.submit-button.is-sending {
  pointer-events: none;
  opacity: 0.78;
}

.footer {
  display: grid;
  gap: 34px;
  padding: 54px clamp(20px, 5vw, 76px) 28px;
  color: #fff;
  background: var(--ink);
}

.footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: clamp(24px, 4vw, 58px);
  align-items: start;
}

.footer .brand {
  margin-bottom: 16px;
}

.footer .brand img {
  width: 44px;
  height: 44px;
}

.footer-brand p {
  max-width: 310px;
}

.footer-column {
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.74);
  font-style: normal;
}

.footer-column h3 {
  margin-bottom: 4px;
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
}

.footer-column a,
.footer-column span {
  color: rgba(255, 255, 255, 0.74);
}

.footer-column a {
  transition: color 180ms ease, transform 180ms ease;
}

.footer-column a:hover {
  color: var(--honey);
  transform: translateX(3px);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 16px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: var(--honey);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.footer-legal a:hover {
  color: #fff;
}

.mobile-cta {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 45;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(24, 35, 40, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.94);
  box-shadow: 0 18px 46px rgba(24, 35, 40, 0.18);
  backdrop-filter: blur(18px);
}

.mobile-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  color: #fff;
  background: var(--teal-dark);
  font-size: 14px;
  font-weight: 900;
}

.mobile-cta a:nth-child(2) {
  background: #22a86b;
}

.mobile-cta a:nth-child(3) {
  background: var(--coral);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: 76px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 250, 241, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .menu-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    min-height: 48px;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--ink);
  }

  .nav a:hover,
  .nav a.is-active {
    background: rgba(7, 151, 168, 0.08);
  }

  .nav a::after {
    display: none;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(18, 49, 55, 0.92) 0%, rgba(18, 49, 55, 0.74) 58%, rgba(18, 49, 55, 0.5) 100%),
      url("assets/hero-studio.png") center / cover no-repeat;
  }

  .intro,
  .teacher-panel,
  .signup,
  .section-copy.with-action {
    display: grid;
    grid-template-columns: 1fr;
  }

  .section-action {
    justify-self: start;
  }

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 76px;
  }

  .site-header {
    min-height: 66px;
    gap: 10px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .header-phone {
    display: none;
  }

  .nav {
    top: 66px;
  }

  .hero {
    min-height: calc(100vh - 66px);
  }

  .hero-content {
    padding-top: 62px;
    padding-bottom: 48px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-facts,
  .contact-links,
  .cards-grid,
  .formats-grid {
    grid-template-columns: 1fr;
  }

  .hero-facts a,
  .card,
  .format,
  .contact-form {
    padding: 22px;
  }

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

  .footer-main,
  .footer-bottom {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mobile-cta {
    display: grid;
  }
}
