.services__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: stretch; }
.service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.service--lead {
  padding: 38px 36px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 22px;
  align-items: center;
}
.service--lead::after {
  content: "";
  position: absolute;
  right: -16px;
  bottom: -18px;
  width: 140px;
  height: 165px;
  opacity: 0.08;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 140'%3E%3Crect x='55' y='122' width='10' height='14' rx='2' fill='%238a7a5c'/%3E%3Cpolygon points='60,16 34,56 86,56' fill='%236f7d55'/%3E%3Cpolygon points='60,44 26,88 94,88' fill='%2363714b'/%3E%3Cpolygon points='60,74 18,124 102,124' fill='%2358643f'/%3E%3Ccircle cx='47' cy='68' r='5' fill='%23c98f5f'/%3E%3Ccircle cx='74' cy='50' r='4' fill='%23efe6d2'/%3E%3Ccircle cx='63' cy='100' r='5' fill='%23a8a08c'/%3E%3Cpolygon points='60,2 61.6,6 65,7 61.6,8 60,12 58.4,8 55,7 58.4,6' fill='%23c98f5f'/%3E%3C/svg%3E") no-repeat center / contain;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service__tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--olive);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.service--lead .service__icon { width: 54px; height: 54px; grid-row: 1 / 3; align-self: center; }
.service--lead .service__icon svg { width: 30px; height: 30px; }
.service--lead .service__tag, .service--lead h3, .service--lead p { grid-column: 2; }
.service--lead .service__signs { grid-column: 1 / -1; }
.service--lead h3 { font-size: 1.45rem; margin-bottom: 10px; }
.service--lead p { color: var(--ink-soft); font-size: 1rem; max-width: 480px; }
.service__signs {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  margin: 22px 0 26px;
  font-size: 0.94rem;
  color: var(--ink);
}
.service__signs li { position: relative; padding-left: 16px; }
.service__signs li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--terracotta, #c98f5f);
}
.services__mini { display: grid; gap: 20px; }
.service--mini {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 24px;
}
.service__icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: #f0ecdd;
  color: var(--olive-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.service__icon svg { width: 26px; height: 26px; }
.service--mini h3 { font-size: 1.02rem; }
.service--mini p { margin-top: 4px; color: var(--ink-soft); font-size: 0.95rem; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.steps::before {
  content: "";
  position: absolute;
  top: 54px;
  left: 5%;
  right: 5%;
  border-top: 2px dashed #cfc7b2;
  z-index: 0;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--olive);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 18px;
  box-shadow: 0 0 0 6px var(--surface);
}
.step__time {
  position: absolute;
  top: 30px; right: 26px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--olive-dark);
  background: #f0ecdd;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  white-space: nowrap;
}
.step p { margin-top: 8px; color: var(--ink-soft); font-size: 0.98rem; }
.process__cta { margin-top: 40px; text-align: center; }

.prices__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 880px; }
.price {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}
.price--featured { border: 2px solid var(--olive); box-shadow: var(--shadow); }
.price__badge {
  position: absolute;
  top: -13px; left: 28px;
  background: var(--olive);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
}
.price__value { font-size: 2.3rem; font-weight: 700; margin: 12px 0 18px; color: var(--olive-dark); }
.price ul { list-style: none; margin-bottom: 28px; flex: 1; }
.price li { padding: 7px 0 7px 24px; position: relative; color: var(--ink-soft); font-size: 0.97rem; }
.price li::before { content: "\2713"; position: absolute; left: 0; color: var(--olive); font-weight: 700; }
.prices__note { margin-top: 28px; color: var(--ink-soft); font-size: 0.95rem; max-width: 640px; }

