@font-face {
  font-family: "e-Ukraine";
  src: url("../fonts/e-Ukraine-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "e-Ukraine";
  src: url("../fonts/e-Ukraine-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "e-Ukraine";
  src: url("../fonts/e-Ukraine-Medium.otf") format("opentype");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "e-Ukraine";
  src: url("../fonts/e-Ukraine-Bold.otf") format("opentype");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #2f64ff;
  --blue-deep: #1f57eb;
  --dark: #3d3d3d;
  --cream: #fcfee9;
  --text: #222222;
  --muted: #565656;
  --white: #ffffff;
  --page: 100%;
  --container: 1260px;
  --header-h: 92px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 18px);
}

body {
  margin: 0;
  color: var(--text);
  font-family: "e-Ukraine", Arial, Helvetica, sans-serif;
  background: var(--dark);
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

main {
  overflow-x: hidden;
}

main > section,
.site-footer {
  width: min(var(--page), 100%);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(var(--page), 100%);
  min-height: var(--header-h);
  background: var(--blue);
  color: var(--white);
}

.header-inner {
  width: min(var(--container), calc(100% - 48px));
  min-height: var(--header-h);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto 190px;
  align-items: center;
  gap: 24px;
}

.brand img {
  width: 132px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  font-size: 16px;
  font-weight: 500;
}

.main-nav a,
.footer-nav a,
.footer-links a,
.footer-contacts a,
.social-link {
  transition: opacity .2s ease, color .2s ease;
}

.main-nav a:hover,
.footer-nav a:hover,
.footer-links a:hover,
.footer-contacts a:hover {
  opacity: .72;
}

.main-nav a.active {
  color: #000000;
  opacity: 1;
}

.phone-pill {
  justify-self: end;
  min-width: 184px;
  min-height: 40px;
  padding: 8px 18px 8px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: #234484;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}

.phone-pill:hover,
.phone-pill:focus-visible,
.phone-pill:active {
  background: #202020;
  color: var(--white);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
  transform: translateY(-2px);
  outline: none;
}

.phone-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: transform .22s ease, filter .22s ease;
}

.phone-pill:hover .phone-icon,
.phone-pill:focus-visible .phone-icon,
.phone-pill:active .phone-icon {
  transform: rotate(-10deg) scale(1.06);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-socials {
  justify-self: end;
}

.social-link {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, opacity .2s ease;
}

.social-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.social-link:hover,
.social-link:focus-visible,
.social-link:active {
  background: #202020;
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
  outline: none;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 10px;
  background: transparent;
  color: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  width: 23px;
  height: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero {
  width: min(var(--page), 100%);
  min-height: 594px;
  background:
    linear-gradient(rgba(49, 107, 244, .08), rgba(17, 28, 52, .18)),
    url("../img/Профтех_сайт.jpg") center top / cover no-repeat;
  position: relative;
  background-position: center 42%;
}

.hero-inner {
  min-height: 594px;
  padding-top: 76px;
  position: relative;
}

.hero-card {
  width: min(820px, 78vw);
  min-height: 250px;
  padding: 58px 36px 38px;
  border-radius: 34px;
  background: rgba(49, 107, 244, .36);
  color: var(--white);
}

.hero-card h1 {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: clamp(42px, 3.25vw, 50px);
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 600;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.hero-card p {
  margin: 0;
  font-size: clamp(19px, 1.55vw, 22px);
  line-height: 1.25;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 28px;
  margin-top: 32px;
}

.btn {
  min-width: 240px;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 38px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 600;
  text-align: center;
  transition: transform .3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow .3s ease, background .3s ease;
}

.btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 36px rgba(47, 100, 255, .35);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(47, 100, 255, .25);
}

.btn-light {
  background: var(--white);
  color: #202020;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.license-badge {
  width: 250px;
  margin-top: 58px;
}

.section-dark {
  width: min(var(--page), 100%);
  background: var(--dark);
  color: var(--white);
}

.about-grid {
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 520px);
  align-items: start;
  gap: 28px 90px;
  padding: 48px 0 58px;
}

.about-title {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--blue);
  font-size: clamp(34px, 3vw, 40px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.about-copy p {
  max-width: 620px;
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 300;
}

.about-copy .lead {
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.about-media {
  min-height: 280px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-media img {
  width: min(500px, 100%);
  max-height: 330px;
  object-fit: contain;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

.programs-hero {
  --programs-photo-width: min(62vw, 650px);
  min-height: 304px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--blue);
  color: var(--white);
}

.programs-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--programs-photo-width);
  background: url("../img/operator1.png") center / 100% 100% no-repeat;
  opacity: .88;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 10%, #000 30%, #000 78%, rgba(0, 0, 0, .3) 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 10%, #000 30%, #000 78%, rgba(0, 0, 0, .3) 92%, transparent 100%);
  z-index: 0;
}

.programs-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--blue) 0%, var(--blue) calc(100% - var(--programs-photo-width) - 24px), rgba(49, 107, 244, .48) calc(100% - var(--programs-photo-width) + 110px), rgba(49, 107, 244, .1) calc(100% - 360px)),
    linear-gradient(90deg, transparent 0%, transparent calc(100% - 170px), rgba(49, 107, 244, .42) calc(100% - 58px), var(--blue) 100%);
  pointer-events: none;
  z-index: 1;
}

.programs-inner {
  min-height: 304px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.programs-inner h2 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(38px, 3.8vw, 54px);
  line-height: 1.18;
  font-weight: 900;
  text-transform: uppercase;
}

.program-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.program-tabs a {
  min-height: 140px;
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding: 28px 32px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
  text-transform: uppercase;
  transition: background .2s ease, transform .2s ease;
}

.program-tabs a:hover {
  background: rgba(255, 255, 255, .13);
  transform: translateY(-2px);
}

.course-white {
  background: var(--white);
}

.course-grid {
  min-height: 520px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 70px;
  padding: 70px 0;
}

.label {
  display: inline-flex;
  min-width: 300px;
  height: 28px;
  align-items: center;
  padding: 2px 18px 0;
  border-radius: 0 999px 999px 0;
  background: var(--dark);
  color: var(--white);
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
}

.course-copy .eyebrow {
  margin: 26px 0 4px;
  font-size: 17px;
  line-height: 1.18;
  font-weight: 900;
}

.course-copy h2 {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 27px;
  line-height: 1.19;
  font-weight: 900;
  text-transform: uppercase;
}

.course-copy .subnote {
  margin: 0 0 28px;
  font-size: 13px;
  line-height: 1.15;
  font-style: italic;
  font-weight: 300;
}

.course-copy p {
  margin: 0 0 26px;
  max-width: 616px;
  font-size: 17px;
  line-height: 1.18;
  font-weight: 200;
}

.course-copy p strong {
  font-weight: 700;
}

.course-media {
  margin: 0;
  position: relative;
  border-radius: 18px;
  background: #000;
  overflow: hidden;
}

.course-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1.63 / 1;
  object-fit: cover;
  transition: transform .42s ease;
}

