/* Public pages share the homepage shell, palette and typography. */
.public-page .home-header a[aria-current=page]:not(.home-login) { color: var(--home-green-hover); text-decoration: underline; text-underline-offset: 6px; }
.public-page .home-shell { min-height: calc(100vh - 48px); min-height: calc(100dvh - 48px); }
.page-main { padding: 28px 32px 32px; background: var(--surface); }
.page-layout { display: grid; grid-template-columns: 278px minmax(0, 1fr); gap: 28px; align-items: start; }
.page-wide .page-layout { display: block; }
.page-content { min-width: 0; font-size: 20px; line-height: 1.6; overflow-wrap: break-word; }
.page-content h1 { margin: 0 0 22px; text-align: left !important; font-size: clamp(34px, 3.5vw, 48px); font-weight: 300; letter-spacing: -1.3px; line-height: 1.15; }
.page-content :is(h2,h3) { margin: 24px 0 12px; font-size: 25px; line-height: 1.3; font-weight: 500; letter-spacing: -.4px; }
.page-content h4 { font-size: 17px; font-weight: 500; }
.page-content p { margin: 0 0 16px; }
.page-reading .page-content { padding: 24px; background: var(--surface); border: 1px solid #cfddc8; border-top: 3px solid var(--home-green); }
.page-content > :is(p,ul,ol) { max-width: 720px; }
.page-content :is(ul,ol) { padding-left: 22px; margin-block: 0 24px; }
.page-content li { padding-left: 4px; margin-block: 8px; }
.page-content li::marker { color: var(--home-green-hover); }
.page-content .center { text-align: left; }
.page-content strong { font-weight: 600; }
.page-content em { color: var(--home-muted); }
.page-side { order: -1; position: sticky; top: calc(var(--sticky) + 24px); border: 1px solid var(--home-line); background: var(--surface-2); }
.page-side .page-side-photo { display: block; width: 100%; height: 156px; object-fit: cover; object-position: center 20%; }
.page-side-body { padding: 20px; }
.page-side-body nav { display: grid; margin: 12px 0 24px; }
.page-side-body nav a { padding: 8px 0; color: var(--home-muted); font-size: 16px; border-bottom: 1px solid var(--home-line); }
.page-side-body nav a[aria-current=page] { color: var(--home-green-hover); font-weight: 600; }
.page-side-body .cab-action { width: 100%; }
.page-content #cabinet { max-width: 560px; margin: 28px 0 0; }
.page-content #cabinet tr:last-child { margin-top: 26px; }
.page-content #cabinet textarea { resize: vertical; }
.page-content #cabinet input[type=submit] { width: auto; min-width: 160px; }
/* Шапка раздела «Клубы»: газон, нижняя белая линия — линия ворот, на ней стоят ворота (clubs-goal.svg) */
.clubs-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; margin: -28px -32px 28px; padding-right: 64px; border-bottom: 3px solid rgb(255 255 255 / .85); background: linear-gradient(90deg, #0f2e0dcc, #12350f66 65%, #12350f33), url("/design/turf-photo.webp") 0 0 / 150px 150px, #3f8429; color: white; }
.clubs-intro > div { padding: 36px 32px 32px; align-self: center; }
.clubs-intro .club-breadcrumbs { color: #e3efdc; }
.clubs-intro a:focus-visible { outline-color: white; }
.clubs-intro h1 { margin-bottom: 12px; }
.clubs-intro p:last-child { margin-bottom: 0; }
.club-breadcrumbs { margin: 0 0 10px; font-size: 16px; color: var(--home-muted); }
.clubs-intro .clubs-goal { display: block; align-self: end; width: 288px; height: auto; margin-top: 28px; }
#table > h2:first-child { margin-top: 0; }
#table .list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
#table .list p { display: flex; margin: 0; min-width: 0; }
#table .list a { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 96px; padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); font-size: 22px; font-weight: 500; line-height: 1.3; text-decoration: none; transition: border-color .15s, background-color .15s; }
#table .list a:hover { border-color: var(--home-green); background: var(--surface-3); }
#table .list .gray a { background: var(--surface-3); border-color: var(--home-green); box-shadow: inset 3px 0 0 var(--home-green); }
#table .list img { flex: none; width: 96px; height: 96px; object-fit: contain; }
#table .compact { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
#table .compact a { min-height: 56px; padding: 8px 10px; gap: 10px; font-size: 17px; }
#table .compact img { width: 48px; height: 48px; }
#table .list.countries { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
#table .list.countries a { min-height: 68px; padding: 8px 12px; gap: 12px; font-size: 19px; }
#table .list.countries img { width: 56px; height: 56px; }
.cl-body { display: grid; gap: 24px; margin-top: 24px; }
.cl-body > div { min-width: 0; }
.cl-body > div > h2 { margin-top: 0; }
.cl-leaf { grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr); align-items: start; }
#table .cl-leaf .list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cl-card { position: sticky; top: calc(var(--sticky) + 24px); padding: 22px; border: 1px solid var(--line-strong); border-top: 4px solid var(--home-green); background: var(--surface-2); border-radius: var(--radius-sm); }
.cl-card h3 { font-size: 22px; }
#tabtit { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 18px 0; font-size: 36px; line-height: 1.2; letter-spacing: -.6px; }
#tabtit span { min-width: 0; flex: 1 1 150px; }
#tabtit img { flex: none; width: 160px; height: 160px; object-fit: contain; }
.cl-card .red { color: var(--home-green-hover); margin-top: 0; font-size: 17px; }
.cl-card form p { margin-block: 16px 0; }
.cl-card input[type=button] { margin: 0 8px 10px 0; background: var(--surface); border-color: var(--line-strong); color: var(--home-text); }
.cl-card input[type=button]:hover { background: var(--surface-3); }
.cl-card #list { min-width: 0; font-size: 14px; }
.page-content table:not(#cabinet) { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.page-content table:not(#cabinet) :is(th,td) { padding: 16px 14px; border-bottom: 1px solid var(--home-line); text-align: left; }
.page-content table:not(#cabinet) th { font-weight: 500; color: var(--home-muted); background: var(--surface-2); }
.page-content #rating { table-layout: fixed; overflow-wrap: anywhere; margin-top: 32px; font-variant-numeric: tabular-nums; }
.page-content #rating :is(th,td):first-child { width: 56px; color: var(--home-muted); }
.page-content #rating td:nth-child(4) { color: var(--home-green-hover); font-size: 20px; font-weight: 500; }
.page-content #rating .own { background: var(--surface-2); }
.page-content #rating .own td:first-child { box-shadow: inset 3px 0 0 var(--home-green); }
.rating-rules { color: var(--home-muted); }
#list #match { display: grid; gap: 12px; }
.page-content #list #match table { display: grid; grid-template-columns: minmax(0,1fr) 48px auto 48px minmax(0,1fr); gap: 4px 8px; align-items: center; padding: 16px 10px; border: 1px solid var(--home-line); background: var(--surface); }
#list #match :is(tbody,tr) { display: contents; }
.page-content #list #match td { min-width: 0; border: 0; padding: 0; overflow-wrap: anywhere; font-size: 16px; }
#list #match img { display: block; width: 48px; height: 48px; object-fit: contain; }
#list #match tr:nth-child(1)>td:nth-child(1) { grid-area: 1/1; text-align: right; }
#list #match tr:nth-child(1)>td:nth-child(2) { grid-area: 3/1/4/6; text-align: center; margin-top: 12px; color: var(--home-muted); }
#list #match tr:nth-child(1)>td:nth-child(3) { grid-area: 1/5; }
#list #match tr:nth-child(2)>td:nth-child(1) { grid-area: 1/2; }
.page-content #list #match tr:nth-child(2)>td:nth-child(2) { grid-area: 1/3; padding: 0 16px; font-size: 22px; white-space: nowrap; }
#list #match tr:nth-child(2)>td:nth-child(3) { grid-area: 1/4; }
#list #match tr:nth-child(3)>td:nth-child(1) { grid-area: 2/1/3/3; text-align: right; color: var(--home-muted); }
#list #match tr:nth-child(3)>td:nth-child(2) { display: none; }
#list #match tr:nth-child(3)>td:nth-child(3) { grid-area: 2/4/3/6; color: var(--home-muted); }
@media (max-width: 1100px) {
  .page-layout { gap: 24px; grid-template-columns: 240px minmax(0,1fr); }
  #table .list { grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); }
  .cl-leaf { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  #table .cl-leaf .list { grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); }
}
@media (max-width: 900px) {
  .public-page .home-shell { min-height: calc(100vh - 32px); min-height: calc(100dvh - 32px); }
}
@media (max-width: 800px) {
  .page-main { padding: 24px; }
  .page-layout { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .page-side { order: 0; position: static; display: grid; grid-template-columns: 35% minmax(0,1fr); }
  .page-side .page-side-photo { height: 100%; }
  .page-side-body nav { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 16px; }
  .clubs-intro { margin: -24px -24px 24px; padding-right: 32px; }
  .clubs-intro > div { padding: 28px 24px 24px; }
  .clubs-intro .clubs-goal { width: 208px; }
  #table .list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #table .compact { grid-template-columns: repeat(auto-fill,minmax(190px,1fr)); }
  #table .list.countries { grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); }
  .cl-leaf { grid-template-columns: minmax(0,1fr); }
  .cl-card { position: static; }
  #table .cl-leaf .list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .public-page .home-shell { min-height: 100vh; min-height: 100dvh; }
  .page-main { padding: 20px 16px 24px; }
  .page-content h1 { font-size: 36px; margin-bottom: 24px; letter-spacing: -1px; }
  .page-content :is(h2,h3) { font-size: 23px; margin-top: 22px; }
  .page-content { font-size: 18px; }
  .page-reading .page-content { padding: 20px 16px; }
  .page-side { display: block; }
  .page-side .page-side-photo { height: 180px; }
  .page-side-body { padding: 20px; }
  .clubs-intro { margin: -20px -16px 20px; padding-right: 0; grid-template-columns: minmax(0,1fr); }
  .clubs-intro > div { padding: 24px 20px; }
  .clubs-intro h1 { margin-bottom: 12px; }
  .clubs-intro .clubs-goal { display: none; }
  #table .list { gap: 8px; grid-template-columns: minmax(0,1fr); }
  #table .cl-leaf .list { grid-template-columns: minmax(0,1fr); }
  #table .list a { flex-direction: row; align-items: center; min-height: 96px; padding: 10px; gap: 10px; font-size: 20px; }
  #table .list img { width: 80px; height: 80px; }
  #table .compact a { flex-direction: row; align-items: center; min-height: 54px; font-size: 17px; }
  #table .compact img { width: 48px; height: 48px; }
  #table .list.countries { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #table .list.countries a { min-height: 56px; padding: 8px; gap: 8px; font-size: 16px; overflow-wrap: anywhere; }
  #table .list.countries img { width: 44px; height: 44px; }
  .cl-card { position: static; padding: 20px 16px; }
  #tabtit { font-size: 26px; gap: 16px; }
  #tabtit img { width: 128px; height: 128px; }
  .page-content table:not(#cabinet) :is(th,td) { padding: 12px 8px; font-size: 14px; }
  .page-content #rating :is(th,td):first-child { width: 28px; }
  .page-content #rating td:nth-child(4) { font-size: 17px; }
  .page-content #rating th:nth-child(3) { width: 25%; }
}
@media (max-width: 360px) {
  .public-page .home-header nav { gap: 12px; }
  .public-page .home-login { padding-inline: 12px; }
  #table .list a { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #table .list a { transition: none; }
}

.clubs-intro:not(:has(.clubs-goal)) { grid-template-columns: minmax(0,1fr); }
.club-country-picker { padding: 16px 0; border-block: 1px solid var(--home-line); }
.club-country-picker summary { width: fit-content; color: var(--home-green-hover); cursor: pointer; font-size: 17px; }
.club-country-picker[open] .list { margin-top: 20px; }
.club-list-copy { display: grid; grid-template-columns: minmax(0,1fr); flex: 1; gap: 6px; min-width: 0; }
.club-list-copy small { font-size: 16px; font-weight: 400; }
.club-free { color: var(--home-green-hover); }
.club-taken { color: var(--home-muted); }
/* Поиск клубов: выдача обновляется при вводе (script.js: clubSearch), страна — выпадающий список с гербами */
.club-search { display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,320px) auto; align-items: end; gap: 12px 20px; margin-bottom: 32px; padding: 20px 24px 24px; border: 1px solid #cfddc8; border-radius: var(--radius-sm); background: var(--surface); box-shadow: 0 1px 3px rgb(16 23 37 / .06); }
.club-search > div { display: grid; gap: 8px; min-width: 0; }
.club-search label { color: var(--home-muted); font-size: 15px; font-weight: 500; line-height: 1.3; }
.cabinet-main .club-search input[type=search] { padding-left: 48px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='8.5' cy='8.5' r='6' fill='none' stroke='%23657085' stroke-width='2'/%3E%3Cpath d='M13 13l5 5' stroke='%23657085' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 16px center / 20px no-repeat; transition: border-color .15s; }
.cabinet-main .club-search input[type=search]:hover { border-color: var(--home-green); }
.cabinet-main .club-search button.dropdown-button { min-height: 52px; padding-block: 8px; font-size: 18px; }
.club-search .dropdown-value { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dropdown-icon { flex: none; width: 28px; height: 28px; object-fit: contain; }
.page-content .club-search .dropdown-list { max-height: 384px; }
.club-search > a { display: inline-flex; align-items: center; min-height: 52px; color: var(--home-green-hover); font-size: 17px; text-decoration: underline; text-underline-offset: 4px; }
/* Пока искать нечего, ссылка скрыта, но место держит: поля не прыгают при первом символе */
.club-search > a[hidden] { visibility: hidden; }
#club-results { transition: opacity .15s; }
#club-results[aria-busy=true] { opacity: .5; }
.club-search-note { color: var(--home-muted); font-size: 17px; }
@media (max-width: 800px) {
  .club-search { grid-template-columns: minmax(0,1fr); }
  .club-search > a { justify-self: start; min-height: 44px; }
  .club-search > a[hidden] { display: none; }
}
@media (max-width: 600px) {
  .club-search { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  #club-results, .cabinet-main .club-search input[type=search] { transition: none; }
}
.club-stats { display: grid; grid-template-columns: repeat(4,auto); justify-content: space-between; gap: 8px; margin: 20px 0; }
.club-stats dt { color: var(--home-muted); font-size: 16px; white-space: nowrap; }
.club-stats dd { margin: 4px 0 0; font-size: 30px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.page-content #table .club-stadium { font-size: 16px; }
.page-content > .center > p[style] { text-align: left !important; }
@media (max-width: 360px) {
  .club-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .club-stats dt { font-size: 14px; }
  .club-stats dd { font-size: 28px; }
}
.page-content #list #managers { table-layout: fixed; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .page-content #rating :is(th,td) { padding-inline: 6px; }
  .page-content #rating th { font-size: 14px; overflow-wrap: anywhere; }
  .page-content #rating :is(th,td):first-child { width: 24px; }
  .page-content #rating th:nth-child(2) { width: 30%; }
  .page-content #rating th:nth-child(3) { width: auto; }
  .page-content #rating th:nth-child(4) { width: 62px; }
  .page-content #rating th:nth-child(5) { width: 54px; }
}

@media (max-width: 600px) {
  .page-content #list #match table { grid-template-columns: minmax(0,1fr) 40px auto 40px minmax(0,1fr); }
  .page-content #list #match td { font-size: 14px; }
  #list #match img { width: 40px; height: 40px; }
  #list #match tr:nth-child(1)>td:nth-child(1) { grid-area: 1/1/2/3; }
  #list #match tr:nth-child(1)>td:nth-child(2) { grid-area: 4/1/5/6; }
  #list #match tr:nth-child(1)>td:nth-child(3) { grid-area: 1/4/2/6; }
  #list #match tr:nth-child(2)>td:nth-child(1) { grid-area: 2/2; }
  .page-content #list #match tr:nth-child(2)>td:nth-child(2) { grid-area: 2/3; padding: 0 8px; }
  #list #match tr:nth-child(2)>td:nth-child(3) { grid-area: 2/4; }
  #list #match tr:nth-child(3)>td:nth-child(1) { grid-area: 3/1/4/3; }
  #list #match tr:nth-child(3)>td:nth-child(3) { grid-area: 3/4/4/6; }
}

@media (max-width: 600px) {
  .club-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  #table .compact { grid-template-columns: repeat(auto-fill,minmax(190px,1fr)); }
  #table .compact a { font-size: 17px; padding: 8px; }
  .clubs-intro .club-breadcrumbs { font-size: 14px; }
}
/* РџР»Р°С‚РЅРѕРµ: Р±Р°Р»Р°РЅСЃ, VIP-Р·РІС‘Р·РґС‹, РїСЂРёРіР»Р°С€РµРЅРёСЏ. РљР°Р¶РґС‹Р№ СЂР°Р·РґРµР» вЂ” Р±РµР»Р°СЏ РїР°РЅРµР»СЊ: Р·Р°РіРѕР»РѕРІРѕРє, РїРѕСЏСЃРЅРµРЅРёРµ, РІС‹Р±РѕСЂ, РёС‚РѕРі СЃ РєРЅРѕРїРєРѕР№ */
.premium-notice { max-width: 720px; margin-bottom: 20px; padding: 12px 16px; border: 1px solid #a9c99a; border-radius: var(--radius-sm); background: var(--surface-2); }
.premium-error { border-color: #7a5a3a; background: var(--err-bg); }
.premium-panel { min-width: 0; padding: 24px 28px 28px; border: 1px solid #cfddc8; border-top: 3px solid var(--home-green); background: var(--surface); }
.page-content .premium-panel h2 { margin: 0 0 8px; }
.premium-wallet { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 20px; }
.premium-balance { display: flex; flex-wrap: wrap; gap: 12px 0; margin: 0; }
.premium-balance > div { padding-right: 32px; }
.premium-balance > div + div { padding-left: 32px; border-left: 1px solid var(--home-line); }
.premium-balance dt { color: var(--home-muted); font-size: 16px; }
.premium-balance dd { margin: 2px 0 0; font-size: 28px; font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.premium-balance dd[data-vip] { font-size: 20px; line-height: 34px; }
.premium-topup { display: grid; gap: 14px; padding-top: 22px; border-top: 1px solid var(--home-line); }
.page-content .premium-topup h2 { margin: 0; font-size: 22px; }
.page-content .premium-topup p { margin: 0; color: var(--home-muted); font-size: 17px; line-height: 1.5; }
.pack-off, .vip-off { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 6px; background: #d92d20; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.35; text-shadow: none; }
/* Покупка бустов поштучно: счётчик с кнопками, ползунок и итог (скрипт calcBoosters в script.js) */
.premium-calc { display: grid; gap: 16px; max-width: 560px; }
.premium-calc .calc-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; gap: 12px; }
body .cabinet-main .premium-calc input.calc-n:not(#n) { width: 100%; min-width: 0; height: 64px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--home-text); font: inherit; font-size: 36px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
body .cabinet-main .premium-calc input.calc-n:focus { border-color: var(--home-green); outline: 0; box-shadow: 0 0 0 3px #3ecf5a33; }
.premium-calc input.calc-n::-webkit-outer-spin-button, .premium-calc input.calc-n::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
body .cabinet-main .premium-calc button.calc-step { display: grid; place-items: center; width: 64px; min-height: 0; height: 64px; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--home-text); font-size: 30px; font-weight: 400; line-height: 1; box-shadow: none; text-shadow: none; }
body .cabinet-main .premium-calc button.calc-step:not(:disabled):hover { border-color: var(--home-green); background: var(--surface-3); transform: none; box-shadow: none; }
.premium-calc .calc-range { width: 100%; margin: 4px 0; accent-color: var(--home-green); cursor: pointer; }
.premium-calc :disabled { opacity: .55; cursor: not-allowed; }
.page-content .premium-calc .calc-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0; color: var(--home-text); font-size: 19px; }
.premium-calc .calc-sum strong { font-size: 32px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.premium-calc .calc-sum span { margin-left: auto; color: var(--home-muted); font-size: 16px; }
.premium-calc .premium-consent { margin-top: 2px; }
body .cabinet-main .premium-calc button.calc-pay { justify-self: start; min-width: 200px; }
.premium-wallet a { color: var(--home-green-hover); }
.premium-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 24px; align-items: start; margin-top: 24px; }
.premium-form { display: grid; gap: 32px; }
.page-content .premium-caption { margin: 0 0 8px; color: var(--home-muted); font-size: 15px; }
.vip-row { min-width: 0; margin: 0; padding: 0; border: 0; }
.vip-row legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-bottom: 16px; padding: 0; font-size: 18px; font-weight: 500; }
.vip-row legend .vip-star { margin: 0; }
.premium-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin: 0 0 8px; }
.page-content .premium-head h2 { margin: 0; }
body .cabinet-main .premium-head .premium-more { display: inline-flex; width: auto; min-height: 0; padding: 3px 12px; border: 1px solid var(--home-green); border-radius: 999px; background: transparent; box-shadow: none; color: var(--home-green-hover); font-size: 14px; font-weight: 500; line-height: 1.5; text-shadow: none; }
body .cabinet-main .premium-head .premium-more:hover { background: var(--surface-3); transform: none; box-shadow: none; }
body dialog.premium-dialog { width: min(92vw, 480px); padding: 0; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface); color: var(--home-text); box-shadow: 0 0 0 1px #000a, 0 28px 70px #000c; overflow: hidden; }
body dialog.premium-dialog::backdrop { background: #000b; }
body dialog.premium-dialog[open] { animation: dropdown-in .18s ease-out; }
.premium-dialog-body { position: relative; display: grid; gap: 14px; padding: 28px 28px 24px; border-top: 3px solid var(--home-green); }
.page-content .premium-dialog-body h3, .premium-dialog-body h3 { margin: 0; padding-right: 36px; font-size: 24px; line-height: 1.2; }
.premium-dialog-body .premium-lead { margin: -6px 0 0; color: var(--home-muted); font-size: 16px; line-height: 1.45; }
body .cabinet-main .premium-dialog .premium-x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 32px; height: 32px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; box-shadow: none; color: var(--home-muted); font-size: 24px; line-height: 1; text-shadow: none; }
body .cabinet-main .premium-dialog .premium-x:hover { background: var(--surface-3); color: var(--home-text); transform: none; box-shadow: none; }
.premium-dialog-body .vip-ranks, .premium-dialog-body .vip-perks { margin: 0; padding: 0; }
.vip-ranks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.vip-ranks li { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); font-size: 16px; }
.vip-ranks .vip-star { width: 32px !important; height: 32px !important; margin: 0; }
.vip-ranks span { flex: 1; font-weight: 500; }
.vip-ranks b { color: var(--home-green-hover); font-weight: 600; white-space: nowrap; }
.premium-dialog-body .vip-perks { margin: 0; font-size: 15px; }
.premium-fine { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--home-line); }
.premium-dialog-body .premium-fine p { margin: 0; color: var(--home-muted); font-size: 14px; line-height: 1.5; }
.premium-dialog-body .premium-fine a { color: var(--home-green-hover); }
body .cabinet-main .premium-dialog .premium-ok { justify-self: end; width: auto; min-height: 0; padding: 6px 20px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: transparent; box-shadow: none; color: var(--home-text); font-size: 15px; font-weight: 500; text-shadow: none; }
body .cabinet-main .premium-dialog .premium-ok:hover { border-color: var(--home-green); background: var(--surface-3); transform: none; box-shadow: none; }
.vip-perks { margin: 0; }
.premium-dialog-body .premium-note { margin: 0; }
.premium-dialog-body button { justify-self: end; }
.vip-perks { display: grid; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 16px; line-height: 1.4; }
.vip-perks li { position: relative; padding-left: 24px; }
.vip-perks li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 10px; height: 6px; border-left: 2px solid var(--home-green); border-bottom: 2px solid var(--home-green); transform: rotate(-45deg); }
.vip-daily { padding: 2px 10px; border-radius: var(--radius-sm); background: var(--surface-3); color: var(--home-text); font-size: 14px; font-weight: 500; }
.vip-own { padding: 2px 10px; border-radius: var(--radius-sm); background: var(--surface-3); color: var(--home-green-hover); font-size: 14px; font-weight: 500; }
.vip-terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.vip-opt { position: relative; display: grid; align-content: end; gap: 2px; min-height: 104px; padding: 34px 14px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer; line-height: 1.25; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.vip-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.vip-term { color: var(--home-muted); font-size: 16px; }
.vip-price { font-size: 30px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.vip-price small { margin-left: 5px; color: var(--home-muted); font-size: 14px; font-weight: 400; }
.vip-per { color: var(--home-muted); font-size: 14px; }
.vip-opt:hover { border-color: var(--home-green); background: var(--surface-3); }
.vip-opt:has([data-need]) { border-style: dashed; background: var(--surface); }
.vip-opt:has([data-need]) .vip-price { color: var(--home-muted); }
.vip-opt:has(:checked) { border-color: var(--home-green); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--home-green); }
.vip-opt:has(:checked) .vip-term { color: var(--home-text); }
.vip-opt:has(:checked)::after { content: ""; position: absolute; bottom: 12px; right: 12px; width: 18px; height: 18px; border-radius: 50%; background: var(--btn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.vip-opt:has([data-need]:checked) { border-color: var(--home-amber); background: var(--warn-bg); box-shadow: inset 0 0 0 1px var(--home-amber); }
.vip-opt:has([data-need]:checked)::after { background-color: var(--home-amber); }
.vip-opt:has(:focus-visible) { outline: 3px solid var(--home-green-hover); outline-offset: 2px; }
.premium-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 4px; padding-top: 20px; border-top: 1px solid var(--home-line); }
.page-content .premium-sum { flex: 1 1 260px; margin: 0; font-size: 17px; line-height: 1.45; }
.page-content .premium-sum[data-short] { color: var(--amber-text); }
.cabinet-main .premium-buy [hidden] { display: none; }
.premium-buy :is(input[type=submit],button) { flex: none; }
.cabinet-main .premium-buy input[type=submit]:disabled { background: var(--surface-2); border-color: #c9d0cb; color: var(--home-muted); cursor: not-allowed; }
#invite .premium-buy { flex-direction: column; align-items: stretch; }
#invite .premium-sum { flex-basis: auto; }
.page-content .premium-field { margin-bottom: -8px; font-size: 17px; font-weight: 500; }
/* Р’С‹РїР°РґР°СЋС‰РёР№ СЃРїРёСЃРѕРє (script.js: dropdown) */
.dropdown { position: relative; }
.cabinet-main button.dropdown-button { justify-content: space-between; gap: 12px; width: 100%; padding: 11px 14px; border-color: var(--line-strong); background: var(--surface); color: var(--home-text); font-weight: 400; transition: border-color .15s; }
.cabinet-main button.dropdown-button:hover { border-color: var(--home-green); background: var(--surface); }
.cabinet-main button.dropdown-button[aria-expanded=true] { border-color: var(--home-green); box-shadow: inset 0 0 0 1px var(--home-green); }
.dropdown-button::after { content: ""; flex: none; width: 12px; height: 8px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; color: var(--home-muted); transition: transform .15s; }
.dropdown-button[aria-expanded=true]::after { transform: rotate(180deg); }
.dropdown-value { font-variant-numeric: tabular-nums; }
.page-content .dropdown-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 5; max-height: 296px; margin: 0; padding: 4px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); box-shadow: 0 12px 28px rgb(16 23 37 / .14), 0 2px 6px rgb(16 23 37 / .08); list-style: none; scrollbar-width: thin; scrollbar-color: #b5c9aa transparent; animation: dropdown-in .14s cubic-bezier(.16, 1, .3, 1); }
.dropdown-list:focus { outline: none; }
.page-content .dropdown-list li { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 0; padding: 8px 12px; border-radius: var(--radius-sm); cursor: pointer; font-size: 18px; font-variant-numeric: tabular-nums; }
.dropdown-list li.is-active { background: var(--surface-3); }
.dropdown-list li[aria-selected=true] { color: var(--home-green-hover); font-weight: 500; }
.dropdown-list li[aria-selected=true]::before { content: ""; width: 12px; height: 9px; margin-left: -2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 9'%3E%3Cpath d='M1 4.6l3.3 3.2L11 1.2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 9'%3E%3Cpath d='M1 4.6l3.3 3.2L11 1.2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.dropdown-list li[aria-selected=false] { padding-left: 34px; }
.dropdown-hint { margin-left: auto; color: var(--home-muted); font-size: 15px; font-weight: 400; }
@keyframes dropdown-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) {
  .page-content .dropdown-list { animation: none; }
  .vip-opt, .dropdown-button, .dropdown-button::after { transition: none; }
}
@media (max-width: 1100px) {
  .premium-grid { grid-template-columns: minmax(0, 1fr); }
  #invite .premium-form { max-width: 440px; }
}
@media (max-width: 600px) {
  .premium-panel { padding: 20px 16px 22px; }
  .premium-balance > div { padding-right: 18px; }
  .premium-balance > div + div { padding-left: 18px; }
  .premium-balance dd { font-size: 24px; }
  .premium-calc .calc-row { grid-template-columns: 52px minmax(0, 1fr) 52px; gap: 8px; }
  body .cabinet-main .premium-calc button.calc-step { width: 52px; height: 56px; }
  body .cabinet-main .premium-calc input.calc-n:not(#n) { height: 56px; font-size: 30px; }
  body .cabinet-main .premium-calc button.calc-pay { justify-self: stretch; }
  .premium-balance dd[data-vip] { font-size: 18px; line-height: 29px; }
  .vip-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vip-opt { min-height: 96px; }
  .premium-buy :is(input[type=submit],button) { width: 100%; }
}
.page-content .premium-note { margin: 0 0 10px; color: var(--home-muted); font-size: 15px; }
/* «Контакты»: продавец и поддержка; оферта и «Платное»: список пакетов с ценами (PayPriceList) */
.seller { display: grid; gap: 12px; margin: 0 0 28px; padding: 18px 20px; border: 1px solid var(--home-line); border-radius: 12px; text-align: left; }
.seller > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
.seller dt { color: var(--home-muted); }
.seller dd { margin: 0; overflow-wrap: anywhere; }
.seller a { color: var(--home-green-hover); }
.doc-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; padding: 0; list-style: none; }
.doc-packs li { margin: 0; padding: 12px 16px; border: 1px solid var(--home-line); border-radius: 10px; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .seller > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
