@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/inter-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --font: "Inter", system-ui, sans-serif; --bg: #f6f7f9; --text: #111827; --focus: #2563eb;
  --w-medium: 500; --w-semi: 600; --domain-w: 600; --domain-ls: -.025em; --domain: #111827;
  --h2-w: 600; --h2-ls: -.01em; --form-text: #111827; --form-muted: #4b5563;
  --lang-r: 8px; --lang-btn-r: 6px; --lang-bg: #fff; --lang-border: 1px solid #e2e5ea; --lang-text: #4b5563; --lang-on-bg: #2563eb; --lang-on-text: #fff;
  --input-border: 1px solid #cbd0d8; --input-r: 8px; --input-bg: #fff; --placeholder: #6b7280;
  --code-border: 1px solid #e2e5ea; --code-bg: #f1f3f6;
  --refresh-border: 1px solid #cbd0d8; --refresh-bg: #fff;
  --submit-r: 8px; --accent: #2563eb; --accent-hover: #1d4fd7; --error: #c62828; --ok-bg: #e7f6ec; --ok-text: #14632f; --err-bg: #fdecec;
  --glow: rgb(37 99 235 / .13); --glow-size: 960px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.ico { display: block; width: 20px; height: 20px; flex: none; }
.ico--sm { width: 18px; height: 18px; }

/* Язык */
.lang { display: inline-flex; gap: 2px; padding: 2px; border-radius: var(--lang-r); background: var(--lang-bg); border: var(--lang-border); }
.lang a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; min-width: 44px; min-height: 40px; padding: 10px 14px; border: 0; border-radius: var(--lang-btn-r); background: transparent; color: var(--lang-text); font-size: 14px; line-height: 20px; font-weight: var(--w-semi); }
.lang a[aria-current="true"] { background: var(--lang-on-bg); color: var(--lang-on-text); }

/* Домен */
.domain-wrap { position: relative; display: inline-block; max-width: 100%; }
.domain { position: relative; font-size: clamp(38px, 12vw, 64px); line-height: 1.125; font-weight: var(--domain-w); letter-spacing: var(--domain-ls); color: var(--domain); overflow-wrap: anywhere; }
.domain[data-long] { font-size: clamp(28px, 7.5vw, 44px); line-height: 1.2; }

