.pay-page {
  --pay: #81ff85;
  --pay-soft: #b5ffb7;
  --pay-dark: #071b0b;
}

.pay-page main { overflow: hidden; }
.pay-page .menu-button { background: var(--pay); }
.pay-page .mobile-nav a:hover,
.pay-page .mobile-nav a.active { color: var(--pay); }
.pay-page .header .button-small { color: var(--pay-dark); background: var(--pay); box-shadow: 0 8px 20px rgba(129,255,133,.18); }
.pay-page .header .button-small:hover { background: var(--pay-soft); box-shadow: 0 10px 24px rgba(129,255,133,.28); }
.pay-page .footer nav small { color: var(--pay-dark); background: var(--pay); }

.pay-hero {
  display: grid;
  grid-template-columns: minmax(0,.94fr) minmax(500px,1.06fr);
  gap: clamp(48px,7vw,112px);
  align-items: start;
  padding-block: 72px 88px;
}
.pay-hero-copy { display: flex; min-height: 620px; flex-direction: column; }
.pay-hero-copy h1 { max-width: 100%; margin: 0; font-size: clamp(62px,4.4vw,82px); font-weight: 600; line-height: .96; letter-spacing: -.06em; }
.pay-lead { max-width: 680px; margin: 38px 0 0; color: var(--muted); font-size: clamp(20px,1.65vw,27px); line-height: 1.45; letter-spacing: -.025em; }
.pay-hero-actions { display: flex; gap: 28px; align-items: center; margin-top: auto; }
.pay-button { color: var(--pay-dark); background: var(--pay); box-shadow: 0 14px 34px rgba(129,255,133,.16); }
.pay-button:hover { background: var(--pay-soft); box-shadow: 0 18px 40px rgba(129,255,133,.24); }
.pay-hero-actions p { display: grid; gap: 5px; margin: 0; }
.pay-hero-actions strong { font-size: 13px; }
.pay-hero-actions span { color: var(--muted); font-size: 12px; }