.course-media .media-slide-image {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
  pointer-events: none;
  z-index: 1;
}

.media-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 32px;
  height: 42px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, .58);
  transform: translateY(-50%);
  cursor: pointer;
}

.media-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-left: 2px solid #1f1f1f;
  border-bottom: 2px solid #1f1f1f;
}

.media-arrow.prev {
  left: 18px;
}

.media-arrow.next {
  right: 18px;
}

.media-arrow.prev::before {
  transform: translate(-35%, -50%) rotate(45deg);
}

.media-arrow.next::before {
  transform: translate(-65%, -50%) rotate(-135deg);
}

.included {
  background: var(--blue);
  color: var(--white);
  padding: 64px 0 86px;
}

.included h2 {
  margin: 0 0 66px;
  text-align: center;
  font-size: 36px;
  line-height: 1;
  font-weight: 500;
}

.included-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px 112px;
}

.included-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 38px;
  transition: transform .3s ease;
}

.included-item:hover {
  transform: translateX(8px);
}

.included-item img {
  width: 82px;
  height: 82px;
  transition: transform .3s ease;
}

.included-item:hover img {
  transform: scale(1.15) rotate(4deg);
}

.included-item p {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 300;
}

.terms {
  background: var(--cream);
  padding: 34px 0 78px;
}

.terms h2 {
  margin: 0 0 36px;
  text-align: center;
  color: var(--blue);
  font-size: 36px;
  line-height: 1;
  font-weight: 600;
}

.terms-grid {
  display: grid;
  grid-template-columns: 210px 320px 250px;
  justify-content: center;
  gap: 44px;
  align-items: start;
}

#retraining + .included + .terms .terms-grid {
  grid-template-columns: 1fr 455px 1fr;
  gap: 60px;
}