/* Контакты */
.contacts { display: flex; flex-direction: column; gap: 12px; }
.contacts-main { display: flex; flex-wrap: wrap; gap: 12px; }
.contacts-main > a { flex: 1 1 var(--contact-basis, 260px); min-width: 0; }
.contact { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 11px 16px; text-decoration: none; }
.contact__text { display: flex; flex-direction: column; min-width: 0; }
.contact__label { font-size: 13px; line-height: 18px; }
.contact__value { font-size: 15px; line-height: 22px; font-weight: var(--w-medium); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.social { display: grid; place-items: center; width: 44px; height: 44px; text-decoration: none; font-size: 13px; line-height: 18px; font-weight: 700; }
.contacts-main:not(:has(a)), .socials:not(:has(a)), .contacts:not(:has(a)) { display: none; }

/* Реклама */
.ad { padding: 12px 16px; border: 1px solid #dadce0; border-radius: 8px; background: #fff; font-family: Arial, Helvetica, sans-serif; }
.ad__slides { display: grid; }
.ad__slide { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 2px; text-decoration: none; visibility: hidden; opacity: 0; transition: opacity .3s; }
.ad__slide.is-active { visibility: visible; opacity: 1; }
.ad__title { font-size: 20px; line-height: 26px; color: #1a0dab; }
.ad__slide:hover .ad__title { text-decoration: underline; }
.ad__url { font-size: 14px; line-height: 20px; color: #006621; overflow-wrap: anywhere; }
.ad__text { font-size: 14px; line-height: 20px; color: #4d5156; }
.ad__dots { display: flex; margin: 4px 0 -4px -8px; }
.ad__dots button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; }
.ad__dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c4c7cc; }
.ad__dots button[aria-current="true"]::before { background: #1a73e8; }
@media (max-width: 767px) {
  .ad__title { font-size: 18px; line-height: 24px; }
}

/* Форма */
.form { display: flex; flex-direction: column; gap: 16px; }
.form__title { display: flex; flex-direction: column; gap: 4px; }
.form__title h2 { font-size: 22px; line-height: 30px; font-weight: var(--h2-w); letter-spacing: var(--h2-ls); color: var(--form-text); }
.form__title p { font-size: 15px; line-height: 22px; color: var(--form-muted); }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; line-height: 20px; font-weight: var(--w-medium); color: var(--form-text); }
.field input, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: var(--input-border); border-radius: var(--input-r); background: var(--input-bg); color: var(--form-text); font-size: 16px; line-height: 22px; }
.field textarea { display: block; height: var(--textarea-h, 96px); resize: vertical; }
.field ::placeholder { color: var(--placeholder); opacity: 1; }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field__error { font-size: 13px; line-height: 18px; color: var(--error); }
.captcha { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.captcha__img { display: block; flex: none; width: 138px; height: 44px; border: var(--code-border); border-radius: var(--input-r); }
.captcha__refresh { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: var(--refresh-border); border-radius: var(--input-r); background: var(--refresh-bg); color: var(--form-text); }
.captcha input { flex: 1 1 120px; width: auto; min-width: 0; }
.submit { min-height: 48px; padding: 13px 20px; border: 0; border-radius: var(--submit-r); background: var(--accent); color: #fff; font-size: 15px; line-height: 22px; font-weight: var(--w-semi); transition: background .15s; }
.submit:hover { background: var(--accent-hover); }
.submit:disabled { opacity: .6; cursor: progress; }
.form__status { padding: 10px 12px; border-radius: var(--input-r); background: var(--ok-bg); color: var(--ok-text); font-size: 14px; line-height: 20px; }
.form__status[data-state="error"] { background: var(--err-bg); color: var(--error); }

/* Свечение */
.glow { position: absolute; z-index: -1; left: 50%; top: 50%; width: var(--glow-size); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; animation: breathe 8s ease-in-out infinite; }

/* Появление блоков */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { scale: 1; } 50% { scale: 1.08; } }
.hero, .sale, .contacts, .ad, .form { animation: rise .6s cubic-bezier(.16, 1, .3, 1) both; }
.sale { animation-delay: .08s; }
.form { animation-delay: .12s; }
.contacts { animation-delay: .16s; }
.ad { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .glow, .hero, .sale, .contacts, .ad, .form { animation: none; }
  .ad__slide { transition: none; }
}

body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden; overflow-x: clip; }
.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
.top { position: relative; z-index: 2; background: #fff; border-bottom: 1px solid #e2e5ea; }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.status { font-size: 15px; line-height: 22px; font-weight: 500; color: #111827; min-width: 0; }
.main { position: relative; isolation: isolate; overflow: hidden; overflow: clip; flex: 1; display: grid; grid-template-columns: minmax(0, 576px) 480px; grid-template-areas: "left card" "ads card"; grid-template-rows: auto auto; justify-content: center; align-content: center; align-items: start; gap: 28px 64px; padding: 32px 20px; }
.left { grid-area: left; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.slot-ads { grid-area: ads; min-width: 0; }
.card { grid-area: card; padding: 28px; border: 1px solid #e2e5ea; border-radius: 12px; background: #fff; min-width: 0; }
.hero { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.desc { font-size: 18px; line-height: 28px; color: #4b5563; }
.sale { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; }
.sale__label { font-size: 14px; line-height: 20px; color: #4b5563; }
.sale__price { font-size: 32px; line-height: 40px; font-weight: 600; letter-spacing: -.02em; color: #111827; }
.contact, .social { border: 1px solid #e2e5ea; border-radius: 10px; background: #fff; color: #374151; transition: border-color .15s; }
.contact:hover, .social:hover { border-color: #2563eb; }
.contact__label { color: #4b5563; }
.contact__value { color: #111827; }
.footer { background: #fff; border-top: 1px solid #e2e5ea; font-size: 13px; line-height: 18px; color: #4b5563; }
.footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-block: 16px; }
.footer a { color: #2563eb; }

/* Форма выключена */
.main:not(:has(.form)) { grid-template-columns: minmax(0, 576px); grid-template-areas: "left" "ads"; }
.main:not(:has(.form)) .card { display: none; }
.main:not(:has(.form)) .hero { align-items: center; text-align: center; }
.main:not(:has(.form)) .sale { align-items: center; }
.main:not(:has(.form)) .socials { justify-content: center; }

@media (max-width: 1099px) {
  .main, .main:not(:has(.form)) { grid-template-columns: minmax(0, 688px); grid-template-areas: "left" "card" "ads"; row-gap: 20px; padding: 32px 40px; }
  .main:not(:has(.form)) { grid-template-areas: "left" "ads"; }
  .top__in, .footer__in { padding-inline: 40px; }
}
@media (max-width: 767px) {
  :root { --glow-size: 576px; }
  .main, .main:not(:has(.form)) { padding: 24px 20px; }
  .left { gap: 20px; }
  .card { padding: 20px; }
  .top__in, .footer__in { padding-inline: 20px; }
  .status { font-size: 14px; }
  .desc { font-size: 16px; line-height: 24px; }
  .footer__in { flex-direction: column; }
}
@media (max-width: 359px) {
  .status { font-size: 13px; }
}

/* Текст продажи */
.sale__text { font-size: 15px; line-height: 22px; }
.sale__status { font-size: 18px; line-height: 28px; font-weight: var(--w-semi); }

/* Служебное */
.trap { position: absolute; inset-inline-start: -9999px; }
.pk-preview { position: sticky; top: 0; z-index: 10; padding: 6px; background: #ffab00; color: #2b2c40; font-size: 13px; line-height: 18px; text-align: center; }

/* Без рекламы левая колонка стоит по центру формы */
@media (min-width: 1100px) {
  .main:has(.form):not(:has(.slot-ads)) { grid-template-areas: "left card"; grid-template-rows: auto; }
  .main:has(.form):not(:has(.slot-ads)) .left { align-self: center; }
}

.visit-pixel { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }


/* С рекламой текст и баннер стоят по центру формы одним блоком */
@media (min-width: 1100px) {
  .main:has(.form):has(.slot-ads) { grid-template-areas: ". card" "left card" "ads card" ". card"; grid-template-rows: 1fr auto auto 1fr; }
  .main:has(.form):has(.slot-ads) .card { align-self: center; }
}
