:root {
  --bg: #000;
  --text: #fff;
  --accent: #b57a3c;
  --accent2: #8f5a2b;
  --gap: 12px;
  --header-bg: #f7fafa;
  --header-border: rgba(0, 0, 0, 0.06); 
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; 
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  color: #fff;
  font-family: Arial, sans-serif;
}

body {
  padding-top: 88px;
  padding-bottom: 90px;
  background-image:
    linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.0)),
    url("../images/fna.jpg");
  background-repeat: no-repeat, no-repeat;
  background-position: center center, center center;
  background-size: cover, cover;
  background-attachment: fixed, fixed;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

section[id] {
  scroll-margin-top: 100px;
}

#offer-block {
  scroll-margin-top: 85px;
}

#services {
  scroll-margin-top: 110px;
}

#tests {
  scroll-margin-top: 80px;
}

#videos {
  scroll-margin-top: 110px;
}

#tasks {
  scroll-margin-top: 110px;
}

#prices {
  scroll-margin-top: 110px;
}

#faq {
  scroll-margin-top: 110px;
}

#contact {
  scroll-margin-top: 110px;
}

/* =========================
   GENERAL
   ========================= */
.content {
  background: transparent;
}

.section {
  padding: 40px 0;
}

.section-head {
  margin-bottom: 14px;
}

.section-head span {
  color: #a2f3b0;
  font-weight: 700;
  font-size: 30px;
}
.section-head p {
  color: #fff;
  font-weight: 500;
  font-size: 20px;
}
.section-head h2 {
  color: #fff;
  font-weight: 700;
  font-size: 25px;
}

.zagjkjvok {
  position: relative;
  z-index: 1;
  margin-top: 12px;
}

.zagjkjvok h1 {
  display: block;
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(38px, 4vw, 65px);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  color: #fff;
  padding: 44px 15px;
}
.outlined-text {
  color: #fff;
  -webkit-text-stroke: 1px #000000;
}

/* =========================
   OFFER
   ========================= */
section#offer-block {
  margin-top: 30px;
}

.offer-block {
  padding-top: 20px;
}

.offer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.offer-text,
.offer-cards {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(181, 122, 60, 0.12);
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  padding: 28px;
  min-width: 0;
}

.offer-label {
  display: inline-block;
  margin-bottom: 14px;
  color: #b57a3c;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}

.offer-text h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  color: #2f261d;
}

.offer-text p {
  margin: 0 0 14px;
  font-size: 19px;
  line-height: 1.75;
  font-weight: 700;
  color: #4d4032;
}

.offer-highlight {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 4px solid #b57a3c;
  background: rgba(181, 122, 60, 0.08);
  border-radius: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: #660033;
}

.offer-cards {
  display: grid;
  gap: 16px;
}

.offer-card {
  background: rgba(181, 122, 60, 0.08);
  border-radius: 20px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.offer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.offer-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #2f261d;
}

.offer-card p {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  font-weight: 700;
  color: #660033;
}

.offer-card .teacher-photo {
  display: block;
  margin: 0 auto 12px;
  max-width: 100%;
  height: auto;
}
/* =========================
   otziv
  
   ========================= */

.review-card-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.review-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 18px;
  background: #eee;
}

.review-track {
  display: flex;
  width: 100%;
  transition: transform 0.4s ease;
  will-change: transform;
}

.review-slide {
  flex: 0 0 100%;
  height: 76vh;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
}

.review-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media (min-width: 901px) {
  .review-slide img {
    object-fit: contain;
    object-position: center center;
    background: #fff;
  }
}

@media (max-width: 1600px) {
  .review-slide {
    height: 76vh;
  }
}

@media (max-width: 1366px) {
  .review-slide {
    height: 74vh;
  }
}

@media (max-width: 1200px) {
  .review-slide {
    height: 72vh;
  }
}

@media (max-width: 900px) {
  .review-slide {
    height: 70vh;
  }
}

@media (max-width: 480px) {
  .review-carousel {
    border-radius: 14px;
  }

  .review-slide {
    height: 68vh;
  }
}

.review-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

/* =========================
   REELS
   ========================= */
.reels-wrapper-horizontal {
  position: relative;
  width: 100%;
  padding: 0 56px;
}

.reels-row {
  display: grid;
  gap: var(--gap);
  overflow: hidden;
  scroll-behavior: smooth;
  align-items: start;
  min-width: 0;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 5 * var(--gap)) / 6);
}