#retraining + .included + .terms .terms-grid p:nth-child(1) {
  width: 210px;
  justify-self: end;
}

#retraining + .included + .terms .terms-grid p:nth-child(2) {
  width: 455px;
}

#retraining + .included + .terms .terms-grid p:nth-child(3) {
  width: 250px;
  justify-self: start;
}

.terms-grid p {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: start;
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.terms-grid span {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--blue);
  position: relative;
}

.terms-grid span::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 5px;
  width: 9px;
  height: 6px;
  border-left: 3px solid var(--white);
  border-bottom: 3px solid var(--white);
  transform: rotate(-45deg);
}

.terms-cta {
  width: min(344px, 100%);
  margin: 56px auto 0;
  display: flex;
  min-height: 76px;
  padding-inline: 36px;
  font-size: 21px;
}

.registration {
  background:
    linear-gradient(rgba(23, 27, 34, .78), rgba(23, 27, 34, .78)),
    url("../img/Профтех_сайт4.jpg") center center / cover no-repeat;
  color: var(--white);
  padding: 42px 0 58px;
}

.registration-inner {
  text-align: center;
}

.registration h2 {
  max-width: 790px;
  margin: 0 auto 30px;
  font-size: 40px;
  line-height: 1;
  font-weight: 600;
}

.registration-subtitle {
  max-width: 790px;
  margin: 0 auto 30px;
  font-size: 16px;
  line-height: 1.2;
}

.consult-form {
  width: min(790px, 100%);
  margin: 0 auto;
  padding: 30px 166px 38px;
  border-radius: 28px;
  background: var(--white);
  color: #202020;
  text-align: left;
}

.consult-form label {
  display: block;
}

.consult-form label > span {
  display: block;
  margin: 0 0 6px 22px;
  color: #777777;
  font-size: 15px !important;
}

.consult-form input[type="text"],
.consult-form input[type="tel"],
.consult-form input[type="email"],
.consult-form textarea {
  width: 100%;
  margin-bottom: 10px;
  border: 1px solid #202020;
  padding: 0 22px;
  outline: none;
  transition: border .2s ease, box-shadow .2s ease;
}

.consult-form input[type="text"],
.consult-form input[type="tel"],
.consult-form input[type="email"] {
  height: 56px;
  border-radius: 999px;
}

.consult-form textarea {
  min-height: 104px;
  border-radius: 24px;
  padding-top: 16px;
  resize: vertical;
}

.consult-form input:focus,
.consult-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(49, 107, 244, .14);
}

.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.radio-row {
  margin: 10px 0 22px;
  padding: 0;
  border: 0;
  display: flex;
  gap: 36px;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
}

.radio-row label,
.agree {
  cursor: pointer;
}

.radio-row input,
.agree input {
  width: 18px;
  height: 18px;
  accent-color: #111111;
}

.agree {
  display: flex !important;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 22px;
  color: #202020;
  font-size: 16px;
}

.agree span {
  margin: 0 !important;
  color: inherit !important;
  font-size: inherit !important;
}

.agree a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-submit {
  width: min(380px, 100%);
  min-height: 58px;
  margin: 0 auto;
  display: flex;
  font-size: 22px;
}

.form-submit:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
  box-shadow: none;
}

.form-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--blue);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.form-status[data-status="error"] {
  color: #b42318;
}

.why {
  background: var(--cream);
padding: 90px 0 120px;
}

.why h2 {
  margin: 0 0 58px;
  color: var(--blue);
  text-align: center;
  font-size: clamp(44px, 4.2vw, 58px);
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 391px);
  justify-content: center;
  gap: 43px;
}

.why-item {
  display: grid;
  grid-template-columns: 82px 284px;
  gap: 24px;
  align-items: start;
  transition: transform .3s ease;
}

.why-item:hover {
  transform: translateY(-6px);
}

.why-item img {
  width: 82px;
  height: 82px;
  border-radius: 18px;
  object-fit: contain;
  transition: transform .3s ease, box-shadow .3s ease;
}

.why-item:hover img {
  transform: scale(1.08);
  box-shadow: 0 12px 24px rgba(47, 100, 255, .15);
}

.why-item h3 {
  margin: 4px 0 4px;
  color: var(--blue);
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
}

.why-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.08;
  font-weight: 300;
}

.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: 44px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 220px 160px 245px 150px 235px;
  gap: 34px;
  align-items: start;
  justify-content: space-between;
}

.footer-logo img {
  width: 160px;
}

