:root {
  --black: #171717;
  --ink: #383c38;
  --green: #2ab263;
  --green-soft: #64b385;
  --text: #8a8a8a;
  --text-mid: #6b6b6b;
  --text-mute: #9b9b9b;
  --border: #dfdfdf;
  --line: #d8e3db;
  --bg: #fafafa;
  --bg-hero: #f0f0f0;
  --bg-soft: #f4f4f4;
  --bg-faq: #efefef;
  --footer: #131313;
  --white: #fafafa;
  --error: #f30000;
  --tilda: "Tilda Sans", "TildaSans", sans-serif;
  --oswald: "Oswald", sans-serif;
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--tilda);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  min-width: 320px;
}

body.is-locked {
  overflow: hidden;
  padding-right: var(--scroll-lock-pad, 0px);
}

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

button,
input,
textarea {
  font-family: inherit;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.btn--green {
  background: var(--green);
  color: #fff;
  padding: 20px 35px;
}

.btn--green:hover {
  background: #239a55;
}

.btn--white {
  background: #fff;
  color: #000;
  padding: 20px 50px;
  box-shadow: 0 4px 21.1px rgba(55, 55, 55, 0.1);
}

.btn--white:hover {
  background: #f0f0f0;
}

.btn--wide {
  width: 100%;
  color: var(--ink);
}

.btn--icon {
  width: 56px;
  height: 56px;
  padding: 0;
  background: var(--green);
}

.btn--icon:hover {
  background: #239a55;
}

.btn--icon img {
  width: 20px;
  height: 20px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  transition: box-shadow 0.3s ease;
}

.header.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.header__inner {
  height: var(--header-h);
  padding: 10px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo__name {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.1;
  color: var(--ink);
}

.logo__divider {
  width: 1px;
  height: 18px;
  background: var(--green-soft);
}

.logo__role {
  font-size: 15px;
  line-height: 1;
  color: var(--green-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav a {
  font-size: 15px;
  line-height: 1;
  color: var(--ink);
  position: relative;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1.5px;
  background: var(--green);
  transition: width 0.25s ease;
}

.nav a:hover {
  color: var(--green);
}

.nav a:hover::after {
  width: 100%;
}

/* «Запросы» в шапке: выпадающее окно со страницами фобий (компонент
   «01 / Шапка», состояния «Закрыт» / «Открыт»). */
.nav-drop {
  position: relative;
}

.nav-drop__toggle {
  display: flex;
  align-items: center;
  gap: 0;
  width: 74px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  line-height: 1;
  color: var(--ink);
  transition: color 0.2s ease;
}

.nav-drop__toggle img {
  width: 12px;
  height: 12px;
  margin-left: auto;
  transition: transform 0.25s ease;
}

.nav-drop__toggle:hover,
.nav-drop.is-open .nav-drop__toggle {
  color: var(--green);
}

.nav-drop.is-open .nav-drop__toggle img {
  transform: rotate(180deg);
}

.nav-drop__menu {
  position: absolute;
  /* В макете окно на 8 px ниже шапки и на 2 px левее пункта. */
  top: calc(100% + (var(--header-h) - 15px) / 2 + 8px);
  left: -2px;
  z-index: 60;
  width: 360px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  border: 1px solid #efefef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  animation: navDropIn 0.22s ease;
}

.nav-drop__menu[hidden] {
  display: none;
}

@keyframes navDropIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.nav .nav-drop__link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 12px;
  transition: background-color 0.2s ease;
}

.nav .nav-drop__link::after {
  content: none;
}

.nav .nav-drop__link:hover,
.nav .nav-drop__link[aria-current="page"] {
  background: var(--bg-soft);
  color: inherit;
}

.nav-drop__title {
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
}

.nav-drop__sub {
  font-size: 14px;
  line-height: 20px;
  color: #757a75;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.burger {
  display: none;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hero */
.hero {
  background: var(--bg-hero);
  min-height: 678px;
  display: flex;
  align-items: center;
  gap: 130px;
  padding: 49px 50px 0 84px;
  overflow: hidden;
}

.hero__photo {
  flex: 0 0 477px;
  width: 477px;
  height: 629px;
  border-radius: 24px;
  overflow: hidden;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  transform: scale(1.03);
}

.hero__content {
  flex: 1;
  min-width: 0;
  max-width: 700px;
  /* В макете блок текста центрирован по высоте всего первого экрана (678),
     а не по фото, которое начинается на 49 px ниже. Нижний отступ
     поднимает центр ровно на половину этих 49 px. */
  margin-bottom: 49px;
}

.hero__tags {
  display: flex;
  gap: 6px;
  margin-bottom: 35px;
}

.hero__tags span {
  background: rgba(42, 178, 99, 0.06);
  color: var(--green);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 1.92px;
  line-height: 1;
  padding: 6px 15px;
  border-radius: 100px;
}

.hero__title {
  font-family: var(--oswald);
  font-weight: 700;
  font-size: 66px;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--black);
}

.hero__title span {
  color: var(--green);
}

.hero__subtitle {
  font-family: var(--oswald);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--black);
  margin-top: 5px;
}

.hero__text {
  max-width: 620px;
  margin-top: 40px;
  font-size: 16px;
  line-height: 1.2;
  color: var(--text);
}

.hero__content .btn {
  margin-top: 50px;
}

/* Requests */
.requests {
  background: var(--bg);
  border-radius: 64px 64px 0 0;
  position: relative;
  z-index: 2;
  padding: 80px 50px 80px;
}

.requests__title {
  font-family: var(--oswald);
  font-weight: 700;
  font-size: 52px;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--black);
  max-width: 474px;
}

.requests__title span {
  color: var(--green);
}

.requests__grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.request-card {
  position: relative;
  height: 249px;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg);
  cursor: default;
}