.faq__list { display: grid; gap: 14px; max-width: 820px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.faq__item h3 { margin-bottom: 6px; font-size: 1.02rem; }
.faq__item p { color: var(--ink-soft); font-size: 0.97rem; }

.contacts { background: var(--olive-dark); color: #fff; }
#contacts { padding: 40px 0 48px; }
.contacts__grid { gap: 32px; }
.contacts__text > p:not(.section__eyebrow) { margin-top: 12px; }
.contacts__cat { margin-top: 18px !important; padding: 12px 16px; }
.contacts__list { gap: 10px; }
.contacts__list a, .contacts__addr { padding: 12px 16px; }
.contacts .section__eyebrow { color: #cfd8bd; }
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contacts__text h2 { margin-top: 8px; }
.contacts__text > p:not(.section__eyebrow) { color: #d7dcc8; margin-top: 16px; max-width: 480px; }
.contacts__cat {
  margin-top: 24px !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: #fff !important;
}
.contacts__list { list-style: none; display: grid; gap: 12px; }
.contacts__list a, .contacts__addr {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 16px 22px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background 0.2s ease;
}
.contacts__list a:hover { background: rgba(255, 255, 255, 0.14); }
.contacts__list a > span:first-child, .contacts__addr > span:first-child {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfd8bd;
  margin-bottom: 4px;
}

.footer { background: #23261c; color: #b9bfae; padding: 28px 0; font-size: 0.88rem; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ Образование и документы ============ */
.docs__head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 20px;
}

.docs__nav { display: flex; gap: 8px; }

.docs__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.docs__btn:hover:not(:disabled) { background: var(--olive); border-color: var(--olive); color: #fff; }
.docs__btn:disabled { opacity: 0.35; cursor: default; }

.docs__list {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--olive) transparent;
  padding: 4px 2px 14px;
  -webkit-overflow-scrolling: touch;
}

.doc-card {
  margin: 0;
  flex: 0 0 min(340px, 84vw);
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.doc-card img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  cursor: zoom-in;
  border-bottom: 1px solid var(--line);
  background: #f3eee2;
  flex-shrink: 0;
}

.doc-card figcaption {
  padding: 18px 20px 22px;
  flex: 1;
}

.doc-card h3 {
  font-size: 1.1rem;
  margin: 0 0 6px;
}

.doc-card__meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.doc-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 10px;
}

.doc-card ul {
  margin: 0 0 10px;
  padding-left: 20px;
}

.doc-card li {
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 8px;
}

/* ============ Лайтбокс документов ============ */
.lightbox[hidden] { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(25, 24, 18, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.lightbox__close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__close:hover { background: rgba(255, 255, 255, 0.25); }

/* ============ Институты (ТвГУ / ИПО) ============ */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.edu-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--olive);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}

.edu-card__tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--olive-dark);
  margin-bottom: 8px;
}

.edu-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.edu-card p { color: var(--ink-soft); line-height: 1.6; }

.docs__subhead {
  font-size: 1.2rem;
  margin: 0;
}

/* ============ Расписание ============ */
.schedule__wrap { overflow-x: auto; }

.schedule__table {
  width: 100%;
  min-width: 620px;
  table-layout: fixed;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.92rem;
}

.schedule__table th,
.schedule__table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: center;
}

