:root{
  --bg:#000;
  --text:#fff;
  --accent:#ec2b79;
  --accent-2:#f34692;
  --muted:#d2d2d2;
  --card-bg:rgba(15,15,15,.78);
  --card-border:rgba(236,43,121,.52);
}

*{box-sizing:border-box}
html,body{
  margin:0;
  min-height:100%;
  background:var(--bg);
  color:var(--text);
  font-family:Arial,Helvetica,sans-serif;
}
body{min-height:100vh}
a{color:inherit;text-decoration:none}
.page{min-height:100vh}

.hero{
  position:relative;
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(24px,1fr) minmax(320px,760px) minmax(24px,1fr);
  grid-template-rows:minmax(30px,1fr) auto 18px auto minmax(34px,.75fr);
  align-items:center;
  justify-items:center;
  overflow:hidden;
  padding:30px 32px 26px;
  background:#000;
}

.logo-stage{
  position:relative;
  z-index:2;
  grid-column:2;
  grid-row:2;
  width:min(760px,62vw);
  align-self:end;
  justify-self:center;
  display:flex;
  justify-content:center;
  align-items:center;
}

.logo{
  width:100%;
  max-width:760px;
  max-height:72vh;
  object-fit:contain;
  display:block;
  filter:drop-shadow(0 0 26px rgba(236,43,121,.08));
}

.hero-decor{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:1;
}