.request-card__photo {
  position: absolute;
  inset: -1px;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.9s cubic-bezier(0.33, 0, 0.2, 1), transform 1.1s cubic-bezier(0.33, 0, 0.2, 1);
}

.request-card__photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.request-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.33);
}

.request-card__icon {
  position: absolute;
  left: 29px;
  top: 29px;
  width: 52px;
  height: 52px;
  border: 1.4px solid var(--green);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
  transition: border-color 1.1s cubic-bezier(0.4, 0, 0.2, 1), background-color 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.request-card__icon img {
  width: 31px;
  height: 31px;
  object-fit: contain;
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.request-card__icon-on {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  filter: brightness(0) invert(1);
  opacity: 0;
}

.request-card__body {
  position: absolute;
  left: 29px;
  right: 29px;
  top: 116px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
}

.request-card h3 {
  font-family: var(--oswald);
  font-weight: 500;
  font-synthesis: none;
  font-size: 20px;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--black);
  transition: color 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.request-card p {
  font-weight: 400;
  font-synthesis: none;
  font-variation-settings: "wght" 400;
  font-size: 14px;
  line-height: 1.2;
  color: var(--text-mute);
  transition: color 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.request-card:hover .request-card__photo,
.request-card:focus-within .request-card__photo {
  opacity: 1;
  transform: scale(1);
}

.request-card:hover h3,
.request-card:hover p,
.request-card:focus-within h3,
.request-card:focus-within p {
  color: #fff;
}

.request-card:hover .request-card__icon,
.request-card:focus-within .request-card__icon {
  border-color: #fff;
}

.request-card:hover .request-card__icon img:first-child,
.request-card:focus-within .request-card__icon img:first-child {
  opacity: 0;
}

.request-card:hover .request-card__icon-on,
.request-card:focus-within .request-card__icon-on {
  opacity: 1;
}

/* About */
.about {
  padding: 80px 50px 0;
}

.about__top {
  display: grid;
  /* Статистика в макете начинается на 50% ширины страницы + 10 px. */
  grid-template-columns: minmax(0, 1fr) calc(50% - 10px);
  align-items: start;
}

.about__intro h2 {
  font-family: var(--oswald);
  font-weight: 700;
  font-size: 64px;
  line-height: 1.05;
  color: var(--ink);
  white-space: nowrap;
}

.about__intro p {
  max-width: 467px;
  margin-top: 25px;
  font-size: 16px;
  line-height: 1.2;
  color: var(--text);
}

.about__stats {
  display: grid;
  grid-template-columns: 340fr 320fr;
}

.stat {
  padding-left: 21px;
  border-left: 1px solid var(--line);
  min-height: 220px;
}

.stat__value {
  font-family: var(--oswald);
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
}

.stat__count {
  min-width: 0.7em;
  font-variant-numeric: tabular-nums;
}

.stat__plus {
  height: 36px;
  font-size: 44px;
  line-height: 1.08;
  color: var(--green);
  margin-top: 25px;
}

.stat__label {
  margin-top: 5px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.stat__desc {
  max-width: 281px;
  margin-top: 82px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.about__bottom {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 190px;
  margin-top: 50px;
  align-items: start;
}

.about__video {
  position: relative;
  width: 320px;
  height: 420px;
  border: 0;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.about__video > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: filter 0.3s ease;
}

.about__video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.about__video:hover > img {
  filter: brightness(1.08);
}

.about__video-label {
  position: relative;
  z-index: 2;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.about__play {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.about__play img {
  width: 48px;
  height: 48px;
}


.education h3 {
  font-family: var(--oswald);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  color: var(--black);
}

.edu-row {
  display: grid;
  /* Колонка вузов в макете стоит на 449 px правее дат при ширине блока
     830 px. В процентах, чтобы при полосе прокрутки (страница уже на 15 px)
     строки не переносились иначе, чем в макете. */
  grid-template-columns: 54.1% minmax(0, 1fr);
  padding: 13px 0 15px;
  border-bottom: 1px solid var(--line);
}

.edu-row:first-of-type {
  margin-top: 35px;
  padding-top: 0;
}

.edu-row__info {
  max-width: 381px;
}

.edu-row--narrow .edu-row__info {
  max-width: 337px;
}

.edu-row:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.edu-row__years {
  font-weight: 600;
  font-size: 16px;
  color: var(--green);
  white-space: nowrap;
}

.edu-row__title {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
}

.edu-row__text {
  margin-top: 5px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-mid);
}

.education__note {
  max-width: 449px;
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.2;
  color: var(--ink);
}

/* Certs */
.certs {
  padding: 30px 50px 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 20px;
}

.cert__preview {
  height: 227px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background: var(--bg);
}

.cert__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}


.cert__title {
  margin-top: 13px;
  text-align: center;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  color: var(--ink);
}

.cert__text {
  margin-top: 13px;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-mid);
}

/* Pricing */
.pricing {
  padding: 80px 50px;
  display: grid;
  grid-template-columns: 887fr 433fr;
  gap: 20px;
}

.pricing__main {
  background: #f1f1f1;
  border-radius: 15px;
  padding: 30px 30px 30px;
  min-height: 369px;
}

.pricing__main h2 {
  font-family: var(--oswald);
  font-weight: 700;
  font-size: 42px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--green);
}

.pricing__cols {
  display: grid;
  /* Вторая колонка в макете — на 438 px от левого края текста (из 827). */
  grid-template-columns: 53% minmax(0, 1fr);
  gap: 0;
  margin-top: 49px;
}

.price-item__time {
  font-size: 13px;
  line-height: 1.2;
  color: var(--green);
}

.price-item h3 {
  margin-top: 5px;
  font-family: var(--oswald);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--black);
}

.price-item ul {
  margin-top: 15px;
  list-style: none;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-mid);
}

.price-item__sum {
  margin-top: 15px;
  font-family: var(--oswald);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--black);
}

