:root {
  --cyan: #70c6cc;
  --cyan-deep: #1d7e87;
  --yellow: #fcee24;
  --lemon: #fff600;
  --blue-soft: #c0d9f0;
  --ink: #111111;
  --muted: #555555;
  --white: #ffffff;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Roboto, Arial, sans-serif;
  line-height: 1.45;
  background: var(--white);
}

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

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  max-width: 760px;
}

.center {
  text-align: center;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 16px 44px;
  color: var(--white);
  background: linear-gradient(to bottom, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0));
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}

.site-header.scrolled,
.site-header.open {
  color: var(--ink);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .08);
}

.logo img {
  width: 150px;
  max-height: 80px;
  object-fit: contain;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.header-contact {
  display: grid;
  gap: 2px;
  max-width: 260px;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.header-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 30px;
  border: 0;
  border-radius: 8px;
  font: 700 15px/1.2 Roboto, Arial, sans-serif;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.header-button {
  min-height: 42px;
  color: #000000;
  background: var(--white);
  border-radius: 8px;
}

.site-header.scrolled .header-button,
.site-header.open .header-button {
  background: var(--yellow);
}

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

.button-yellow {
  color: #000000;
  background: var(--yellow);
}

.button-dark {
  color: var(--white);
  background: #000000;
}

.button-white {
  color: #000000;
  background: var(--white);
}

.button-blue {
  color: var(--white);
  background: var(--cyan);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #000000;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  color: var(--white);
  background: linear-gradient(90deg, rgba(0, 0, 0, .44), rgba(0, 0, 0, .08)), url("../img/hero.jpg") center / cover fixed;
}

.hero-content {
  width: min(860px, calc(100% - 56px));
  margin-left: max(28px, calc((100vw - var(--max)) / 2));
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 20px;
  max-width: 760px;
  font-size: 86px;
  line-height: .98;
  font-weight: 700;
}

h2 {
  margin-bottom: 24px;
  font-size: 52px;
  line-height: 1.05;
  font-weight: 700;
  text-transform: uppercase;
}

h3 {
  font-size: 22px;
}

.hero-line {
  margin-bottom: 34px;
  color: var(--yellow);
  font-size: 40px;
  font-weight: 700;
}

.section-blue {
  padding: 135px 0 150px;
  background: var(--cyan);
}

.trial p,
.quick p,
.section-head p {
  font-size: 22px;
}

.phone-large {
  display: inline-block;
  margin: 0 0 28px;
  font-size: 22px;
  font-weight: 700;
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  margin: 16px auto 0;
  text-align: left;
}

.lead-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.lead-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  font: 400 16px Roboto, Arial, sans-serif;
  background: var(--white);
}

.lead-form .button {
  align-self: end;
  min-height: 54px;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(0, 0, 0, .68);
  font-size: 13px !important;
  text-align: center;
}

.ratings {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 30px 20px;
  background: var(--lemon);
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 50px;
  padding: 8px 18px;
  color: var(--white);
  border-radius: 8px;
  background: #111111;
  font-size: 14px;
  font-weight: 700;
}

.rating-pill.light {
  color: #111111;
  background: var(--white);
}

.quick {
  min-height: 60vh;
  color: var(--white);
  background: url("../img/quick-booking.jpg") center / cover;
}

.quick-overlay {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 90px 0;
  background: linear-gradient(to bottom, rgba(112, 198, 204, .9), rgba(29, 126, 135, .7));
}

.quick .button {
  margin-top: 8px;
}

.teachers,
.prices,
.gallery {
  padding: 135px 0;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 90px;
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.teacher-card {
  text-align: center;
}

.teacher-card img {
  width: 260px;
  height: 260px;
  margin: 0 auto 28px;
  border-radius: 50%;
  object-fit: cover;
}

.teacher-card h3 {
  margin-bottom: 8px;
}

.teacher-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.price-list {
  display: grid;
  gap: 0;
  max-width: 980px;
  margin: 0 auto;
}

.price-row {
  display: grid;
  grid-template-columns: 220px 1fr 150px;
  gap: 32px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid #dddddd;
}

.price-row:last-child {
  border-bottom: 1px solid #dddddd;
}

.price-row h3 {
  margin: 0;
  text-transform: uppercase;
}

.price-row p {
  margin: 0;
  color: #333333;
}

.price {
  text-align: right;
}

.price strong {
  display: block;
  font-size: 30px;
}

.price span {
  color: var(--muted);
  font-size: 13px;
}

.price-cta {
  margin-top: 56px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding-left: 10px;
  padding-right: 10px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.benefits {
  padding: 150px 0;
  background: var(--blue-soft);
}

.benefits .section-head {
  margin-bottom: 80px;
}

.benefits .section-head a {
  display: inline-block;
  margin-top: 10px;
  font-size: 22px;
  font-weight: 700;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 34px;
}

.benefit-grid article {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 0 18px;
}

.benefit-grid span {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  margin-top: 3px;
  border-radius: 50%;
  background: #e6eb90;
}

.benefit-grid h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.benefit-grid p {
  margin: 0;
  color: #333333;
}

.map-block {
  min-height: 400px;
  display: grid;
  place-items: center;
  padding: 40px;
  background:
    linear-gradient(90deg, rgba(229, 227, 223, .86), rgba(229, 227, 223, .58)),
    repeating-linear-gradient(0deg, transparent, transparent 58px, rgba(120, 120, 120, .16) 59px),
    repeating-linear-gradient(90deg, transparent, transparent 72px, rgba(120, 120, 120, .14) 73px),
    #e5e3df;
}

.map-pin {
  width: min(420px, 100%);
  padding: 26px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 50px rgba(0, 0, 0, .14);
  text-align: center;
}

.map-pin strong,
.map-pin span {
  display: block;
}

.map-pin strong {
  margin-bottom: 8px;
  font-size: 24px;
}

.footer {
  padding: 30px 0 60px;
  color: var(--white);
  background: #000000;
}

.footer img {
  width: 220px;
  margin: 0 auto 22px;
}

.footer p {
  margin-bottom: 10px;
}

.footer a {
  font-weight: 700;
}

.copyright,
.legal {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  color: #bcbcbc;
  font-size: 13px;
}

.sticky-call {
  position: fixed;
  z-index: 25;
  right: 18px;
  bottom: 18px;
  display: none;
  gap: 8px;
}

.sticky-call a {
  min-width: 104px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #000000;
  background: var(--yellow);
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    padding: 14px 24px;
  }

  .nav,
  .header-contact {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-header.open .nav,
  .site-header.open .header-contact {
    display: grid;
    grid-column: 1 / -1;
    justify-content: start;
    text-align: left;
  }

  .site-header.open .nav {
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    min-height: 92vh;
    background-attachment: scroll;
  }

  .hero-content {
    width: min(100% - 32px, 760px);
    margin: 0 auto;
  }

  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 40px;
  }

  .hero-line {
    font-size: 30px;
  }

  .section-blue,
  .teachers,
  .prices,
  .gallery,
  .benefits {
    padding-top: 82px;
    padding-bottom: 88px;
  }

  .lead-form,
  .teacher-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .ratings {
    flex-direction: column;
    align-items: center;
  }

  .section-head {
    margin-bottom: 48px;
  }

  .price-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .price {
    text-align: left;
  }

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

  .benefit-grid article {
    grid-template-columns: 34px 1fr;
  }

  .sticky-call {
    display: flex;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 12px;
    padding: 12px 14px;
  }

  .logo img {
    width: 112px;
  }

  .header-button {
    display: none;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 30px;
  }

  .trial p,
  .quick p,
  .section-head p {
    font-size: 18px;
  }

  .teacher-card img {
    width: 220px;
    height: 220px;
  }
}
