/*
Theme Name: PROMEDOC ACF Editable
Theme URI: https://example.com/
Author: Generated by ChatGPT
Description: Одностраничная WordPress-тема PROMEDOC с автоматическим созданием редактируемой главной страницы и AJAX-формами.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: promedoc
*/

    .field {
      margin-bottom: 15px;
    }
    :root {
      --blue: #70d2d2;
      --blue-light: #eefbfb;
      --blue-soft: #dff7f7;
      --dark: #25333a;
      --text: #34515b;
      --muted: #6f858c;
      --white: #ffffff;
      --border: #d8f2f2;
      --shadow: 0 18px 45px rgba(30, 78, 90, 0.1);
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      font-family: Inter, Arial, sans-serif;
      background: #ffffff;
      color: var(--text);
    }

    img { max-width: 100%; display: block; }
    a { color: inherit; text-decoration: none; }

    .container {
      width: min(1160px, calc(100% - 40px));
      margin: 0 auto;
    }

    .header {
      position: sticky;
      top: 0;
      z-index: 50;
      background: rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border);
    }

    .header-inner {
      min-height: 84px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .logo {
      height: 52px;
      width: auto;
      object-fit: contain;
    }

    .nav {
      display: flex;
      align-items: center;
      gap: 30px;
      font-size: 16px;
      font-weight: 800;
      color: var(--dark);
    }

    .burger {
      display: none;
      width: 46px;
      height: 46px;
      border: 0;
      border-radius: 50%;
      background: var(--blue-light);
      cursor: pointer;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 5px;
      flex: 0 0 auto;
    }

    .burger span {
      width: 20px;
      height: 2px;
      border-radius: 99px;
      background: var(--dark);
      transition: .25s ease;
    }

    .burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .burger.active span:nth-child(2) { opacity: 0; }
    .burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .mobile-menu {
      position: fixed;
      inset: 0;
      z-index: 9998;
      background: rgba(37, 51, 58, .65);
      backdrop-filter: blur(6px);
      opacity: 0;
      visibility: hidden;
      transition: .25s ease;
      display: none;
    }

    .mobile-menu.active {
      opacity: 1;
      visibility: visible;
    }

    .mobile-menu__panel {
      position: absolute;
      top: 0;
      right: 0;
      width: min(360px, 88vw);
      height: 100%;
      background: #fff;
      padding: 26px;
      box-shadow: -18px 0 45px rgba(30, 78, 90, .14);
      transform: translateX(100%);
      transition: .25s ease;
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    .mobile-menu.active .mobile-menu__panel {
      transform: translateX(0);
    }

    .mobile-menu__top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }

    .mobile-menu__close {
      width: 42px;
      height: 42px;
      border: 0;
      border-radius: 50%;
      background: var(--blue-light);
      color: var(--dark);
      cursor: pointer;
      font-size: 26px;
      line-height: 1;
    }

    .mobile-menu__links {
      display: grid;
      gap: 12px;
    }

    .mobile-menu__links a {
      padding: 16px 18px;
      border-radius: 18px;
      background: var(--blue-light);
      color: var(--dark);
      font-weight: 900;
    }

    .mobile-menu__actions {
      display: grid;
      gap: 12px;
      margin-top: auto;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 54px;
      padding: 0 30px;
      border-radius: 999px;
      background: var(--dark);
      color: var(--white);
      font-size: 13px;
      font-weight: 950;
      text-transform: uppercase;
      letter-spacing: 0.03em;
      border: 0;
      cursor: pointer;
      transition: 0.25s ease;
    }

    .btn:hover {
      transform: translateY(-2px);
      background: #10252e;
    }

    .btn-light {
      background: rgba(255, 255, 255, 0.55);
      color: var(--dark);
      border: 1px solid rgba(255,255,255,.8);
    }

    .btn-light:hover { background: rgba(255,255,255,.78); }

    .hero { padding-top: 34px; }

    .hero-card {
      position: relative;
      min-height: 590px;
      overflow: hidden;
      border-radius: 34px;
      background: var(--blue);
      padding: 58px 72px;
    }

    .hero-card::before,
    .hero-card::after {
      content: "";
      position: absolute;
      border-radius: 999px;
      background: rgba(255,255,255,.12);
      pointer-events: none;
    }

    .hero-card::before {
      width: 560px;
      height: 560px;
      right: -160px;
      top: -150px;
    }

    .hero-card::after {
      width: 430px;
      height: 430px;
      right: 260px;
      bottom: -220px;
    }

    .hero-grid {
      position: relative;
      z-index: 2;
      display: grid;
      grid-template-columns: 2.92fr 1.08fr;
      gap: 52px;
      align-items: center;
    }

    .hero-logo {
      height: 64px;
      width: auto;
      object-fit: contain;
      margin-bottom: 42px;
      filter: brightness(0.2);
    }

    .pill {
      display: inline-flex;
      padding: 10px 16px;
      border-radius: 999px;
      background: rgba(255,255,255,.28);
      color: var(--dark);
      font-size: 13px;
      font-weight: 950;
      text-transform: uppercase;
      letter-spacing: .04em;
    }

    h1 {
      max-width: 620px;
      margin: 24px 0 0;
      color: var(--dark);
      font-size: clamp(42px, 5vw, 52px);
      line-height: 1.02;
      letter-spacing: -0.055em;
      font-weight: 950;
    }

    .lead {
      max-width: 540px;
      margin: 24px 0 0;
      font-size: 18px;
      line-height: 1.72;
      color: #3e5f68;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      margin-top: 34px;
    }

    .hero-photo {
      position: relative;
      min-height: 470px;
    }

    .photo-bg {
      position: absolute;
      top: 34px;
      right: 0;
      width: 74%;
      height: 398px;
      border-radius: 34px;
      background: rgba(255,255,255,.24);
      box-shadow: inset 0 0 80px rgba(255,255,255,.12);
    }

    .hero-photo img {
      position: absolute;
      right: 28px;
      bottom: -18px;
      max-height: 492px;
      width: auto;
      object-fit: contain;
      filter: drop-shadow(0 32px 32px rgba(30, 75, 90, .24));
      border-radius: 11px;
    }

    .floating-note {
      position: absolute;
      left: 0;
      bottom: 24px;
      max-width: 320px;
      padding: 20px 22px;
      border-radius: 26px;
      background: rgba(255,255,255,.72);
      border: 1px solid rgba(255,255,255,.82);
      box-shadow: var(--shadow);
      backdrop-filter: blur(12px);
      color: var(--dark);
      font-weight: 950;
      line-height: 1.25;
    }

    .stats {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
      margin-top: 22px;
    }

    .stat {
      border-radius: 24px;
      background: var(--blue-light);
      border: 1px solid var(--border);
      padding: 22px;
      text-align: center;
      color: var(--dark);
      font-weight: 950;
    }

    .section { padding-top: 74px; }

    .section-title {
      margin: 0;
      color: var(--dark);
      font-size: clamp(32px, 4vw, 44px);
      line-height: 1.08;
      letter-spacing: -0.04em;
      font-weight: 950;
    }

    .section-subtitle {
      margin: 14px auto 0;
      max-width: 600px;
      line-height: 1.7;
      color: var(--muted);
      font-size: 17px;
      padding: 0 40px;
    }

    .card {
      border-radius: 34px;
      background: var(--blue-light);
      padding: 48px;
    }

    .two-col {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 46px;
      align-items: center;
    }

    .text {
      margin: 22px 0 0;
      color: var(--muted);
      font-size: 17px;
      line-height: 1.72;
    }

    .check-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-top: 28px;
    }

    .check-card {
      border-radius: 18px;
      background: white;
      padding: 16px;
      color: var(--dark);
      font-weight: 850;
      box-shadow: 0 10px 26px rgba(28,75,90,.05);
    }

    .check-card::before,
    .list li::before,
    .plan li::before {
      content: "✓";
      margin-right: 10px;
      color: #159eb0;
      font-weight: 950;
    }

    .image-box {
        border-radius: 28px;
        background: #fff;
        padding: 14px;
        box-shadow: 0 12px 30px rgba(28, 75, 90, .05);
        position: relative;
        width: 330px;
        height: 330px;
        border-radius: 330px;
        /* overflow: hidden; */
        margin: 0 auto;
    }

    .image-box img {
        width: 100%;
        height: 365px;
        object-fit: cover;
        object-position: center;
        border-radius: 22px;
        border-radius: 330px;
        width: 100%;
        height: auto;
        height: 302px;
    }

    .benefits-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
      margin-top: 30px;
    }

    .benefit {
      position: relative;
      min-height: 230px;
      overflow: hidden;
      border-radius: 30px;
      background: var(--blue);
      padding: 34px;
    }

    .benefit::before,
    .benefit::after {
      content: "";
      position: absolute;
      border-radius: 999px;
      background: rgba(255,255,255,.13);
    }

    .benefit::before {
      width: 250px;
      height: 250px;
      right: -60px;
      top: -80px;
    }

    .benefit::after {
      width: 300px;
      height: 300px;
      left: 120px;
      bottom: -210px;
    }

    .benefit-content { position: relative; z-index: 2; }
    .benefit-icon { font-size: 42px; margin-bottom: 24px; }

    .benefit h3 {
      max-width: 360px;
      margin: 0;
      color: var(--dark);
      font-size: 27px;
      line-height: 1.12;
      font-weight: 950;
      letter-spacing: -0.025em;
    }

    .benefit p {
      max-width: 410px;
      margin: 15px 0 0;
      color: #3e5f68;
      line-height: 1.65;
    }

    .speaker {
      display: grid;
      grid-template-columns: 0.85fr 1.15fr;
      overflow: hidden;
      border-radius: 34px;
      background: var(--blue-light);
    }

    .speaker-photo {
      padding: 28px;
    }

    .speaker-photo img {
        width: 100%;
        height: 100%;
        min-height: 460px;
        object-fit: cover;
        object-position: top;
        border-radius: 26px;
        border-radius: 1000px;
        width: 340px;
        height: 340px;
        min-height: 0;
        border: 20px solid #fff;
        margin: 0px auto 0;
    }

    .speaker-info { padding: 48px; }

    .kicker {
      color: #159eb0;
      font-size: 13px;
      font-weight: 950;
      text-transform: uppercase;
      letter-spacing: .07em;
    }

    .speaker-name {
      margin: 14px 0 0;
      color: var(--dark);
      font-family: Georgia, serif;
      font-size: clamp(28px, 4vw, 52px);
      line-height: 1.05;
      letter-spacing: -0.04em;
    }

    .speaker-role {
      margin: 18px 0 0;
      color: var(--dark);
      font-weight: 850;
      line-height: 1.65;
    }

    .list {
      display: grid;
      gap: 15px;
      margin: 28px 0 0;
      padding: 0;
      list-style: none;
      color: #45636b;
      line-height: 1.55;
    }

    .center { text-align: center; }

    .plans {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      margin-top: 34px;
    }

    .plan {
      position: relative;
      border: 1px solid var(--border);
      border-radius: 30px;
      background: white;
      padding: 32px;
      box-shadow: 0 12px 30px rgba(28,75,90,.06);
    }

    .plan.featured {
      border-color: #159eb0;
      box-shadow: 0 18px 45px rgba(21,158,176,.13);
    }

    .badge {
      position: absolute;
      top: -15px;
      left: 50%;
      transform: translateX(-50%);
      padding: 8px 18px;
      border-radius: 999px;
      background: #159eb0;
      color: white;
      font-size: 12px;
      font-weight: 950;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .plan-icon {
      width: 66px;
      height: 66px;
      display: grid;
      place-items: center;
      border-radius: 22px;
      background: var(--blue-light);
      color: #159eb0;
      font-size: 30px;
    }

    .plan h3 {
      margin: 22px 0 4px;
      color: var(--dark);
      font-size: 26px;
      font-weight: 950;
      letter-spacing: -0.025em;
    }

    .period {
      color: #159eb0;
      font-size: 14px;
      font-weight: 950;
      margin-bottom: 24px;
    }

    .plan ul {
      display: grid;
      gap: 13px;
      margin: 0;
      padding: 0;
      list-style: none;
      color: #4a656d;
      line-height: 1.45;
      font-size: 15px;
    }

    .plan .btn {
      width: 100%;
      margin-top: 28px;
      background: var(--blue-light);
      color: #147a86;
    }

    .plan.featured .btn {
      background: var(--dark);
      color: white;
    }

    .request { padding: 74px 0; }

    .request-card {
      display: grid;
      grid-template-columns: 0.9fr 1.1fr;
      gap: 36px;
      border-radius: 34px;
      background: var(--blue-light);
      padding: 42px;
    }

    .request-points {
      display: grid;
      gap: 14px;
      margin-top: 26px;
      color: var(--dark);
      font-weight: 850;
    }

    .request-points div::before {
      content: "✓";
      color: #159eb0;
      font-weight: 950;
      margin-right: 10px;
    }

    .form {
      border-radius: 28px;
      background: white;
      padding: 28px;
      box-shadow: 0 12px 30px rgba(28,75,90,.06);
    }

    .fields {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }

    .field {
      width: 100%;
      min-height: 56px;
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 0 18px;
      font: inherit;
      outline: none;
      color: var(--dark);
    }

    .field:focus { border-color: #159eb0; }
    select.field { grid-column: 1 / -1; }
    .form .btn { width: 100%; margin-top: 16px; }

    .disclaimer {
      margin: 14px 0 0;
      text-align: center;
      color: #8ca0a6;
      font-size: 12px;
      line-height: 1.4;
    }

    .footer {
      border-top: 1px solid var(--border);
      padding: 30px 0;
      color: #6d848b;
      font-size: 14px;
      font-weight: 750;
    }

    .footer-inner {
      display: flex;
      justify-content: space-between;
      gap: 18px;
      flex-wrap: wrap;
    }
    .check-card::before {
        position: absolute;
        left: 17px;
    }
    .check-card {
      position: relative;
      padding-left: 39px;
  }
  .image-box .floating-note {
      left: 60px;
      bottom: -36px;
  }
  .image-box .floating-note span {
    font-weight: 400;
  }
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(37, 51, 58, .7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 9999;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
    transform: translateY(20px);
    transition: .3s;
}

.popup-overlay.active .popup {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #eefbfb;
    cursor: pointer;
    font-size: 24px;
    color: #25333a;
}

.popup-header h2 {
    margin: 0 0 10px;
    color: #25333a;
    font-size: 32px;
    font-weight: 900;
}

.popup-header p {
    margin: 0 0 25px;
    color: #6f858c;
    line-height: 1.6;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-form input {
    height: 56px;
    border: 1px solid #d8f2f2;
    border-radius: 18px;
    padding: 0 18px;
    font-size: 15px;
}

.popup-form input:focus {
    outline: none;
    border-color: #70d2d2;
}

.popup-form .btn {
    width: 100%;
}
    @media (max-width: 920px) {
      .nav { display: none; }
      .burger { display: inline-flex; }
      .mobile-menu { display: block; }
      .header-inner { min-height: 74px; }
      .logo { height: 42px; }
      .hero-card { padding: 34px 24px; min-height: auto; }
      .hero-grid, .two-col, .speaker, .request-card { grid-template-columns: 1fr; }
      .hero-photo { min-height: 430px; }
      .hero-photo img { right: 50%; transform: translateX(50%); }
      .floating-note { left: 10px; }
      .stats, .plans, .benefits-grid { grid-template-columns: 1fr; }
      .check-grid, .fields { grid-template-columns: 1fr; }
      select.field { grid-column: auto; }
      .card, .speaker-info, .request-card { padding: 28px; }
      .speaker-photo img { min-height: 360px; }
    }

    @media (max-width: 520px) {
      .image-box img {object-position: center;}
      .container { width: min(100% - 28px, 1160px); }
      .header > .container > .btn { display: none; }
      h1 { font-size: 34px; }
      .hero-actions { flex-direction: column; }
      .btn { width: 100%; }
      .hero-photo { min-height: 390px; }
      .hero-photo img { max-height: 440px; }
      .floating-note { max-width: 260px; }
      .floating-note strong {display: block;}
      .image-box .floating-note {left: 0px;bottom: 1px;font-size: 15px;width: 100%;line-height: 22px;max-width: 100%;}
      .stats {
          display: flex;
          grid-template-columns: repeat(4, 1fr);
          gap: 16px;
          margin-top: 22px;
          flex-wrap: wrap;
      }
      .header-inner {
        justify-content: space-between;
      }
      .stats > div {
          width: calc(50% - 8px);
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 16px;
          font-weight: 600;
      }
      .image-box img {
          width: 100%;
          height: 365px;
          object-fit: cover;
          object-position: center;
          border-radius: 22px;
          border-radius: 330px;
          width: 100%;
          height: auto;
          height: 252px;
          width: 252px;
      }
      .image-box .floating-note {
          left: 0px;
          bottom: -9px;
          font-size: 15px;
          width: 100%;
          line-height: 22px;
          max-width: 100%;
          text-align: center;
      }
      .image-box {
          border-radius: 28px;
          background: #fff;
          padding: 14px;
          box-shadow: 0 12px 30px rgba(28, 75, 90, .05);
          position: relative;
          width: 280px;
          height: 280px;
          border-radius: 330px;
          /* overflow: hidden; */
          margin: 0 auto;
      }
      .floating-note br {
        display: none;
      }
      .speaker-photo {
          padding: 28px;
          padding-bottom: 0;
      }
      .speaker-photo img {
          width: 100%;
          height: 100%;
          min-height: 460px;
          object-fit: cover;
          object-position: top;
          border-radius: 26px;
          border-radius: 1000px;
          width: 160px;
          height: 160px;
          min-height: 0;
          border: 10px solid #fff;
          margin: 0;
      }
      .speaker-photo img {
        min-height: 0;
      }
      .container.footer-inner div + div {
          display: none;
      }
      .request {
          padding: 74px 0 40px;
      }
    }

  