.pricing__featured {
  background: var(--green);
  border-radius: 24px;
  padding: 39px 30px 35px;
  color: #fff;
  min-height: 369px;
  display: flex;
  flex-direction: column;
}

.pricing__featured-time {
  font-size: 13px;
  line-height: 1.2;
}

.pricing__featured h3 {
  margin-top: 5px;
  font-family: var(--oswald);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  text-transform: uppercase;
}

.pricing__featured-text {
  margin-top: 15px;
  font-size: 15px;
  line-height: 1.6;
}

.pricing__featured-text + .pricing__featured-text {
  margin-top: 0;
}

.pricing__featured-price {
  margin-top: auto;
  margin-bottom: 61px;
  font-family: var(--oswald);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  text-transform: uppercase;
}

.pricing__featured .btn {
  padding: 20px 35px;
}

/* Approach */
.approach {
  position: relative;
  width: 100%;
}

.approach__banner {
  position: relative;
  height: 978px;
  overflow: hidden;
}

.approach__banner img {
  position: absolute;
  left: 50%;
  top: -14.52%;
  transform: translateX(-50%);
  width: 116.67%;
  min-width: 100%;
  height: 114.52%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.approach__banner-text {
  position: absolute;
  left: 50px;
  top: 435px;
  z-index: 2;
  width: 547px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.approach__banner-text h2 {
  font-family: var(--oswald);
  font-weight: 700;
  font-size: 52px;
  line-height: 1.05;
  text-transform: uppercase;
  max-width: 370px;
}

.approach__banner-text p {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.approach__body {
  background: var(--bg);
  border-radius: 64px 64px 0 0;
  margin-top: -170px;
  position: relative;
  z-index: 1;
  padding: 100px 50px 137px;
  display: grid;
  grid-template-columns: 430px minmax(0, 653px);
  /* Текст в макете начинается на 50% ширины страницы + 10 px. */
  column-gap: calc(50% - 420px);
}

.approach__photo {
  position: relative;
  height: 556px;
  border-radius: 24px;
  overflow: hidden;
}

.approach__photo > img {
  /* Кадр как в макете: фото увеличено почти вдвое и сдвинуто к лицу. */
  position: absolute;
  left: -48.74%;
  top: -27.7%;
  width: 197.48%;
  height: 127.7%;
  max-width: none;
}

.approach__card {
  position: absolute;
  left: 25px;
  bottom: 25px;
  width: 380px;
  padding: 20px;
  border-radius: 13px;
  background: rgba(158, 158, 158, 0.3);
  backdrop-filter: blur(8.6px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.approach__card p {
  font-size: 16px;
  line-height: 1.2;
  color: #fff;
}

.approach__lead {
  font-weight: 500;
  font-size: 21px;
  line-height: 1.3;
  color: var(--ink);
}

.approach__lead span {
  color: var(--green-soft);
}

.approach__points {
  margin-top: 65px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.point {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.point__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  font-family: var(--oswald);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.point p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-mid);
}

/* Reviews */
.reviews {
  padding: 80px 0 80px;
  overflow: hidden;
}

.reviews__head {
  padding: 0 50px;
  display: grid;
  /* Разделитель оценки в макете стоит на 2/3 ширины страницы минус 23 px. */
  grid-template-columns: minmax(0, 1fr) calc((100% + 100px) / 3 - 27px);
}

.reviews__intro h2 {
  font-family: var(--oswald);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--black);
}

.reviews__intro h2 span {
  color: var(--green);
}

.reviews__intro p {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.2;
  color: var(--text-mid);
}

.reviews__score {
  position: relative;
  margin-top: -10px;
  padding-left: 30px;
  border-left: 1px solid #e5e5e5;
  min-height: 186px;
}

.reviews__score-top {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.reviews__score-num {
  font-family: var(--oswald);
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  color: var(--black);
}

.reviews__score-top img {
  margin-top: 0;
  width: 20px;
  height: 20px;
}

.reviews__score-label {
  margin-top: 9px;
  font-size: 16px;
  line-height: 1.2;
  color: #b8b8b8;
}

.reviews__badges {
  margin-top: 25px;
  display: flex;
  gap: 10px;
}

.reviews__badges span {
  width: 155px;
  height: 50px;
  border-radius: 14px;
  background: #efefef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
}

.reviews__slider {
  margin-top: 40px;
  position: relative;
  padding: 0;
}

.reviews__viewport {
  overflow: hidden;
}

.reviews__track {
  display: flex;
  gap: 20px;
  padding: 20px 0 30px 50px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.review-card {
  flex: 0 0 433px;
  background: var(--bg);
  border-radius: 20px;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.08);
  padding: 35px 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: 310px;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 46px;
}

.review-card__author img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.review-card__author span {
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
}

.review-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card__meta img {
  width: 96px;
  height: 16px;
}

.review-card__meta span {
  font-size: 13px;
  line-height: 1.5;
  color: #9e9e9e;
}

.review-card__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-mid);
}

.review-card__more {
  color: #9e9e9e;
  cursor: pointer;
  background: none;
  border: 0;
  font: inherit;
  padding: 0;
}

.review-card__more:hover {
  color: var(--green);
}

.reviews__nav {
  position: absolute;
  top: 144px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 24px;
  background: #f1fafb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background-color 0.2s ease;
}

.reviews__nav:hover {
  background: #e4f4f0;
}

.reviews__nav--prev {
  left: 26px;
}

.reviews__nav--next {
  right: 26px;
}

.reviews__nav img {
  width: 18px;
  height: 18px;
}

.reviews__nav--prev img {
  transform: rotate(180deg);
}

/* FAQ — Figma 485:799: py 80 / px 50 / gap 55; items px 35 py 15, list gap 10 */
.faq {
  padding: 80px 50px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 55px;
}

.faq h2 {
  align-self: center;
  font-family: var(--oswald);
  font-weight: 700;
  font-size: 66px;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--ink);
}

.faq__list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: var(--bg-faq);
  border-radius: 15px;
  padding: 15px 35px;
}


.faq-item__q {
  flex: 0 0 40px;
  width: 100%;
  height: 40px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.faq-item__q span {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.1;
  color: var(--ink);
}

.faq-item__toggle {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.faq-item__q img {
  position: absolute;
  inset: 0;
  width: 40px;
  height: 40px;
  transition: opacity 0.3s ease, transform 0.35s ease;
}

.faq-item__plus {
  opacity: 1;
  transform: none;
}

.faq-item__minus {
  opacity: 0;
  /* Небольшой доворот без уменьшения: плюс мягко перетекает в крестик. */
  transform: rotate(-45deg);
  pointer-events: none;
}

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

.faq-item.is-open .faq-item__minus {
  opacity: 1;
  transform: none;
}

.faq-item__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

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

.faq-item__a-inner {
  overflow: hidden;
}

/* Отступ от вопроса живёт внутри сворачиваемой части: раньше это был gap
   у .faq-item.is-open, он пропадал мгновенно при закрытии, и текст
   ответа дёргался вверх, пока строка ещё сворачивалась. */
.faq-item__a-inner > :first-child {
  padding-top: 10px;
}

.faq-item:not(.is-open) .faq-item__a-inner {
  min-height: 0;
}

.faq-item__a p {
  max-width: 860px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-mid);
}

/* Contacts */
.contacts {
  padding: 80px 50px 115px;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 123px;
  align-items: start;
}

.badge-card {
  width: 330px;
  height: 420px;
  border: 1px solid #e4f2f1;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  background: var(--bg);
  text-align: center;
  padding: 39px 20px 32px;
}

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

.badge-card h2 {
  margin-top: 25px;
  font-family: var(--oswald);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--ink);
}

.badge-card__role {
  margin-top: 12px;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 1.44px;
  color: var(--text-mid);
}

.badge-card__degree {
  margin-top: 74px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.1px;
  color: var(--green-soft);
}

.contacts__form-wrap h2 {
  font-family: var(--oswald);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--ink);
}

