﻿:root {
      --bg: #ffffff;
      --text: #2b2b2b;
      --muted: #6b7280;
      --brand: #64a5fa;
      --line: #e5e7eb;
      --shadow: 0 18px 50px rgba(0, 0, 0, .08);
      --radius: 28px;
      --container: 1200px;
    }

    * { box-sizing: border-box; }

    html, body { height: 100%; }

    body {
      margin: 0;
      font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      color: var(--text);
      background: var(--bg);
    }

    .container {
      max-width: var(--container);
      margin: 0 auto;
      padding: 0 16px;
    }

    /* ================= HEADER ================= */
    .header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      width: 100%;
      z-index: 50;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--line);
    }

    .header + * {
      margin-top: 68px;
    }

    .header__inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      padding: 12px 10px;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 6px;
      font-weight: 700;
      font-size: 20px;
    }

    .nav {
      display: flex;
      gap: 16px;
      font-size: 14px;
    }

    .nav a {
      padding: 6px 8px;
      border-radius: 999px;
      transition: background 0.2s ease;
    }

    .nav a:hover {
      background: #e7f0fe;
    }

    .nav__link--active {
      font-weight: 600;
      color: #0a66ff;
      text-decoration: none;
    }

    .header__contacts {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 14px;
    }

    .header__phone {
      font-weight: 600;
      white-space: nowrap;
    }

    .btn {
      border: none;
      background: var(--brand);
      color: #fff;
      font-weight: 800;
      padding: 10px 14px;
      border-radius: 12px;
      cursor: pointer;
    }

    .btn--outline {
      background: transparent;
      border: 2px solid var(--brand);
      color: var(--brand);
    }

    .burger {
      display: none;
      flex-direction: column;
      gap: 4px;
      background: none;
      border: none;
      cursor: pointer;
    }

    .burger span {
      width: 20px;
      height: 2px;
      background: #111827;
    }

    /* ================= HERO FULL SCREEN ================= */
    .hero {
      min-height: calc(100vh - 70px);
      display: flex;
      align-items: center;
      padding: 40px 0;
    }

    .hero__container {
      display: grid;
      grid-template-columns: 1.25fr 0.95fr;
      gap: 26px;
      align-items: center;
      width: 100%;
    }

    .hero__title {
      margin: 0 0 18px;
      font-weight: 900;
      font-size: clamp(34px, 3.3vw, 56px);
      line-height: 1.05;
    }

    .hero__pill {
      display: inline-block;
      border: 2px solid var(--brand);
      color: var(--brand);
      padding: 10px 16px;
      border-radius: 999px;
      font-weight: 800;
      margin: 0 0 18px;
      text-align: center;
    }

    .hero__subtitle {
      margin: 0 0 26px;
      font-size: 20px;
      line-height: 1.5;
      color: #3f3f46;
    }

    .hero__offer {
      display: flex;
      gap: 22px;
      align-items: center;
      flex-wrap: wrap;
    }

    .price-badge {
      width: 260px;
      height: 260px;
      border-radius: 999px;
      background: var(--brand);
      color: #fff;
      box-shadow: var(--shadow);
      display: grid;
      place-items: center;
      text-align: center;
      padding: 18px;
    }

    .price-badge__old {
      font-weight: 800;
      font-size: 28px;
      text-decoration: line-through;
    }

    .price-badge__new {
      display: flex;
      align-items: baseline;
      gap: 8px;
    }

    .price-badge__from { font-weight: 800; }

    .price-badge__amount {
      font-weight: 900;
      font-size: 56px;
    }

    .price-badge__currency { font-weight: 900; }

    .price-badge__note { font-size: 16px; }

    .implant-illustration {
      width: min(350px, 42vw);
      height: 230px;
      border-radius: var(--radius);
      background-position: center;
      background-size: contain;
      background-repeat: no-repeat;
      border: 1px solid var(--line);
    }

    .hero__center {
      display: flex;
      justify-content: center;
    }

    /* ===== gallery ===== */
    .doctor-gallery {
      width: 100%;
      max-width: 430px;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      padding: 18px;
      border-radius: 34px;
      border: 1px solid var(--line);
      background: #fbfbfb;
      box-shadow: var(--shadow);
      touch-action: auto;
    }

    .doctor-gallery img {
      width: 190px;
      height: 252px;
      object-fit: cover;
      border-radius: 16px;
      transition: .25s ease;
      display: block;
    }

    .doctor-gallery img:hover { transform: scale(1.05); }

    .doctor-gallery__dots {
      display: none;
      justify-content: center;
      gap: 8px;
      margin-top: 10px;
      width: 100%;
    }

    .doctor-gallery__dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #d1d5db;
    }

    .doctor-gallery__dot.is-active { background: #111827; }

    /* ================= ALL-ON-4 BLOCKS ================= */
    .info-cards {
      margin-top: 22px;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
    }

    .info-card {
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 14px;
      background: #fff;

      opacity: 0;
      transform: translateY(14px);
      transition: .45s;
    }

    .info-card.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    .info-card h3 { margin: 0 0 8px; }
    .info-card p { margin: 0; color: #374151; line-height: 1.45; }

    .cta-row {
      margin-top: 16px;
      display: flex;
      gap: 14px;
      align-items: center;
      flex-wrap: wrap;
    }

    .link {
      color: var(--brand);
      font-weight: 800;
      text-decoration: none;
    }

    /* ================= QUIZ ================= */
    .quiz-wrapper {
      max-width: 800px;
      margin: 30px auto 0;
      background: #64a5fa;
      padding: 40px;
      border-radius: 20px;
      color: #fff;
    }

    .quiz-step { display: none; }

    .quiz-step.active {
      display: flex;
      flex-wrap: wrap;
      align-content: center;
      justify-content: space-evenly;
      gap: 10px;
      flex-direction: column;
    }

    .quiz-wrapper h2 {
      margin: 0 0 12px;
      font-size: 26px;
      line-height: 1.2;
    }

    .options label {
      display: block;
      background: white;
      color: #111827;
      padding: 16px;
      margin: 10px 0;
      border-radius: 12px;
      cursor: pointer;
      font-weight: 600;
    }

    .options input { margin-right: 8px; }

    .buttons {
      margin-top: 20px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .quiz-validation-hint {
      display: none;
      margin: 0 0 12px;
      color: #b42318;
      background: #fdecec;
      border: 1px solid #f7caca;
      border-radius: 12px;
      padding: 10px 12px;
      font-size: 14px;
      text-align: center;
      font-weight: 700;
    }

    .quiz-validation-hint.is-visible { display: block; }

    button, .input_phone_number {
      padding: 14px 30px;
      border: none;
      border-radius: 30px;
      font-size: 16px;
      cursor: pointer;
    }

    .next, .submit { background: #ff8825; color: white; font-weight: 800; }
    .prev { background: #eee; color: #111827; font-weight: 800; }

    .buttons .next { margin-left: auto; }

    .input_phone_number {
      background: white;
      color: #ff8825;
      font-weight: 800;
      outline: none;
    }

    .progress {
      height: 10px;
      background: #ddd;
      border-radius: 10px;
      margin-bottom: 20px;
      overflow: hidden;
    }

    .progress-bar {
      height: 100%;
      width: 20%;
      background: #1877F2;
      border-radius: 10px;
      transition: 0.3s;
    }

    /* ================= MAP ================= */
    .map-section { padding: 56px 0; }

    .map-section__title {
      margin: 0 0 8px;
      font-size: 32px;
      line-height: 1.2;
    }

    .map-section__address {
      margin: 0 0 18px;
      color: #4b5563;
      font-weight: 600;
    }

    .map-section__frame {
      border-radius: 18px;
      overflow: hidden;
      border: 1px solid #e5e7eb;
      box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
    }

    .map-section__frame iframe { display: block; }

    /* ================= REVIEWS ================= */
    .reviews-section { padding: 56px 0; }

    .reviews-section__head { margin-bottom: 16px; }

    .reviews-section__title {
      margin: 0;
      font-size: 32px;
      line-height: 1.2;
    }

    .reviews-carousel {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 10px;
      align-items: center;
    }

    .reviews-carousel__viewport {
      overflow: hidden;
      touch-action: pan-y;
    }

    .reviews-carousel__track {
      display: flex;
      transition: transform 0.28s ease;
      will-change: transform;
    }

    .review-card {
      flex: 0 0 100%;
      border: 1px solid #e5e7eb;
      border-radius: 16px;
      background: #fff;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
      padding: 16px;
      min-height: 190px;
    }

    .review-card__top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 10px;
    }

    .review-card__name { font-weight: 800; color: #111827; }
    .review-card__date { color: #6b7280; font-size: 13px; }
    .review-card__rating { color: #f59e0b; letter-spacing: 1px; margin-bottom: 10px; font-size: 15px; }
    .review-card__text { margin: 0; color: #1f2937; line-height: 1.45; }

    .reviews-carousel__nav {
      width: 42px;
      height: 42px;
      border: 1px solid #d1d5db;
      border-radius: 999px;
      background: #fff;
      color: #111827;
      font-size: 26px;
      line-height: 1;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .reviews-carousel__dots {
      display: flex;
      justify-content: center;
      gap: 8px;
      margin-top: 12px;
    }

    .reviews-carousel__dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #d1d5db;
    }

    .reviews-carousel__dot.is-active { background: #111827; }

    @media (min-width: 700px) { .review-card { flex-basis: 50%; } }
    @media (min-width: 1024px) { .review-card { flex-basis: 33.3333%; } }

    @media (max-width: 768px) {
      .reviews-section__title { font-size: 26px; }
      .reviews-carousel { grid-template-columns: 1fr; }
      .reviews-carousel__nav { display: none; }
    }

    /* ================= FIXED PHONE ================= */
    .fixed-phone-btn {
      position: fixed;
      bottom: 0%;
      right: calc(50% - 18px);
      transform: translateY(-50%);
      width: 58px;
      height: 58px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #16a34a;
      color: #fff;
      box-shadow: 0 12px 24px rgba(22, 163, 74, 0.35);
      z-index: 120;
      transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
      animation: phonePulse 2.2s ease-in-out infinite;
      text-decoration: none;
    }

    .fixed-phone-btn:hover {
      transform: translateY(-50%) scale(1.06);
      background: #15803d;
      box-shadow: 0 16px 28px rgba(21, 128, 61, 0.4);
    }

    .fixed-phone-btn svg {
      width: 26px;
      height: 26px;
      fill: currentColor;
    }

    @keyframes phonePulse {
      0% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 12px 24px rgba(22, 163, 74, 0.35), 0 0 0 0 rgba(22, 163, 74, 0.35);
      }
      50% {
        transform: translateY(-50%) scale(1.06);
        box-shadow: 0 14px 26px rgba(22, 163, 74, 0.4), 0 0 0 12px rgba(22, 163, 74, 0);
      }
      100% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 12px 24px rgba(22, 163, 74, 0.35), 0 0 0 0 rgba(22, 163, 74, 0);
      }
    }

    /* ================= FOOTER ================= */
    .footer {
      border-top: 1px solid var(--line);
      padding: 18px 0;
      color: #6b7280;
    }

    /* ================= MODAL ================= */
    .modal {
      position: fixed;
      inset: 0;
      display: none;
      z-index: 100;
    }

    .modal.is-open { display: block; }

    .modal__overlay {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, .45);
    }

    .modal__content {
      position: relative;
      width: min(520px, calc(100% - 32px));
      margin: 10vh auto;
      background: #fff;
      border-radius: 18px;
      box-shadow: var(--shadow);
      padding: 18px;
      color: #111827;
    }

    .modal__close {
      position: absolute;
      top: 10px;
      right: 10px;
      width: 40px;
      height: 40px;
      border-radius: 10px;
      border: 1px solid var(--line);
      background: #fff;
      cursor: pointer;
      font-size: 18px;
      line-height: 1;
    }

    .field { display: block; margin: 10px 0; }
    .field span { display: block; margin-bottom: 6px; font-weight: 700; }
    .field input,
    .field textarea {
      width: 100%;
      padding: 12px 14px;
      border-radius: 12px;
      border: 1px solid var(--line);
      outline: none;
      font: inherit;
      resize: vertical;
    }

    .modal-question-field {
      display: none;
    }

    .modal--question .modal-question-field {
      display: block;
    }

    /* ================= POPUP ================= */
    .site-popup {
      position: fixed;
      right: 16px;
      top: 24px;
      transform: translateY(-12px);
      opacity: 0;
      pointer-events: none;
      z-index: 220;
      max-width: min(92vw, 520px);
      width: max-content;
      padding: 12px 16px;
      border-radius: 12px;
      background: #111827;
      color: #fff;
      font-weight: 600;
      box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
      transition: opacity .2s ease, transform .2s ease;
      text-align: center;
    }

    .site-popup.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    .site-popup--success { background: #15803d; }
    .site-popup--error { background: #b91c1c; }

    /* ================= RESPONSIVE ================= */
    @media (max-width:1024px) {
      .hero__offer { justify-content: center; }
      .hero { min-height: auto; }
      .hero__container { grid-template-columns: 1fr; }
      .info-cards { grid-template-columns: 1fr; }
    }

    @media (max-width:960px) {
      .nav {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        display: none;
        z-index: 60;
      }
      .nav.nav--open { display: flex; }
      .burger { display: flex; }
      .header__contacts { display: none; }
    }

    @media (max-width:768px) {
      .hero__center {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 12px;
        overflow: visible;
      }
      .doctor-gallery {
        display: flex;
        width: min(430px, 100%);
        max-width: 100%;
        gap: 0;
        padding: 0;
        overflow-x: auto;
        overflow-y: hidden;
        border-radius: 18px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
      }
      .doctor-gallery::-webkit-scrollbar {
        display: none;
      }
      .doctor-gallery img {
        flex: 0 0 100%;
        width: 100%;
        max-width: none;
        height: 220px;
        border-radius: 0;
        transition: none;
        scroll-snap-align: start;
      }
      .doctor-gallery__dots { display: flex; }
    }

    @media (max-width:560px) {
      .price-badge { width: 220px; height: 220px; }
      .price-badge__amount { font-size: 46px; }
      .hero__subtitle { font-size: 18px; }
      .quiz-wrapper { padding: 22px; }
      .doctor-gallery img { height: 300px; }
    }

    @media (max-width:480px) {
      .container { padding: 0 12px; }
      .logo { font-size: 18px; }
      .burger span { width: 22px; }
    }