.doodle{
  position:absolute;
  display:block;
  line-height:1;
  font-weight:700;
  opacity:.96;
  text-shadow:0 0 12px rgba(236,43,121,.12);
}
.heart{color:var(--accent)}
.star{color:#fff}
.crown{color:var(--accent)}

.heart-1{font-size:56px; left:18%; top:26%; transform:rotate(-18deg)}
.heart-2{font-size:42px; right:19%; top:58%; transform:rotate(12deg)}
.heart-3{font-size:34px; left:55%; bottom:18%; transform:rotate(-12deg)}
.star-1{font-size:28px; left:29%; top:34%}
.star-2{font-size:22px; right:28%; top:33%}
.star-3{font-size:24px; right:35%; bottom:27%}
.crown-1{font-size:56px; left:34%; top:13%; transform:rotate(-10deg)}
.crown-2{font-size:40px; right:29%; top:22%; transform:rotate(10deg)}

.swirl{
  position:absolute;
  border-top:3px solid var(--accent);
  border-radius:50%;
  opacity:.95;
}
.swirl::after{
  content:"";
  position:absolute;
  inset:auto 0 0 auto;
  width:14px;
  height:14px;
  border-top:3px solid #fff;
  border-right:3px solid #fff;
  border-radius:3px;
  transform:translate(6px,-11px) rotate(32deg);
  opacity:.9;
}
.swirl-1{width:280px;height:120px;left:-36px;top:34%;transform:rotate(10deg)}
.swirl-2{width:310px;height:150px;right:-58px;top:33%;transform:rotate(-15deg)}
.swirl-3{width:240px;height:120px;left:11%;bottom:16%;transform:rotate(-12deg)}
.swirl-4{width:200px;height:90px;right:17%;bottom:18%;transform:rotate(8deg)}

.bottom-bar{display:contents}

.contacts{
  position:absolute;
  left:32px;
  bottom:28px;
  z-index:4;
  font-size:14px;
  line-height:1.55;
  color:var(--muted);
  background:var(--card-bg);
  border:1px solid var(--card-border);
  border-left:3px solid var(--accent);
  border-radius:18px;
  padding:16px 18px;
  box-shadow:0 18px 44px rgba(0,0,0,.32);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  max-width:360px;
}
.contacts a{display:block}
.contact-title{font-weight:700;color:#fff;margin-bottom:5px}
.contact-meta{margin-top:9px;color:#ededed}
.contact-phone{margin-top:2px;color:var(--accent);font-weight:700}
.contact-phone:hover{text-decoration:underline}
.legal-links{
  margin-top:10px;
  font-size:12px;
  color:#a7a7a7;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.legal-links a{display:inline;color:#a7a7a7;text-decoration:underline;text-underline-offset:2px}
.legal-links a:hover{color:#fff}

.pay-actions{
  grid-column:2;
  grid-row:4;
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:center;
  justify-self:center;
  align-self:start;
  position:relative;
  z-index:4;
  transform:translateX(36px);
}

.pay-button{
  border:0;
  border-radius:999px;
  padding:17px 30px;
  background:linear-gradient(180deg, #f03f90 0%, #e01774 100%);
  color:#fff;
  font-size:18px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 12px 34px rgba(236,43,121,.30);
  transition:transform .2s ease, filter .2s ease, box-shadow .2s ease;
  white-space:nowrap;
  min-width:235px;
}
.pay-button:hover{transform:translateY(-2px);filter:brightness(1.06)}

.pay-button-secondary{
  background:rgba(0,0,0,.55);
  border:1.5px solid var(--accent);
  box-shadow:none;
}
.pay-button-secondary:hover{
  box-shadow:0 10px 24px rgba(236,43,121,.16);
}

.hero::after{
  content:"";
  position:absolute;
  width:300px;
  height:300px;
  right:8%;
  bottom:10%;
  border-radius:50%;
  background:radial-gradient(circle,rgba(236,43,121,.10) 0%,rgba(236,43,121,0) 70%);
  filter:blur(16px);
  pointer-events:none;
  z-index:0;
}

.modal{position:fixed;inset:0;display:none;z-index:100}
.modal.is-open{display:block}
.modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.78);backdrop-filter:blur(5px)}
.modal-card{
  position:relative;
  z-index:1;
  width:min(430px,calc(100vw - 32px));
  margin:50vh auto 0;
  transform:translateY(-50%);
  background:#fff;
  color:#111;
  border-radius:24px;
  padding:30px 28px 26px;
  text-align:center;
  box-shadow:0 25px 80px rgba(0,0,0,.45);
}
.modal-close{
  position:absolute;
  top:10px;
  right:14px;
  border:0;
  background:transparent;
  font-size:34px;
  line-height:1;
  cursor:pointer;
  color:#222;
}
.modal-card h2{margin:4px 0 12px;font-size:26px}
.qr{width:250px;max-width:100%;display:block;margin:0 auto 18px;border-radius:16px;border:1px solid #eee}
.hint{font-size:15px;line-height:1.45;margin:0 0 10px}
.small{font-size:12px;line-height:1.45;color:#777;margin:0}

.form-card{
  width:min(410px,calc(100vw - 28px));
  max-height:calc(100svh - 28px);
  overflow:auto;
  padding:30px 26px 24px;
  text-align:left;
  border-radius:28px;
  background:rgba(255,255,255,.98);
  box-shadow:0 28px 90px rgba(0,0,0,.52);
}
.form-mark{
  width:38px;height:38px;margin:0 auto 8px;
  display:grid;place-items:center;
  border-radius:50%;background:#fff0f6;color:var(--accent);
  font-size:28px;line-height:1;
}
.form-card h2{text-align:center;margin:0;font-size:25px;letter-spacing:-.02em}
.form-intro{text-align:center;color:#777;margin:7px 0 20px;font-size:13px;line-height:1.4}
.payment-form{display:grid;gap:12px}
.field{display:grid;gap:7px}
.field>span{font-size:12px;font-weight:700;color:#454545;margin-left:2px}
.payment-form input[type="text"],
.payment-form input[type="email"]{
  width:100%;border:1px solid #e6e6e6;border-radius:15px;padding:13px 14px;
  font:inherit;font-size:15px;font-weight:400;outline:none;background:#fafafa;color:#111;
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.payment-form input::placeholder{color:#aaa}
.payment-form input:focus{background:#fff;border-color:rgba(236,43,121,.65);box-shadow:0 0 0 4px rgba(236,43,121,.08)}
.amount-wrap{position:relative}
.amount-wrap input{padding-right:46px!important;font-size:18px!important;font-weight:700!important}
.amount-wrap b{position:absolute;right:15px;top:50%;transform:translateY(-50%);font-size:17px;color:#666}
.consent-row{display:grid;grid-template-columns:18px 1fr;align-items:start;gap:8px;font-size:11px;color:#7a7a7a;line-height:1.35;margin:2px 2px 0}
.consent-row input{margin:1px 0 0;accent-color:var(--accent)}
.consent-row a{color:#666;text-decoration:underline;text-underline-offset:2px}
.consent-row a:hover{color:#ec2b79}
.privacy-note{margin:-2px 4px 4px 28px;font-size:11px;line-height:1.4;color:#858585}
.privacy-note a{color:#666;text-decoration:underline;text-underline-offset:2px}
.privacy-note a:hover{color:#ec2b79}
.submit-pay{
  border:0;border-radius:999px;padding:13px 20px 12px;
  background:linear-gradient(180deg,#f34692 0%,#df176e 100%);color:#fff;
  font-size:16px;font-weight:800;cursor:pointer;margin-top:3px;
  box-shadow:0 10px 26px rgba(236,43,121,.23);
  transition:transform .18s ease,filter .18s ease;
}
.submit-pay:hover{transform:translateY(-1px);filter:brightness(1.04)}
.submit-pay span,.submit-pay small{display:block}
.submit-pay small{font-size:12px;font-weight:700;opacity:.95;margin-top:2px;letter-spacing:.01em}
.offer-note,.form-note{text-align:center;font-size:10.5px;line-height:1.35;color:#929292;margin:0 8px}
.offer-note a,.form-note a{color:#666;text-decoration:underline;text-underline-offset:2px}
.offer-note a:hover,.form-note a:hover{color:#ec2b79}

@media (max-width:1200px){
  .hero{grid-template-columns:minmax(20px,1fr) minmax(300px,700px) minmax(20px,1fr)}
  .logo-stage{width:min(700px,66vw)}
  .heart-1{left:14%;top:24%}
  .heart-2{right:12%}
  .crown-1{left:29%}
  .crown-2{right:22%}
  .pay-actions{transform:translateX(20px)}
}

@media (max-width:900px){
  .hero{
    grid-template-columns:minmax(18px,1fr) minmax(280px,620px) minmax(18px,1fr);
    padding:24px 22px 24px;
  }
  .logo-stage{width:min(620px,72vw)}
  .swirl-1,.swirl-2{width:220px;height:100px}
  .swirl-3{width:170px;height:90px}
  .swirl-4{width:150px;height:80px}
  .contacts{left:22px;bottom:22px}
  .pay-actions{gap:12px;transform:translateX(12px)}
  .pay-button{min-width:220px;padding:16px 24px;font-size:17px}
}

@media (max-width:700px){
  body{min-height:100svh}

  .hero{
    min-height:100svh;
    height:100svh;
    display:grid;
    grid-template-columns:1fr;
    grid-template-rows:
      minmax(6px,.22fr)
      auto
      2px
      auto
      minmax(14px,.22fr)
      auto;
    align-items:center;
    justify-items:center;
    padding:12px 14px 16px;
    overflow:hidden;
  }

  .logo-stage{
    grid-column:1;
    grid-row:2;
    width:min(80vw,390px);
    align-self:center;
    justify-self:center;
    margin:0;
  }

  .logo{max-height:41svh}

  .heart-1{font-size:38px;left:9%;top:11%}
  .heart-2{font-size:32px;right:9%;top:52%}
  .heart-3{font-size:28px;left:71%;bottom:16%}
  .star-1{font-size:22px;left:16%;top:20%}
  .star-2{font-size:18px;right:18%;top:20%}
  .star-3{font-size:20px;right:25%;bottom:19%}
  .crown-1{font-size:34px;left:23%;top:7%}
  .crown-2{font-size:30px;right:14%;top:15%}

  .swirl{border-top-width:2px}
  .swirl::after{
    width:11px;
    height:11px;
    border-top-width:2px;
    border-right-width:2px;
    transform:translate(5px,-9px) rotate(32deg);
  }
  .swirl-1{width:116px;height:56px;left:-22px;top:31%}
  .swirl-2{width:132px;height:58px;right:-28px;top:30%}
  .swirl-3{width:104px;height:50px;left:0%;bottom:18%}
  .swirl-4{width:96px;height:44px;right:6%;bottom:19%}

  .pay-actions{
    grid-column:1;
    grid-row:4;
    width:min(88vw,430px);
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:12px;
    margin:0;
    transform:none;
    justify-self:center;
    align-self:start;
    z-index:4;
  }

  .pay-button,
  .pay-button-secondary{
    width:100%;
    min-width:0;
    font-size:16px;
    padding:14px 20px;
    white-space:normal;
    text-align:center;
  }

  .contacts{
    grid-column:1;
    grid-row:6;
    position:static;
    width:min(92vw,520px);
    max-width:none;
    margin:0;
    justify-self:center;
    align-self:end;
    font-size:12px;
    line-height:1.4;
    padding:11px 13px;
    border-radius:16px;
  }

  .contact-title{margin-bottom:4px}
  .contact-meta{margin-top:6px}
  .legal-links{font-size:11px;gap:5px;margin-top:8px}

  .hero::after{display:none}

  .form-card{padding:26px 20px 20px;border-radius:24px;margin:50svh auto 0}
  .form-card h2{font-size:23px}
}

@media (max-width:700px) and (max-height:760px){
  .hero{
    grid-template-rows:
      minmax(2px,.16fr)
      auto
      1px
      auto
      minmax(8px,.12fr)
      auto;
    padding:8px 12px 10px;
  }

  .logo-stage{width:min(72vw,320px)}
  .logo{max-height:33svh}
  .pay-actions{gap:10px}
  .pay-button,.pay-button-secondary{font-size:15px;padding:12px 18px}
  .contacts{font-size:10.8px;padding:9px 11px}
  .heart-1{top:10%}
  .crown-1{top:5%}
  .swirl-3{bottom:16%}
  .swirl-4{bottom:17%}
  .heart-3{bottom:14%}
  .star-3{bottom:17%}
}


/* v22 — временно оставляем только индивидуальные занятия */
.pay-actions{
  justify-content:center!important;
  transform:none!important;
}

.pay-actions .pay-button{
  min-width:320px;
  margin:0 auto;
  background:linear-gradient(180deg,#f03f90 0%,#e01774 100%)!important;
  border:0!important;
  box-shadow:0 12px 34px rgba(236,43,121,.30)!important;
}

@media (max-width:700px){
  .pay-actions{
    width:min(86vw,430px)!important;
    margin:0 auto!important;
  }
  .pay-actions .pay-button{
    width:100%!important;
    min-width:0!important;
  }
}


/* Контакты, автозаполнение и подписка */
.payment-form input[type="tel"]{
  width:100%;border:1px solid #e6e6e6;border-radius:15px;padding:13px 14px;
  font:inherit;font-size:15px;font-weight:400;outline:none;background:#fafafa;color:#111;
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.payment-form input[type="tel"]:focus{background:#fff;border-color:rgba(236,43,121,.65);box-shadow:0 0 0 4px rgba(236,43,121,.08)}
.field-help{font-size:11px;line-height:1.35;color:#888;margin:-2px 2px 0}
.returning-note{border:1px solid #d9eddf;background:#f1fbf4;border-radius:15px;padding:11px 12px;display:grid;gap:3px;color:#265f39;font-size:11px;line-height:1.35}
.returning-note[hidden]{display:none}
.returning-note b{font-size:12px}.clear-saved{justify-self:start;border:0;background:transparent;color:#55745f;padding:3px 0 0;font:inherit;font-size:11px;text-decoration:underline;cursor:pointer}
.mailing-optin{border:1px solid #f5cadc;background:#fff4f8;border-radius:16px;padding:11px 12px 9px}
.mailing-optin[hidden]{display:none}.marketing-row{margin:0!important}.marketing-row span{font-size:11.5px!important;line-height:1.35!important}.marketing-row b{font-size:12px;color:#222}
.mailing-note{margin:7px 0 0 29px;font-size:10px;line-height:1.35;color:#888}.mailing-note a,.mailing-manage a{color:#ba1f61;text-decoration:underline;text-underline-offset:2px}
.mailing-manage{font-size:10.5px;line-height:1.4;color:#777;background:#f7f7f7;border-radius:12px;padding:9px 11px}.mailing-manage[hidden]{display:none}


/* v31 — мобильная компоновка: контакты сразу под кнопкой, без нижнего выталкивания */
@media (max-width:700px){
  .hero{
    grid-template-rows:
      minmax(10px, 8svh)
      auto
      10px
      auto
      12px
      auto;
    padding:8px 14px 12px;
  }

  .logo-stage{
    width:min(76vw, 360px);
  }

  .logo{
    max-height:35svh;
  }

  .pay-actions{
    align-self:center;
  }

  .contacts{
    align-self:start;
    margin:0;
  }

  /* Нижние декоративные завитки не должны визуально спорить с карточкой контактов */
  .swirl-3{bottom:7%}
  .swirl-4{bottom:8%}
  .heart-3{bottom:7%}
  .star-3{bottom:9%}
}

@media (max-width:700px) and (max-height:760px){
  .hero{
    grid-template-rows:
      minmax(8px, 6svh)
      auto
      8px
      auto
      9px
      auto;
    padding:6px 12px 8px;
  }

  .logo-stage{width:min(70vw, 320px)}
  .logo{max-height:30svh}
  .contacts{
    font-size:10.5px;
    line-height:1.32;
    padding:8px 10px;
  }
  .contact-meta{margin-top:4px}
  .legal-links{font-size:10px;gap:4px;margin-top:5px}
}