.contacts__lead {
  max-width: 691px;
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.2;
  color: var(--ink);
}

.form {
  margin-top: 38px;
  width: 100%;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field,
.phone-field {
  background: var(--bg-soft);
  border-radius: 16px;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: relative;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.field:focus-within,
.phone-field:focus-within,
.phone-field.is-open {
  box-shadow: inset 0 0 0 1.5px var(--green);
}

.field--area {
  height: 140px;
  align-items: flex-start;
  padding-top: 24px;
  margin-top: 20px;
}

.field input,
.field textarea,
.phone-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  color: var(--ink);
  resize: none;
}

.field input::placeholder,
.field textarea::placeholder,
.phone-field input::placeholder {
  color: var(--text-mid);
}

.phone-field {
  gap: 8px;
}

.phone-field.is-error {
  box-shadow: inset 0 0 0 1.5px var(--error);
}

.phone-field__flag {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.phone-field__flag img {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}

.phone-field__chevron {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-mid);
}

.phone-field__dial {
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  flex-shrink: 0;
}

.phone-field input {
  width: auto;
  flex: 0 1 auto;
  min-width: 12ch;
  padding-right: 0;
  field-sizing: content;
}

.phone-field__req {
  color: var(--error);
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  pointer-events: none;
  transform: translateY(1px);
}

.phone-field__list {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 20;
  width: 260px;
  max-height: 280px;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  list-style: none;
  padding: 8px;
}

.phone-field__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}