.reel {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  border: 5px solid #f5f5f5f5;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.reel video,
.reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reels-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: rgba(80, 80, 80, 0.75);
  color: #fff;
  z-index: 20;
  cursor: pointer;
  font-size: 18px;
}

.reels-prev {
  left: 8px;
}

.reels-next {
  right: 8px;
}

.reels-footer {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.reels-list-container {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.reels-list-container.active {
  display: flex;
}

.reels-list {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  scroll-behavior: smooth;
  gap: 0;
  padding: 4px 0 80px;
}
.reels-list-container {
  display: none;
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(0,0,0,.3), rgba(0,0,0,.3)),
    url("../images/fon.jpg") center center/cover no-repeat;
  background-attachment: fixed;
  z-index: 3000;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}


.reel.reel-full {
  width: auto;
  height: 100vh;
  aspect-ratio: 9 / 16;
  background: #000;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.reel-video.reel-video-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 15px solid #f5f5f5;
}

.reels-list-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  z-index: 3005;
  pointer-events: none;
}

.reels-list-footer .btn {
  min-width: 170px;
  position: relative;
  z-index: 3006;
  pointer-events: auto;
}
/* Карточка рилса */
.reel-card {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Сам рилс */
.reel-card .reel {
  width: 100%;
}

/* Ссылка под рилсом */
.reel-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(180deg, #d98a45, #b56a2f);
  box-shadow: 0 6px 14px rgba(181, 106, 47, .25);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.reel-link:hover {
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 9px 18px rgba(181, 106, 47, .35);
}

@media (max-width: 480px) {
  .reel-link {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* =========================
   REVEAL
   ========================= */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* =========================
   GRID / CARDS
   ========================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  background: linear-gradient(180deg, #fff 0%, #f9f4ed 100%);
  border: 1px solid rgba(181, 122, 60, 0.12);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #2f261d;
}

.card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #4d4032;
}

/* =========================
   VIDEOS
   ========================= */
.videos-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  align-items: start;
}

.video-main {
  background: #fff;
  border: 1px solid rgba(181, 122, 60, 0.12);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.video-main video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #000;
  display: block;
}

.video-main-info {
  margin-top: 12px;
}

.video-main-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #2f261d;
}

.video-main-info p {
  margin: 0;
  color: #4d4032;
  line-height: 1.6;
}

.video-sidebar {
  height: 60vh;
  overflow: hidden;
  display: grid;
  gap: 10px;
  min-height: 0;
  padding-right: 0;
}

.video-thumb {
  width: 100%;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: start;
  border: 0;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(181, 122, 60, 0.12);
  border-radius: 16px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.video-thumb img {
  width: 120px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
}

.video-thumb h4 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #2f261d;
}

.video-thumb p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #4d4032;
}

.video-thumb.active {
  outline: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.98);
}

/* =========================
   FAQ
   ========================= */
.faq-section {
  padding: 70px 0 90px;
}

.faq-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.faq-head {
  max-width: 720px;
  margin: 0 auto 24px;
  text-align: center;
}

.faq-head h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  color: #fff;
}

.faq-head p {
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: 16px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
}