.schedule__table thead th {
  background: var(--olive);
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.schedule__table tbody th {
  background: var(--bg-alt);
  font-weight: 600;
  white-space: nowrap;
}

.schedule__table td.free {
  background: #dcead0;
  color: var(--olive-dark);
  font-weight: 600;
}

.schedule__table td.busy {
  color: #9c6f57;
  background: #f0e0d5;
  font-size: 0.85rem;
}

.schedule__cta { margin-top: 22px; text-align: center; }

.schedule__note {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* Отзывы */
.review-list {
  max-width: 640px;
  margin: 0 auto 24px;
}
.review-list__empty {
  margin: 0;
  padding: 18px 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.review-list blockquote.review {
  margin: 0 0 14px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.review-list blockquote.review p { margin: 0 0 8px; }
.review-list blockquote.review footer { color: var(--ink-soft); font-size: 0.85rem; }

.review-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.review-form label {
  display: block;
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.review-form label span {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--ink);
}
.review-form input,
.review-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.review-form textarea { resize: vertical; min-height: 110px; }
.review-form input:focus,
.review-form textarea:focus { outline: 2px solid var(--olive); border-color: transparent; }
.review-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
@media (max-width: 600px) {
  .review-form { padding: 20px 18px; }
  .review-form__row { grid-template-columns: 1fr; }
}
.review-form .btn { width: 100%; text-align: center; }
.review-form__status {
  margin: 12px 0 0;
  min-height: 1.2em;
  color: #a4543f;
  font-size: 0.9rem;
}
.review-form__thanks {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--olive-dark);
}

/* Галерея */
.gallery__stage { position: relative; }

.gallery__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 12px;
}

.gallery__slide {
  flex: 0 0 auto;
  width: min(440px, 80vw);
  margin: 0;
  scroll-snap-align: center;
}

.gallery__slide img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery__slide figcaption {
  margin-top: 8px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-58%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--olive-dark);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s ease;
}

.gallery__arrow:hover { background: var(--bg-alt); }
.gallery__arrow--prev { left: -10px; }
.gallery__arrow--next { right: -10px; }

/* Новогодний декор: гирлянда с елками */
.garland { display: flex; justify-content: center; padding: 0 0 44px; }
.garland svg { width: min(430px, 88vw); height: auto; }

/* Карта в контактах */
.contacts__map {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.contacts__map iframe {
  width: 100%;
  height: 340px;
  border: 0;
  display: block;
}

@media (max-width: 860px) {
  .gallery__arrow--prev { left: 4px; }
  .gallery__arrow--next { right: 4px; }
  .gallery__slide img { height: 340px; }
  .contacts__map iframe { height: 320px; }
}

/* Списки в карточках блока Обо мне */
.card__list { list-style: none; }
.card__list li { position: relative; padding-left: 18px; margin-bottom: 8px; }
.card__list li:last-child { margin-bottom: 0; }
.card__list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--olive); }

/* ============ Карточки «Обо мне»: уменьшенный шрифт ============ */
.about__cards .card h3 { font-size: 0.9rem; }
.about__cards .card p { font-size: 0.83rem; line-height: 1.5; }
.about__cards .card__list li { font-size: 0.83rem; line-height: 1.5; }

/* ============ Расписание: гирлянда сверху и подарки снизу ============ */
.schedule__garland {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 8px;
}

.schedule__presents {
  display: block;
  width: min(560px, 100%);
  height: auto;
  margin: 14px auto 0;
}

.schedule__garland .bulb { animation: bulb-twinkle 2.2s ease-in-out infinite; }

@keyframes bulb-twinkle {
  0%, 100% { opacity: 0.4; filter: drop-shadow(0 0 0 rgba(255, 214, 130, 0)); }
  50% { opacity: 1; filter: drop-shadow(0 0 5px rgba(255, 214, 130, 0.9)); }
}

@media (prefers-reduced-motion: reduce) {
  .schedule__garland .bulb { animation: none; }
}

/* Согласие на обработку персональных данных */
.review-form label.form-consent { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.review-form .form-consent span { display: inline; margin: 0; font-weight: 500; font-size: 0.85rem; color: var(--ink-soft); }
.form-consent input[type="checkbox"] { width: auto; margin-top: 3px; accent-color: var(--olive); }
.form-consent a { color: var(--olive-dark); text-decoration: underline; text-underline-offset: 2px; }

/* Подсказка «как найти кабинет» под картой */
.contacts__way {
  padding: 14px 18px;
  background: var(--olive-dark);
  color: #fff;
  font-size: 0.95rem;
}

/* Сноска в футере: оговорка + ссылка на политику */
.footer__note { flex-basis: 100%; color: #98a08e; }
.footer a { text-decoration: underline; text-underline-offset: 2px; }

/* Страница политики обработки персональных данных */
.privacy { padding: 64px 0 96px; }
.privacy__inner { max-width: 780px; }
.privacy__inner h1 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
.privacy__updated { color: var(--ink-soft); font-size: 0.9rem; margin: 10px 0 30px; }
.privacy__inner h3 { margin: 26px 0 8px; }
.privacy__inner p, .privacy__inner li { color: var(--ink-soft); font-size: 0.97rem; }
.privacy__inner p { margin-top: 10px; }
.privacy__inner ul { margin: 8px 0 0 22px; }
.privacy__inner li { margin-top: 6px; }
.privacy__inner a { color: var(--olive-dark); text-decoration: underline; text-underline-offset: 2px; }
.privacy__back { margin-top: 36px; }
.privacy__back a { text-decoration: none; }