.pay-hero-card {
  position: relative;
  display: flex;
  min-height: 620px;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(36px,4vw,64px);
  border-radius: 40px;
  color: var(--pay-dark);
  background: var(--pay);
}
.pay-hero-label { font-size: 12px; font-weight: 800; letter-spacing: .09em; }
.pay-hero-card > p { max-width: 640px; margin: 56px 0 0; font-size: clamp(60px,5.3vw,92px); font-weight: 500; line-height: .96; letter-spacing: -.06em; }
.pay-virtual-card {
  position: absolute;
  right: -5%;
  bottom: -8%;
  display: block;
  width: min(76%,520px);
  height: auto;
  box-shadow: 0 28px 64px rgba(0,0,0,.26);
  transform: rotate(-7deg);
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.pay-hero-card:hover .pay-virtual-card { transform: rotate(0deg) translate(-10px,-10px); }

.pay-section { padding-block: 112px; border-top: 1px solid var(--border); }
.pay-section-heading { display: flex; align-items: end; justify-content: flex-start; gap: 32px; margin-bottom: 48px; }
.pay-section-heading h2,
.pay-faq-heading h2 { max-width: 980px; margin: 0; font-size: clamp(42px,4.8vw,68px); font-weight: 600; line-height: 1; letter-spacing: -.05em; }

.pay-benefits { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--border); }
.pay-benefits article { display: flex; min-height: 360px; flex-direction: column; justify-content: space-between; padding: 30px; border-right: 1px solid var(--border); }
.pay-benefits article:last-child { border-right: 0; }
.pay-benefits span { color: var(--pay); font-size: 48px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.pay-benefits h3 { max-width: 340px; margin: 90px 0 0; font-size: clamp(24px,2vw,34px); line-height: 1.08; letter-spacing: -.04em; }

.pay-products-section { padding-top: 0; border-top: 0; }
.pay-products { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.pay-product { display: flex; min-height: 690px; flex-direction: column; padding: clamp(36px,4vw,62px); border-radius: 34px; }
.pay-product-primary { color: var(--pay-dark); background: var(--pay); }
.pay-product-secondary { border: 1px solid var(--border); background: var(--surface); }
.pay-product > div > span { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pay-product-secondary > div > span { color: var(--muted); }
.pay-product h3 { max-width: 680px; margin: 28px 0 0; font-size: clamp(46px,4.8vw,76px); font-weight: 600; line-height: .96; letter-spacing: -.055em; }
.pay-product ul { display: grid; gap: 0; margin: auto 0 42px; padding: 0; list-style: none; }
.pay-product li { padding: 19px 0; border-bottom: 1px solid currentColor; border-color: rgba(0,0,0,.19); font-size: 18px; font-weight: 600; }
.pay-product-secondary li { border-color: var(--border); }
.pay-product .button { width: 100%; }
.pay-product > p { max-width: 570px; margin: auto 0 0; color: var(--muted); font-size: 18px; line-height: 1.55; }

.pay-request-section { padding-top: 0; border-top: 0; }
.pay-request { display: grid; grid-template-columns: minmax(0,.78fr) minmax(460px,1.22fr); gap: 72px; padding: 64px; border-radius: 32px; color: var(--pay-dark); background: var(--pay); }
.pay-request-copy > p { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pay-request-copy h2 { max-width: 760px; margin: 34px 0 48px; font-size: clamp(44px,5vw,72px); font-weight: 600; line-height: .98; letter-spacing: -.055em; }
.pay-request-copy > span { display: block; max-width: 560px; color: rgba(0,0,0,.62); font-size: 18px; font-weight: 600; line-height: 1.5; }
.pay-lead-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; align-content: start; }
.pay-lead-form > label:not(.pay-confirm) { display: grid; gap: 9px; }
.pay-lead-form label > span { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.pay-lead-form input:not([type="checkbox"]) { width: 100%; min-width: 0; height: 62px; padding: 0 20px; border: 1px solid rgba(0,0,0,.18); border-radius: 16px; outline: 0; color: var(--pay-dark); background: rgba(255,255,255,.32); font: inherit; font-size: 16px; transition: border-color .2s ease,background .2s ease; }
.pay-lead-form input::placeholder { color: rgba(0,0,0,.48); }
.pay-lead-form input:focus { border-color: rgba(0,0,0,.5); background: rgba(255,255,255,.48); }
.pay-confirm { display: flex; grid-column: 1/-1; gap: 12px; align-items: center; padding: 3px 0; cursor: pointer; }
.pay-confirm input { width: 22px; height: 22px; flex: 0 0 auto; accent-color: var(--pay-dark); }
.pay-confirm span { letter-spacing: 0 !important; text-transform: none !important; }
.pay-lead-form .button { grid-column: 1/-1; width: 100%; margin-top: 6px; }
.pay-lead-form small { grid-column: 1/-1; color: rgba(0,0,0,.56); font-size: clamp(14px,1.15vw,17px); line-height: 1.5; text-align: center; }
.pay-lead-form small a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.pay-faq { display: grid; grid-template-columns: minmax(300px,.7fr) minmax(0,1.3fr); gap: clamp(54px,7vw,110px); }
.questions { border-top: 1px solid var(--border); }
.questions details { border-bottom: 1px solid var(--border); }
.questions summary { position: relative; display: grid; grid-template-columns: 1fr 42px; gap: 22px; align-items: center; min-height: 90px; padding: 22px 0; font-size: 18px; font-weight: 600; line-height: 1.4; cursor: pointer; list-style: none; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary span { position: relative; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%; }
.questions summary span::before,
.questions summary span::after { position: absolute; top: 50%; left: 50%; width: 12px; height: 1px; background: var(--text); content: ""; transform: translate(-50%,-50%); }
.questions summary span::after { transform: translate(-50%,-50%) rotate(90deg); }
.questions details[open] summary span { background: var(--pay); }
.questions details[open] summary span::before { background: var(--pay-dark); }
.questions details[open] summary span::after { display: none; }
.questions details > p { max-width: 850px; margin: -4px 64px 28px 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

.pay-section-heading-row { justify-content: space-between; }
.pay-section-heading-row > a { padding-bottom: 4px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 14px; font-weight: 600; transition: color .2s ease,border-color .2s ease; }
.pay-section-heading-row > a:hover { color: var(--pay); border-color: var(--pay); }
.pay-services { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.pay-service { position: relative; display: grid; min-height: 360px; grid-template-columns: minmax(0,1fr) 52px; grid-template-rows: auto 1fr auto; overflow: hidden; padding: 28px; border: 1px solid var(--border); border-radius: 30px; background: var(--surface); transition: border-color .2s ease,background .2s ease,transform .2s ease; }
.pay-service:hover { border-color: var(--service-accent, var(--pay)); background: var(--surface-hover); transform: translateY(-3px); }
.pay-service > img { grid-column: 1/-1; grid-row: 1; width: 118px; height: 118px; margin-bottom: 54px; }
.pay-service > div { grid-column: 1; grid-row: 3; align-self: end; min-width: 0; }
.pay-service span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pay-service h3 { margin: 8px 0 12px; font-size: clamp(23px,1.8vw,32px); letter-spacing: -.04em; }
.pay-service p { max-width: 320px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.pay-service .service-arrow { grid-column: 2; grid-row: 3; align-self: end; justify-self: end; }
.pay-service[href="/ru/services/domvpn"] { --service-accent: #00caff; }
.pay-service[href="/ru/services/show"] { --service-accent: #ffc300; }
.pay-service[href="/ru/services/dommarket"] { --service-accent: #ff8400; }
.pay-service[href^="https://social"] { --service-accent: #F9DDD9; }
.pay-service:hover .service-arrow { color: var(--pay-dark); border-color: var(--service-accent); background: var(--service-accent); transform: rotate(6deg); }

.pay-contact { border-top: 1px solid var(--border); }
.pay-contact > a b { border: 0; background: transparent; }
.pay-contact > a b::before { display: none; }
.pay-contact > a b img { display: block; width: 100%; height: 100%; }
.pay-contact > a:hover b { border-color: transparent; background: transparent; }
.pay-contact > a:hover strong { color: var(--pay); }

@media (max-width: 1199px) {
  .pay-hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .pay-hero-actions .button { white-space: nowrap; }
  .pay-hero-actions > p { display: flex; flex-wrap: wrap; gap: 4px 12px; max-width: 600px; }
  .pay-hero-actions > p strong { flex-basis: 100%; }
  .pay-benefits { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pay-benefits article { border-bottom: 1px solid var(--border); }
  .pay-benefits article:nth-child(2) { border-right: 0; }
  .pay-benefits article:nth-last-child(-n+2) { border-bottom: 0; }
  .pay-services { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 1080px) {
  .pay-hero { min-height: auto; grid-template-columns: 1fr; gap: 28px; padding-top: 64px; }
  .pay-hero-copy { display: contents; }
  .pay-hero-copy h1 { grid-row: 1; }
  .pay-hero-card { grid-row: 2; min-height: 540px; }
  .pay-lead { grid-row: 3; margin: 0 0 8px; }
  .pay-hero-actions { grid-row: 4; margin-top: 0; }
  .pay-hero-actions .button { width: min(400px,100%); }
  .pay-request { grid-template-columns: 1fr; gap: 58px; }
  .pay-faq { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .pay-hero { padding-block: 58px 76px; }
  .pay-hero-copy h1 { font-size: clamp(56px,10.7vw,80px); }
  .pay-hero-card { min-height: 500px; border-radius: 30px; }
  .pay-hero-card > p { margin-top: 38px; }
  .pay-virtual-card { right: -2%; bottom: -6%; }
  .pay-hero-actions .button { width: 100%; }
  .pay-hero-actions > p { width: 100%; max-width: none; justify-content: center; text-align: center; }
  .pay-section { padding-block: 82px; }
  .pay-products-section,
  .pay-request-section { padding-top: 0; }
  .pay-products { grid-template-columns: 1fr; }
  .pay-product { min-height: 620px; padding: 48px; border-radius: 28px; }
  .pay-request { padding: 48px; border-radius: 28px; }
  .pay-lead-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .questions summary { min-height: 84px; font-size: 17px; }
}

@media (max-width: 560px) {
  .pay-hero { padding-block: 46px 62px; }
  .pay-hero-copy h1 { font-size: 47px; }
  .pay-lead { font-size: 18px; }
  .pay-hero-card { min-height: 410px; padding: 26px; border-radius: 22px; }
  .pay-hero-card > p { margin-top: 30px; font-size: 48px; }
  .pay-virtual-card { width: 82%; }
  .pay-section { padding-block: 64px; }
  .pay-products-section,
  .pay-request-section { padding-top: 0; }
  .pay-section-heading { margin-bottom: 34px; }
  .pay-section-heading h2,
  .pay-faq-heading h2 { font-size: 43px; }
  .pay-benefits { grid-template-columns: 1fr; }
  .pay-benefits article { min-height: 240px; padding: 24px 22px; border-right: 0; border-bottom: 1px solid var(--border) !important; }
  .pay-benefits article:last-child { border-bottom: 0 !important; }
  .pay-benefits h3 { margin-top: 54px; font-size: 29px; }
  .pay-product { min-height: 560px; padding: 30px 22px; border-radius: 20px; }
  .pay-product h3 { font-size: 43px; }
  .pay-product li,
  .pay-product > p { font-size: 16px; }
  .pay-request { gap: 44px; padding: 30px 22px; border-radius: 18px; }
  .pay-request-copy h2 { margin: 26px 0 34px; font-size: 43px; }
  .pay-request-copy > span { font-size: 16px; }
  .pay-lead-form { grid-template-columns: 1fr; gap: 18px; }
  .pay-lead-form input:not([type="checkbox"]) { height: 58px; }
  .pay-faq { gap: 42px; }
  .questions summary { grid-template-columns: 1fr 38px; gap: 16px; min-height: 80px; font-size: 16px; }
  .questions summary span { width: 36px; height: 36px; }
  .questions details > p { margin-right: 0; font-size: 14px; }
  .pay-section-heading-row { align-items: flex-start; flex-direction: column; }
  .pay-services { grid-template-columns: 1fr; }
  .pay-service { min-height: 330px; padding: 22px; border-radius: 22px; }
  .pay-service > img { width: 106px; height: 106px; margin-bottom: 46px; }
}