.faq-question {
  width: 100%;
  padding: 18px 20px;
  border: 0;
  cursor: pointer;
  background: rgba(255,255,255,.95);
  color: #111;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}

.faq-question span {
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 900;
  color: #b8843b;
  transition: transform .2s ease;
}

.faq-item.open .faq-question span {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background: rgba(255,255,255,.88);
  transition: max-height .3s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 20px 18px;
  color: #222;
  line-height: 1.6;
  font-size: 15px;
}

.faq-item.open .faq-answer {
  max-height: 260px;
}

/* =========================
   CONTACT
   ========================= */
#contact {
  padding: 60px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.contact-info {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(181, 122, 60, 0.12);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.contact-info span {
  display: inline-block;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 20px;
}

.contact-info h3 {
  margin: 0 0 12px;
  font-size: clamp(16px, 3vw, 18px);
  line-height: 1.2;
  color: #660033;
}

.contact-info p {
  margin: 0 0 12px;
  line-height: 1.7;
  color: #4d4032;
  font-size: 16px;
}

.contact-details {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-details p {
  margin: 0 0 8px;
}

.form {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(181, 122, 60, 0.12);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.form-row {
  margin-bottom: 14px;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid rgba(47, 38, 29, 0.15);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-size: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.form textarea {
  resize: vertical;
  min-height: 120px;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(181, 122, 60, 0.12);
}

.form .counter {
  margin-top: 8px;
  font-size: 13px;
  color: #7b6757;
}

.form .btn {
  width: 100%;
  min-height: 48px;
}

.g-recaptcha {
  max-width: 100%;
  overflow-x: auto;
}

/* =========================
   PRICE
   ========================= */
.price-section {
  padding: 60px 0;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(181, 122, 60, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  min-width: 0;
}

.price-card h3 {
  margin: 0;
  font-size: 22px;
  color: var(--text);
}

.price-value {
  font-size: 34px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--accent2);
}

.price-list {
  margin: 0;
  padding-left: 18px;
  color: #4d4032;
  line-height: 1.7;
}

.price-list li {
  margin-bottom: 6px;
}

.price-btn {
  width: 100%;
  margin-top: auto;
}

.price-card--featured {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, #fff 0%, #f9f4ed 100%);
  transform: translateY(-4px);
}

.price-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #0d8d23;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* =========================
   FOOTER
   ========================= */
.site-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 1000;
  background-image:
    linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.05)),
    url("../images/fona.jpg");
  color: #fff;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.18);
  padding: 12px 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-copy {
  font-size: 24px;
  line-height: 1.2;
  white-space: nowrap;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff8f1;
  background: rgba(255, 255, 255, 0.14);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.footer-social a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.24);
}

.social-icon {
  width: 30px;
  height: 30px;
  fill: currentColor;
  display: block;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1200px) {
  .offer-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .reels-row {
    grid-auto-columns: calc((100% - 2 * var(--gap)) / 3);
  }

  .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav {
    min-height: 76px;
    flex-wrap: wrap;
  }

  .menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 0 14px;
  }

  .menu.open {
    display: flex;
  }

  .burger {
    display: block;
    color: #fff !important;
  }

  .nav-actions {
    margin-left: auto;
  }

  .offer-grid {
    grid-template-columns: 1fr;
  }

  .reels-wrapper-horizontal {
    padding: 0 12px;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .videos-layout {
    grid-template-columns: 1fr;
  }

  .video-sidebar {
    max-height: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .logo {
    display: flex;
  }

  .footer-copy {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 14px;
  }

  .nav {
    min-height: 72px;
  }

  .offer-text,
  .offer-cards {
    padding: 20px;
    border-radius: 22px;
  }

  .offer-text h2 {
    font-size: 30px;
  }

  .offer-text p,
  .offer-card p {
    font-size: 16px;
  }

  .reels-row {
    grid-auto-columns: calc((100% - var(--gap)) / 2);
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .reel.reel-full {
    height: 88vh;
  }

  .offer-card .teacher-photo {
    width: 100%;
    max-width: 260px;
  }

  .faq-section {
    padding: 50px 0 70px;
  }

  .faq-question {
    padding: 16px;
    font-size: 15px;
  }

  .faq-answer p {
    padding: 0 16px 16px;
  }

  .price-grid {
    grid-template-columns: 1fr;
  }

  .price-card--featured {
    transform: none;
  }
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .site-footer {
    padding: 10px 0;
  }
}

@media (max-width: 480px) {
  .header {
    background:
      linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 15%),
      linear-gradient(180deg, #402714 0%, #6a3f21 35%, #8b5a2b 58%, #5f381d 100%);
  }

  .nav {
    min-height: 64px;
    padding: 8px 0;
  }

  .logo img {
    height: 46px;
  }

  .btn {
    padding: 9px 12px;
    font-size: 13px;
    border-radius: 12px;
  }

  .burger {
    font-size: 28px;
    padding: 6px 8px;
  }

  .reels-wrapper-horizontal {
    padding: 0 6px;
  }

  .reels-row {
    grid-auto-columns: 100%;
  }

  .reels-arrow {
    width: 38px;
    height: 38px;
  }

  .reel {
    border-width: 5px;
  }

  .reel.reel-full {
    width: 94vw;
    height: 88vh;
  }

  .reels-list-footer .btn {
    min-width: 140px;
  }

  .zagjkjvok h1 {
    font-size: 24px;
    padding: 10px 8px;
  }

  .section {
    padding: 28px 0;
  }

  .contact-info,
  .form {
    padding: 18px;
    border-radius: 18px;
  }

  .form input,
  .form select,
  .form textarea {
    font-size: 15px;
    padding: 12px 14px;
  }

  .price-card {
    padding: 20px;
    border-radius: 18px;
  }

  .price-value {
    font-size: 28px;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 8px;
  }

  .offer-text,
  .offer-cards {
    padding: 14px;
  }

  .offer-text h2 {
    font-size: 22px;
  }

  .offer-text p,
  .offer-card p {
    font-size: 14px;
  }

  .reel.reel-full {
    width: 96vw;
    height: 84vh;
  }

  .btn {
    padding: 9px 12px; 
    font-size: 13px;
  }

  .zagjkjvok h1 {
    font-size: 21px;
  }
}
#services .section-head {
  width: 100%;
  max-width: 850px;
  margin: 0 auto 24px;
  text-align: center;
}

#services .section-head span,
#services .section-head h2,
#services .section-head p {
  text-align: center;
}

#services .section-head h2 {
  margin: 8px auto 12px;
}

#services .section-head p {
  margin: 0 auto;
}