.phone-field__list li:hover,
.phone-field__list li.is-active {
  background: #f4faf6;
}

.phone-field__list img {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}

.check {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check__box {
  width: 22px;
  height: 22px;
  border: 1.5px solid #b9c4bc;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.check input:checked + .check__box {
  background: var(--green);
  border-color: var(--green);
}

.check input:checked + .check__box::after {
  content: "";
  width: 12px;
  height: 10px;
  margin: 0;
  border: 0;
  background: center / 12px 10px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M1.2 5.1 4.3 8.2 10.8 1.6' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.check__req {
  color: var(--error);
}

.check__text {
  font-size: 14px;
  line-height: 22px;
  color: var(--text-mid);
}

.check__text a {
  text-decoration: underline;
}

.check__text a:hover {
  color: var(--green);
}

.form .btn {
  min-width: 207px;
  margin-top: 30px;
  padding: 17px 50px;
  color: var(--white);
}

.form__error {
  margin-top: 12px;
  font-size: 14px;
  color: var(--error);
}

.form__success {
  margin-top: 16px;
  font-size: 15px;
  color: var(--green);
}

/* Footer — Figma 485:884, 1440×508 */
.footer {
  background: var(--footer);
  color: #fafafa;
}

.footer__top {
  padding: 70px 50px 44px;
  display: grid;
  grid-template-columns: 1fr auto max-content;
  column-gap: 40px;
  align-items: start;
}

.footer__menus {
  display: grid;
  grid-template-columns: 260px 260px;
  column-gap: 40px;
}

.footer__person {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.footer__person img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.footer__person > div {
  padding-top: 2px;
}

.footer__name {
  font-weight: 600;
  font-size: 22px;
  line-height: normal;
  color: #fafafa;
}

.footer__role {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.4;
  color: #8b8f8c;
}

.footer__disclaimer {
  margin-top: 30px;
  max-width: 293px;
  font-size: 12px;
  line-height: 1.5;
  color: #5a5d5a;
}

.footer__nav {
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 31px;
}

.footer__nav a {
  padding: 0 0 17px;
  border-bottom: 1px solid rgba(248, 254, 249, 0.14);
  font-size: 16px;
  line-height: 1.2;
  color: #fafafa;
  transition: color 0.2s ease;
}

.footer__nav a:hover {
  color: var(--green);
}

.footer__contacts {
  width: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__phone {
  font-family: var(--oswald);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  white-space: nowrap;
  color: #fafafa;
}

.footer__contacts p {
  margin-top: 14px;
  max-width: 220px;
  font-size: 14px;
  line-height: 1.45;
  color: #8b8f8c;
}

.footer__email {
  margin-top: 20px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  color: var(--green);
}

.footer__email:hover {
  text-decoration: underline;
}

.footer__social {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 15px;
  width: 218px;
  height: 52px;
  padding: 16px 20px;
  border-radius: 999px;
  background: rgba(248, 254, 249, 0.1);
  font-weight: 500;
  font-size: 15px;
  line-height: normal;
  color: #fafafa;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.footer__email + .footer__social {
  margin-top: 32px;
}

.footer__social:hover {
  background: rgba(248, 254, 249, 0.18);
}

.footer__social img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.footer__bottom {
  padding: 36px 50px 38px;
  border-top: 1px solid rgba(248, 254, 249, 0.14);
  display: grid;
  grid-template-columns: 250px 1fr auto;
  align-items: start;
}

.footer__copy {
  padding-top: 4px;
}

.footer__mark {
  font-weight: 600;
  font-size: 13px;
  line-height: normal;
  letter-spacing: 1.04px;
  color: #8b8f8c;
}

.footer__copy p:last-child {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #8b8f8c;
}

.footer__legal {
  display: flex;
  gap: 40px;
  padding-top: 12px;
}

.footer__legal a {
  font-size: 13px;
  line-height: normal;
  color: #8b8f8c;
  text-decoration: underline;
  text-underline-position: from-font;
  text-underline-offset: auto;
}

.footer__legal a:hover {
  color: #fff;
}

.footer__up {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(248, 254, 249, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.footer__up:hover {
  background: rgba(248, 254, 249, 0.2);
}

.footer__up img {
  width: 16px;
  height: 8px;
}

/* Modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 19, 19, 0.32);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: modalFadeIn 0.3s ease;
}

.modal__dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--bg);
  border-radius: 24px;
  padding: 40px 40px 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  animation: modalIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Закрытие: окно уезжает вниз, фон гаснет. Длительность — CLOSE_MS в main.js. */
.modal.is-closing .modal__dialog {
  animation: modalOut 0.28s ease-in forwards;
}

.modal.is-closing .modal__backdrop {
  animation: modalFadeOut 0.28s ease forwards;
}

.modal__dialog--video {
  width: min(720px, 100%);
  padding: 24px;
}

.modal__dialog h2 {
  font-family: var(--oswald);
  font-weight: 700;
  font-size: 36px;
  text-transform: uppercase;
}

.modal__dialog > p {
  margin-top: 10px;
  color: var(--text-mid);
  font-size: 16px;
  line-height: 1.3;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.modal .form {
  margin-top: 24px;
  max-width: none;
}

.video-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
}

.video-frame img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  opacity: 0.7;
}

.video-frame p {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(80px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes modalOut {
  to {
    opacity: 0;
    transform: translateY(80px);
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
}

@keyframes modalFadeOut {
  to {
    opacity: 0;
  }
}

.will-reveal {
  opacity: 0;
  transform: translateY(24px);
}

.will-reveal.reveal {
  animation: reveal 0.8s ease forwards;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

section[id] {
  scroll-margin-top: 90px;
}

@media (max-width: 1280px) {
  .hero {
    gap: 48px;
    padding: 40px 40px 0 40px;
  }

  .hero__photo {
    flex-basis: 400px;
    width: 400px;
    height: 560px;
  }

  .hero__title {
    font-size: 54px;
  }

  .about__top,
  .about__bottom,
  .pricing,
  .approach__body,
  .reviews__head,
  .contacts {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .about__intro h2 {
    font-size: 48px;
    white-space: normal;
  }

  .edu-row {
    gap: 40px;
  }

  .footer__top {
    grid-template-columns: 1fr auto;
    gap: 48px 40px;
  }

  .footer__menus {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1100px) {
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 50px 24px;
    display: none;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid rgba(56, 60, 56, 0.08);
  }

  .nav-drop {
    width: 100%;
  }

  .nav-drop__toggle {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(56, 60, 56, 0.08);
  }

  .nav-drop__toggle img {
    margin-left: 0;
  }

  /* В мобильном меню список открывается прямо под пунктом, без окна. */
  .nav-drop__menu {
    position: static;
    width: 100%;
    padding: 6px 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    animation: none;
  }

  .nav .nav-drop__link {
    padding: 10px 12px;
    border-bottom: 0;
  }

  .burger {
    display: flex;
  }

  .header__actions .btn--green {
    display: none;
  }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 30px 24px 60px;
  }

  .hero__photo,
  .hero__content {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    height: auto;
    flex: none;
  }

  .hero__photo {
    height: 520px;
  }

  .hero__content {
    margin-top: 32px;
  }

  .requests,
  .about,
  .certs,
  .pricing,
  .faq,
  .contacts {
    padding-left: 24px;
    padding-right: 24px;
  }

  .requests__grid,
  .certs,
  .pricing,
  .pricing__cols,
  .form__row {
    grid-template-columns: 1fr;
  }

  .pricing__cols {
    row-gap: 30px;
  }

  .request-card__body {
    width: calc(100% - 58px);
  }

  .approach__body {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 80px 24px;
  }

  .approach__photo {
    width: 100%;
    max-width: 430px;
  }

  .reviews__head {
    grid-template-columns: 1fr;
    padding: 0 24px;
    gap: 32px;
  }

  .reviews__slider {
    padding: 0;
  }

  .reviews__track {
    padding-left: 24px;
  }

  .footer__top,
  .footer__bottom {
    grid-template-columns: 1fr;
    padding-left: 24px;
    padding-right: 24px;
    gap: 32px;
  }

  .footer__menus {
    grid-template-columns: 1fr 1fr;
    width: 100%;
    column-gap: 24px;
  }

  .footer__nav,
  .footer__contacts {
    width: 100%;
  }

  .footer__legal {
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-top: 0;
  }

  .header__inner {
    padding: 10px 24px;
  }
}

@media (max-width: 640px) {
  /* Шапка по мобильному макету: имя и роль в две строки, без разделителя.
     В одну строку логотип с двумя кнопками не помещался в 375 px, и бургер
     уезжал за край экрана, растягивая страницу вширь. */
  :root {
    --header-h: 68px;
  }

  .header__inner {
    padding: 6px 15px;
  }

  .logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .logo__divider {
    display: none;
  }

  .logo__role {
    font-size: 14px;
  }

  .header__actions {
    gap: 5px;
  }

  .nav {
    padding: 8px 15px 16px;
  }

  .header__actions .btn--icon,
  .burger {
    width: 48px;
    height: 48px;
  }

  .burger {
    background: #fff;
  }

  .burger span {
    background: var(--ink);
  }

  .hero__title,
  .faq h2,
  .contacts__form-wrap h2,
  .reviews__intro h2 {
    font-size: 40px;
  }

  .about__stats,
  .about__top,
  .about__bottom,
  .contacts {
    grid-template-columns: 1fr;
  }

  .hero__photo {
    height: 420px;
  }

  .badge-card,
  .about__video,
  .approach__photo,
  .approach__card {
    width: 100%;
  }

  .review-card {
    flex-basis: 300px;
  }

  .modal__dialog {
    padding: 28px 20px;
  }

  /* Баннер «Комплексный подход» по мобильному макету (07, 375×520):
     кадр сдвинут к Тимофею, снизу затемнение под белый текст. */
  .approach__banner {
    height: 520px;
  }

  .approach__banner img {
    left: -71.26%;
    top: 0;
    transform: none;
    width: 208%;
    height: 100%;
  }

  .approach__banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.75));
  }

  .approach__banner-text {
    left: 16px;
    right: 16px;
    top: 323px;
    width: auto;
    gap: 12px;
  }

  .approach__banner-text h2 {
    max-width: 240px;
    font-size: 32px;
  }

  .approach__banner-text p {
    font-size: 16px;
  }

  .approach__body {
    margin-top: -32px;
    border-radius: 32px 32px 0 0;
  }
}