.footer-nav,
.footer-links,
.footer-contacts {
  display: grid;
  gap: 4px;
  font-style: normal;
  font-size: 16px;
  line-height: 1.25;
}

.footer-links {
  justify-self: end;
  text-align: left;
}

.footer-socials {
  justify-self: start;
}

.footer-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-contacts img {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.copyright {
  margin: 28px 0 0;
  text-align: center;
  font-size: 14px;
}

.legal-page {
  background: var(--cream);
}

.legal-hero {
  background: var(--blue);
  color: var(--white);
  padding: 58px 0 64px;
  text-align: center;
}

.legal-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.legal-hero h1 {
  max-width: 980px;
  margin: 16px auto 0;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.05;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-hero p {
  max-width: 760px;
  margin: 18px auto 0;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 500;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: min(980px, 100%);
  font-size: 15px;
  font-weight: 700;
}

.back-link::before {
  content: "";
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.legal-section {
  padding: 54px 0 82px;
}

.legal-content {
  max-width: 980px;
  color: var(--text);
}

.legal-content h2 {
  margin: 42px 0 18px;
  color: var(--blue);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.15;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-content p,
.legal-list li {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.62;
  font-weight: 300;
}

.legal-content strong {
  font-weight: 800;
}

.legal-content a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-list {
  margin: 24px 0 30px;
  padding-left: 28px;
}

.legal-note {
  margin-top: 36px !important;
  font-size: 15px !important;
}

.reveal {
  opacity: 0;
  transform: translateY(46px) scale(0.96);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Анімація зліва-направо для текстів та непарних елементів */
.about-copy.reveal,
.course-copy.reveal,
.included-item.reveal:nth-child(odd) {
  transform: translateX(-100px) scale(0.96);
}

/* Анімація справа-наліво для фотографій та парних елементів */
.about-media.reveal,
.course-media.reveal,
.license-badge.reveal,
.included-item.reveal:nth-child(even) {
  transform: translateX(100px) scale(0.96);
}

.reveal.is-visible,
h1.reveal.is-visible,
h2.reveal.is-visible {
  opacity: 1;
  transform: translate(0) scale(1) !important;
}

/* Анімація посимвольного друку через JS */
.typing-wrap {
  display: inline-block;
}
.typing-char {
  opacity: 0;
}
.is-visible .typing-char {
  animation: typeChar 0.05s forwards;
}

@keyframes typeChar {
  to { opacity: 1; }
}

.hero-card.reveal { transition-delay: 0.1s; }
.hero-actions.reveal { transition-delay: 0.25s; }
.license-badge.reveal { transition-delay: 0.4s; }

.included-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.included-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.included-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

.why-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.why-grid .reveal:nth-child(3) { transition-delay: 0.3s; }

.terms-grid p.reveal:nth-child(1) { transition-delay: 0.1s; }
.terms-grid p.reveal:nth-child(2) { transition-delay: 0.25s; }
.terms-grid p.reveal:nth-child(3) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .program-tabs a {
    transition: none;
  }
}

@media (min-width: 1600px) {
  :root {
    --container: calc(100% - 240px);
  }

  .header-inner,
  .hero-inner,
  .about-grid,
  .programs-inner,
  .course-grid,
  .included > .container,
  .terms-inner,
  .registration-inner,
  .why > .container,
  .footer-grid {
    max-width: 1320px;
    margin-inline: auto;
  }

  .header-inner {
    grid-template-columns: 150px minmax(0, 1fr) auto 190px;
  }

  .hero {
    min-height: 590px;
    background-position: center 44%;
  }

  .hero-inner {
    min-height: 590px;
    padding-top: 88px;
  }

  .hero-card {
    width: 780px;
    min-height: 250px;
    padding: 56px 34px 38px;
  }

  .hero-card h1 {
    max-width: 700px;
    font-size: 46px;
  }

  .hero-card p {
    max-width: 690px;
    font-size: 20px;
  }

  .hero-actions {
    margin-top: 34px;
  }

  .license-badge {
    margin-top: 58px;
  }

  .about-grid {
    grid-template-columns: minmax(0, 600px) minmax(0, 580px);
    gap: 28px 120px;
    min-height: 390px;
    padding: 42px 0 52px;
  }

  .about-media img {
    width: min(560px, 100%);
    max-height: 340px;
  }

  .programs-inner {
    grid-template-columns: minmax(0, 600px) minmax(0, 620px);
    gap: 80px;
  }

  .course-grid {
    grid-template-columns: minmax(0, 650px) minmax(0, 560px);
    gap: 110px;
  }

  .included-grid,
  .terms-grid,
  .why-grid {
    max-width: none;
    margin-inline: 0;
  }

  .footer-grid {
    grid-template-columns: 220px 160px 245px 150px 235px;
  }
}

@media (max-width: 1180px) {
  :root {
    --header-h: 82px;
  }

  .header-inner {
    grid-template-columns: 128px minmax(0, 1fr) auto 174px;
    gap: 14px;
  }

  .brand img {
    width: 116px;
  }

  .main-nav {
    gap: 14px;
    font-size: 13px;
  }

  .phone-pill {
    min-width: 174px;
    font-size: 14px;
  }

  .social-link {
    width: 31px;
    height: 31px;
  }

  .social-link img {
    width: 16px;
    height: 16px;
  }

  .about-grid,
  .course-grid {
    gap: 44px;
  }

  .about-grid {
    gap: 24px 44px;
  }

  .about-copy p,
  .course-copy p,
  .included-item p,
  .terms-grid p {
    font-size: 18px;
  }

  .about-copy p {
    font-size: 16px;
  }

  .about-copy .lead {
    font-size: 19px;
  }

  .consult-form {
    padding-inline: 110px;
  }
}

@media (max-width: 940px) {
  .container,
  .header-inner {
    width: min(100% - 32px, var(--container));
  }

  .header-inner {
    grid-template-columns: 1fr auto auto;
    grid-template-rows: 1fr;
    gap: 12px;
  }
  
  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
    z-index: 30;
    position: relative;
    grid-column: 3;
    grid-row: 1;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--blue-deep);
    z-index: 25;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 88px 30px 40px;
    gap: 16px;
    font-size: 21px;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0);
    transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
  }

  .header-socials {
    position: fixed;
    top: 402px;
    right: -100%;
    z-index: 26;
    width: min(320px, 85vw);
    padding: 0 30px;
    justify-content: flex-start;
    transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .main-nav a {
    padding: 12px 0;
    width: 100%;
  }

  .phone-pill {
    min-width: 0;
    padding: 6px 12px;
    font-size: 14px;
    gap: 8px;
    height: 38px;
    align-self: center;
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }

  .phone-icon {
    width: 18px;
    height: 18px;
  }

  .menu-open .main-nav {
    right: 0;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.4);
  }

  .menu-open .header-socials {
    right: 0;
  }

  .hero,
  .hero-inner {
    min-height: 650px;
  }

  .hero-inner {
    padding-top: 76px;
  }

  .hero-card {
    width: 100%;
    padding: 54px 26px 40px;
  }

  .hero-title-line {
    display: inline;
    white-space: normal;
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 18px;
  }

  .btn {
    min-width: 230px;
    font-size: 22px;
    padding-inline: 36px;
  }

  .license-badge {
    margin-top: 50px;
  }

  .about-grid,
  .course-grid,
  .programs-inner,
  .included-grid,
  .terms-grid,
  .why-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-title {
    text-align: center;
  }

  .programs-hero {
    --programs-photo-width: 100%;
    background: var(--blue);
  }

  .programs-hero::before {
    width: 100%;
    background: url("../img/mobile2.jpg") center top / cover no-repeat;
    opacity: .84;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .28) 18%, #000 34%, #000 68%, rgba(0, 0, 0, .28) 84%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .28) 18%, #000 34%, #000 68%, rgba(0, 0, 0, .28) 84%, transparent 100%);
  }

  .programs-hero::after {
    background:
      linear-gradient(90deg, var(--blue) 0%, rgba(49, 107, 244, .84) 16%, rgba(49, 107, 244, .22) 38%, transparent 54%),
      linear-gradient(90deg, transparent 0%, transparent 58%, rgba(49, 107, 244, .22) 76%, rgba(49, 107, 244, .84) 94%, var(--blue) 100%);
  }

  .programs-inner {
    padding: 58px 0;
    gap: 32px;
  }

  .program-tabs {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .course-grid {
    padding: 54px 0;
  }

  .course-media {
    order: -1;
  }

  .included-grid {
    gap: 30px;
  }

  .terms-grid {
    gap: 24px;
  }

  #retraining + .included + .terms .terms-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  #retraining + .included + .terms .terms-grid p:nth-child(1),
  #retraining + .included + .terms .terms-grid p:nth-child(2),
  #retraining + .included + .terms .terms-grid p:nth-child(3) {
    width: auto;
    justify-self: stretch;
  }

  .terms-cta {
    margin-top: 46px;
  }

  .consult-form {
    padding: 28px 42px 34px;
  }

  .why-grid,
  .footer-grid {
    gap: 32px;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 72px;
  }

  .container,
  .header-inner {
    width: min(100% - 24px, var(--container));
  }

  .header-inner {
    gap: 8px;
  }

  .brand img {
    width: 96px;
  }

  .phone-pill {
    padding: 4px 10px 4px 6px;
    font-size: 13px;
    height: 34px;
    gap: 6px;
    border-radius: 999px;
    grid-column: 2;
    grid-row: 1;
  }

  .phone-icon {
    width: 16px;
    height: 16px;
  }

  .hero {
    min-height: 640px;
    background:
      linear-gradient(rgba(49, 107, 244, .3), rgba(49, 107, 244, .3)),
      url("../img/mobile1.jpg") center center / cover no-repeat;
  }

  .hero-inner {
    min-height: 640px;
    padding-top: 40px;
  }

  .hero-card {
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px 20px 28px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .hero-card h1 {
    font-size: clamp(18px, 6.5vw, 32px);
    line-height: 1.15;
    margin-bottom: 16px;
  }

  .hero-title-line {
    white-space: normal;
  }

  .hero-title-line:last-child {
    white-space: nowrap;
  }

  .hero-card p {
    font-size: 18px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .btn {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    font-size: 18px;
    font-weight: 600;
  }

  .license-badge {
    width: 200px;
    margin-top: 30px;
  }

  .about-grid {
    min-height: 0;
    padding: 34px 0 40px;
  }

  .about-title,
  .programs-inner h2,
  .included h2,
  .terms h2,
  .registration h2,
  .why h2 {
    font-size: 34px;
  }

  .about-title {
    font-size: 32px;
  }

  .about-copy p,
  .course-copy p,
  .included-item p,
  .terms-grid p {
    font-size: 18px;
  }

  .about-copy p {
    font-size: 16px;
  }

  .about-copy .lead {
    font-size: 19px;
  }

  .program-tabs a {
    min-height: 88px;
    padding: 18px;
  }

  .label {
    min-width: 0;
    width: 100%;
    justify-content: center;
    border-radius: 999px;
    font-size: 17px;
  }

  .course-copy h2 {
    font-size: 24px;
    hyphens: auto;
    word-wrap: break-word;
  }

  .included {
    padding: 48px 0 62px;
  }

  .included h2 {
    margin-bottom: 42px;
  }

  .included-item {
    grid-template-columns: 64px 1fr;
    gap: 20px;
  }

  .included-item img,
  .why-item img {
    width: 64px;
    height: 64px;
  }

  .terms {
    padding-bottom: 56px;
  }

  .terms-grid p {
    grid-template-columns: 28px 1fr;
  }

  .terms-grid span {
    width: 28px;
    height: 28px;
  }

  .consult-form {
    border-radius: 20px;
    padding: 28px 20px 32px;
  }

  .consult-form input[type="text"],
  .consult-form input[type="tel"],
  .consult-form input[type="email"] {
    height: 52px;
    border-radius: 12px;
    font-size: 16px;
  }
  
  .consult-form textarea {
    border-radius: 12px;
    font-size: 16px;
  }

  .consult-form label > span {
    margin-left: 6px;
    font-size: 15px;
    font-weight: 600;
  }

  .radio-row {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    font-size: 17px;
    margin: 20px 0 24px 6px;
  }

  .radio-row label {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .agree {
    align-items: flex-start;
    justify-content: flex-start;
    font-size: 14px;
    padding-left: 6px;
    margin-bottom: 28px;
  }

  .why-item {
    grid-template-columns: 64px 1fr;
    gap: 18px;
  }

  .why-item h3 {
    font-size: 19px;
  }

  .site-footer {
    padding: 54px 0 32px;
  }

  .footer-grid {
    gap: 42px;
    justify-items: center;
  }

  .footer-logo img {
    margin: 0 auto;
  }

  .footer-nav,
  .footer-links,
  .footer-contacts,
  .footer-socials {
    gap: 16px;
    text-align: center;
    justify-self: center;
  }

  .footer-socials {
    gap: 12px;
  }

  .footer-contacts a {
    justify-content: center;
  }

  .copyright {
    margin-top: 42px;
    line-height: 1.4;
  }
}