@media (max-width: 600px) {
  #services .section-head { 
    padding: 0 12px;
    text-align: center;
  }

  #services .section-head h2 {
    font-size: 24px;
    line-height: 1.25;
  }

  #services .section-head p {
    font-size: 15px;
  }
}
/* Центрирование заголовков и описаний секций */
.site-main {
  text-align: center;
}

.site-main .section-head {
  max-width: 850px;
  margin: 0 auto 24px;
  text-align: center;
}

.site-main .section-head h1,
.site-main .section-head h2,
.site-main .section-head h3,
.site-main .section-head p,
.site-main .section-head span {
  text-align: center;
}

/* Текст внутри карточек оставляем слева */
.site-main .card,
.site-main .offer-card,
.site-main .faq-answer,
.site-main .contact-info,
.site-main .form {
  text-align: left;
}
.tests-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  /*
   * 86.666% вместо 100%:
   * каждая карточка получается примерно на 30% шире,
   * чем одна карточка в сетке из трёх колонок
   */
  width: 86.666%;
  max-width: 1000px;
  margin: 0 auto;

  gap: 24px;
  justify-content: center;
  align-items: stretch;
}

.tests-cards .card {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  text-decoration: none;
}

/* Телефон */
@media (max-width: 650px) {
  .tests-cards {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 500px;
    gap: 16px;
  }
}
.contact-socials {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;
  border-radius: 50%;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.35);
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.social-icon {
  width: 22px;
  height: 22px;
  fill: #fff;
}

/* Цвета под конкретные соцсети */
.social-icon-telegram {
  /* фон берём с контейнера */
}

.social-link[href*="t.me"] {
  background: #2aabee;
}

.social-link[href*="youtube.com"],
.social-link[href*="youtu.be"] {
  background: #ff0000;
}

.social-link[href*="vk.com"] {
  background: #0077ff;
}

.social-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.social-link:active {
  transform: translateY(0);
  box-shadow: none;
}


/* текст на главной*/

.problems-list {
  overflow: hidden;
}

.problem-line {
  margin: 0 0 14px;
  opacity: 0;
  transform: translateY(24px) scale(0.92);
  transform-origin: left center;
}

/*
 * После попадания списка в область просмотра
 * каждая строка появляется с собственной задержкой
 */
.problems-list.is-visible .problem-line {
  animation: problem-line-appear 1.2s ease-out forwards;
}

.problems-list.is-visible .problem-line:nth-child(1) {
  animation-delay: 0s;
}

.problems-list.is-visible .problem-line:nth-child(2) {
  animation-delay: 1.3s;
}

.problems-list.is-visible .problem-line:nth-child(3) {
  animation-delay: 2.6s;
}

.problems-list.is-visible .problem-line:nth-child(4) {
  animation-delay: 3.9s;
}

.problems-list.is-visible .problem-line:nth-child(5) {
  animation-delay: 5.2s;
}

@keyframes problem-line-appear {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.92);
  }

  70% {
    opacity: 1;
    transform: translateY(-3px) scale(1.02);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/*
 * Для пользователей, отключивших анимацию
 */
@media (prefers-reduced-motion: reduce) {
  .problem-line,
  .problems-list.is-visible .problem-line {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
