/* Frame 401: Premium, subscriptions and footer. */
.premium { position: relative; margin-top: 140px; }
.premium-heading { position: relative; text-align: center; }
.premium-heading h2 { margin: 0 auto; color: var(--ink); font-size: 56px; font-weight: 600; line-height: 1; }
.premium-intro { max-width: 930px; margin: 40px auto 0; color: var(--muted); font-size: 24px; line-height: 1; }
.premium-paw { position: absolute; top: 12px; left: calc(50% - 255px); width: 39px; height: 36px; object-fit: cover; }
.premium-cat { position: absolute; top: 95px; left: 28px; width: 158px; height: 273px; }
.premium-cat img { top: -.97%; left: -6.46%; width: 124.88%; height: 104.29%; max-width: none; }
.premium-bowl { position: absolute; z-index: 2; top: 158px; right: -8.608px; display: flex; align-items: center; justify-content: center; width: 261.608px; height: 252.03px; }
.premium-bowl img { width: 205px; height: 187px; object-fit: cover; transform: rotate(-22.9deg); }
.premium-benefits { position: relative; z-index: 1; margin-top: 60px; padding-top: 50px; padding-bottom: 50px; overflow: hidden; border-radius: 40px; background: #e3f9f6; }
.premium-benefits h3 { margin: 0 50px 40px; color: var(--ink); font-size: 36px; font-weight: 600; line-height: 1; }
.premium-benefits-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 226px 212px; }
.premium-benefit { padding: 60px 40px 0 50px; }
.premium-benefit h4 { margin: 0; color: var(--ink); font-size: 24px; font-weight: 600; line-height: 1; white-space: nowrap; }
.premium-benefit p { max-width: 274px; margin: 20px 0 0; color: var(--muted); font-size: 24px; line-height: 1; }
.premium-benefit:nth-child(2) p { max-width: 404px; }
.premium-benefit:nth-child(5) p { max-width: 365px; }
.premium-divider { position: absolute; }
.premium-divider img { display: block; max-width: none; }
.premium-divider-horizontal { left: 50px; top: 351px; }
.premium-divider-vertical { top: 126px; transform: rotate(90deg); transform-origin: top left; }
.premium-divider-first { left: 467px; }
.premium-divider-second { left: 933px; }
.premium-junction { position: absolute; top: 344px; width: 16px; height: 16px; background: #180f2a; }
.premium-junction-first { left: 459px; }
.premium-junction-second { left: 925px; }
.premium-plans { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 120px; scroll-margin-top: 32px; }
.plan { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 575px; padding: 40px; overflow: clip; border-radius: 40px; }
.plan > :not(.decor) { position: relative; z-index: 1; }
.plan-monthly { box-shadow: inset 0 0 0 1px var(--purple); color: #333139; }
.plan-annual { background: var(--purple); color: #f5f3ff; }
.plan-top { display: flex; align-items: center; justify-content: space-between; height: 34px; }
.plan-label { display: inline-flex; align-items: center; justify-content: center; height: 34px; margin: 0; padding: 0 11px; border: 1px solid currentColor; border-radius: 14px; font-size: 14px; font-weight: 500; line-height: 1; }
.plan-monthly .plan-label { color: var(--purple); }
.plan-annual .plan-label { color: #f0e100; }
.plan-best { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 10px; border-radius: 14px; background: #f0e100; color: #292929; font-size: 14px; font-weight: 500; line-height: 1; }
.plan-best img { display: block; flex-shrink: 0; }
.plan-price { display: flex; align-items: baseline; margin: 31px 0 0; white-space: nowrap; }
.plan-amount { font-size: 102px; font-weight: 600; line-height: 1.1;}
.plan-period { margin-left: 0; font-size: 24px; font-weight: 500; line-height: 1.1; }
.plan-summary { margin: 30px 0 0; color: var(--muted); font-size: 16px; line-height: 1; }
.plan-features { display: flex; flex-direction: column; gap: 12px; margin: 29px 0 0; padding: 0; list-style: none; color: var(--muted); }
.plan-features li { display: flex; align-items: center; gap: 14px; min-height: 20px; font-size: 16px; line-height: 1; }
.plan-features img { display: block; flex-shrink: 0; }
.plan-action { width: 100%; min-height: 54px; padding: 16px 30px; margin-top: auto; border: 0; background: var(--purple); color: #fff; font: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.plan-annual .plan-period { margin-left: 0; }
.plan-discounts { display: flex; gap: 10px; margin-top: 10px; }
.plan-discounts span { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 12px; border-radius: 14px; background: rgb(245 243 255 / 60%); color: #292929; font-size: 14px; font-weight: 500; line-height: 1; }
.plan-annual .plan-summary { margin-top: 30px; color: #fff; }
.plan-annual .plan-features { margin-top: 30px; color: #fff; }
.plan-annual .plan-action { background: #f5f3ff; color: #312f37; font-weight: 500; }
.plan-wave-monthly { position: absolute; top: -77.5px; left: 120.36px; transform: scaleX(-1); }
.plan-wave-monthly img, .plan-wave-annual img { display: block; max-width: none; }
.plan-wave-annual { position: absolute; top: -177.04px; left: -96.8px; display: flex; align-items: center; justify-content: center; width: 920.35px; height: 872.9px; }
.plan-wave-annual-rotation { position: relative; width: 726.522px; height: 633.698px; transform: rotate(156.21deg) scaleX(-1); }
.plan-wave-annual img { position: absolute; top: -19.518px; left: -19.471px; }
.plan-cat { position: absolute; z-index: 2; top: 191px; right: -69px; width: 170px; height: 248px; }
.plan-cat img { top: -1.31%; left: -14.29%; width: 128.8%; height: 105.69%; max-width: none; }
.footer { position: relative; margin-top: 160px; min-height: 300px; overflow: hidden; border-radius: 80px 80px 0 0; background: #201e1f; color: #fff; }
.footer-wave { position: absolute; top: -69.003px; left: calc(50% - 1045px); transform: rotate(180deg); }
.footer-wave img { display: block; max-width: none; }
.footer-content { position: relative; display: flex; justify-content: space-between; gap: 80px; padding-top: 80px; padding-bottom: 80px; }
.footer-documents { display: flex; flex-direction: column; align-items: flex-start; gap: 30px; }
.footer-document { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; font: inherit; font-size: 16px; font-weight: 500; line-height: 1; cursor: pointer; }
.footer-document img { display: block; flex-shrink: 0; margin-top: 3px; }
.footer-document:last-child img { margin-top: 1px; }
.footer-contacts { display: flex; flex-direction: column; gap: 30px; width: 211px; margin-right: -100px; font-style: normal; }
.footer-contacts a { display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; font-size: 16px; font-weight: 500; line-height: 1; white-space: nowrap; }
.footer-contacts img { display: block; flex-shrink: 0; }
.footer-contacts a:first-child { gap: 13px; height: 16px; }
.footer-tax { margin: 30px 0 0; color: #a2a1a1; font-size: 16px; font-weight: 500; line-height: 1; }
.footer-document:hover, .footer-contacts a:hover { color: #d6c3ff; }

@media (max-width: 1650px) {
  .premium-benefit { padding-left: 32px; padding-right: 24px; }
  .premium-benefit h4 { font-size: 22px; white-space: normal; }
  .premium-benefit p { font-size: 22px; }
  .premium-divider-vertical, .premium-junction { display: none; }
  .premium-divider-horizontal { right: 50px; overflow: hidden; }
  .premium-paw { left: calc(50% - 255px); }
  .premium-cat { left: 0; }
  .premium-bowl { right: -30px; }
  .plan-cat { right: -25px; }
  .plan-amount { font-size: clamp(64px, 5.3125vw, 102px); }
  .plan-features li { line-height: 1.25; }
  .footer-contacts { margin-right: 0; }
}
@media (max-width: 1150px) {
  .premium { margin-top: 100px; }
  .premium-heading h2 { font-size: 48px; }
  .premium-intro { max-width: 730px; font-size: 21px; line-height: 1.25; }
  .premium-desktop-break { display: none; }
  .premium-paw { top: 8px; left: calc(50% - 223px); }
  .premium-cat { top: 135px; left: -30px; transform: scale(.8); transform-origin: bottom left; }
  .premium-bowl { top: 195px; right: -30px; transform: scale(.7); transform-origin: right bottom; }
  .premium-benefits { margin-top: 70px; }
  .premium-benefits h3 { margin-left: 32px; font-size: 32px; }
  .premium-benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 42px 0; }
  .premium-benefit { padding-top: 20px; padding-bottom: 10px; }
  .premium-benefit h4 { font-size: 22px; }
  .premium-benefit p { margin-top: 16px; font-size: 20px; line-height: 1.15; }
  .premium-divider { display: none; }
  .premium-plans { gap: 20px; margin-top: 80px; }
  .plan { min-height: 560px; padding: 30px; }
  .plan-best { gap: 5px; padding: 0 8px; }
  .plan-amount { font-size: 64px; letter-spacing: -2px; }
  .plan-period { font-size: 20px; }
  .plan-summary { line-height: 1.25; }
  .plan-features { margin-top: 24px; }
  .plan-features li { align-items: flex-start; gap: 10px; font-size: 15px; }
  .plan-action { font-size: 18px; }
  .plan-cat { top: 175px; right: -25px; transform: scale(.65); transform-origin: right center; }
  .footer { margin-top: 100px; border-radius: 60px 60px 0 0; }
}
@media (max-width: 760px) {
  .premium { margin-top: 72px; }
  .premium-heading h2 { font-size: clamp(30px, 7.6vw, 46px); line-height: 1.06; }
  .premium-intro { margin-top: 26px; font-size: 18px; line-height: 1.3; }
  .premium-paw { display: none; }
  .premium-cat { top: 158px; left: -18px; transform: scale(.55); }
  .premium-bowl { top: 224px; right: -16px; transform: scale(.52); }
  .premium-benefits { margin-top: 100px; padding: 30px 0; border-radius: 28px; }
  .premium-benefits h3 { margin: 0 26px 24px; font-size: 28px; }
  .premium-benefits-grid { grid-template-columns: 1fr; gap: 24px; }
  .premium-benefit { padding: 10px 26px; }
  .premium-benefit h4 { font-size: 22px; }
  .premium-benefit p, .premium-benefit:nth-child(2) p, .premium-benefit:nth-child(5) p { max-width: 100%; margin-top: 12px; font-size: 18px; line-height: 1.25; }
  .premium-plans { grid-template-columns: 1fr; gap: 24px; margin-top: 60px; }
  .plan { min-height: 560px; padding: 28px; border-radius: 28px; }
  .plan-amount { font-size: clamp(52px, 16vw, 84px); }
  .plan-price { margin-top: 30px; }
  .plan-summary { max-width: 100%; margin-top: 28px; font-size: 16px; line-height: 1.3; }
  .plan-features { gap: 16px; margin-top: 28px; }
  .plan-features li { font-size: 16px; line-height: 1.3; }
  .plan-action { margin-top: auto; min-height: 54px; }
  .plan-annual .plan-action { margin-top: auto; }
  .plan-discounts { margin-top: 14px; }
  .plan-cat { top: auto; bottom: -66px; right: 8px; transform: scale(.32); transform-origin: right bottom; }
  .footer { margin-top: 72px; border-radius: 40px 40px 0 0; }
  .footer-content { flex-direction: column; gap: 42px; padding-top: 48px; padding-bottom: 48px; }
  .footer-documents { gap: 26px; }
  .footer-document { align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.2; }
  .footer-document img { margin-top: 1px; }
  .footer-document br { display: none; }
  .footer-contacts { gap: 24px; }
  .footer-tax { margin-top: 8px; font-size: 14px; }
}

/* Account: link in the hero and the block under the plans. */
.hero-nav { position: absolute; z-index: 3; top: 40px; left: 0; right: 0; display: flex; justify-content: flex-end; gap: 10px; }
.hero-account { display: inline-flex; align-items: center; gap: 10px; max-width: 260px; min-height: 52px; padding: 14px 22px; overflow: hidden; border: 1px solid #ffffff4d; border-radius: 16px; background: #201e1fb3; color: #f0f0f0; font-size: 18px; font-weight: 500; line-height: 1; white-space: nowrap; text-overflow: ellipsis; backdrop-filter: blur(6px); transition: border-color .18s, background .18s; }
.hero-account::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 50% 36%, currentColor 0 4px, transparent 4.5px), radial-gradient(ellipse 9px 6px at 50% 100%, currentColor 0 98%, transparent 100%); }
.hero-account:hover { border-color: var(--purple); background: #834dfb33; }
.hero-account.is-signed-in { border-color: var(--purple); }

.account-block { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 24px; padding: 48px; overflow: hidden; border-radius: 40px; background: var(--dark); color: #f0f0f0; scroll-margin-top: 32px; }
.account-block::after { content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, #834dfb66, transparent 70%); pointer-events: none; }
.account-block > * { position: relative; z-index: 1; }
.account-block-pill { border-color: #f0e100; color: #f0e100; }
.account-block h3 { margin-top: 26px; font-size: 44px; font-weight: 600; line-height: 1.05; }
.account-block-text { max-width: 640px; margin-top: 22px; color: #c9c7cc; font-size: 20px; line-height: 1.35; }
.account-block-actions { display: flex; flex-direction: column; gap: 14px; flex: none; width: 280px; }
.account-block-actions .button { width: 100%; min-height: 60px; font-size: 19px; }
.account-block-actions .button[hidden] { display: none; }

@media (max-width: 1150px) {
  .account-block { flex-direction: column; align-items: flex-start; padding: 40px; }
  .account-block h3 { font-size: 38px; }
  .account-block-actions { flex-direction: row; width: 100%; }
  .account-block-actions .button { width: auto; flex: 1; }
}
@media (max-width: 1000px) {
  .hero-nav { top: 24px; }
  .hero-content { padding-top: 110px; }
}
@media (max-width: 760px) {
  .account-block { gap: 28px; margin-top: 20px; padding: 28px 24px; border-radius: 28px; }
  .account-block h3 { margin-top: 20px; font-size: clamp(26px, 7vw, 34px); }
  .account-block-text { font-size: 17px; }
  .account-block-actions { flex-direction: column; }
  .account-block-actions .button { width: 100%; min-height: 54px; font-size: 17px; border-radius: 16px; }
}
@media (max-width: 600px) {
  .hero-nav { top: 16px; }
  .hero-account { min-height: 44px; padding: 10px 16px; font-size: 15px; border-radius: 14px; max-width: 200px; }
  .hero-content { padding-top: 84px; }
}

/* English landing: approximate price in US dollars (script.js, /v1/rates). */
.plan-approx { margin: 6px 0 0; color: var(--muted); font-size: 22px; font-weight: 500; line-height: 1.2; }
.plan-annual .plan-approx { color: #f5f3ffcc; }
.plans-fx-note { max-width: 920px; margin: 24px auto 0; color: var(--muted); font-size: 15px; line-height: 1.5; text-align: center; }
@media (max-width: 760px) {
  .plan-approx { font-size: 18px; }
  .plans-fx-note { margin-top: 18px; font-size: 14px; text-align: left; }
}

/* Условия оплаты и логотип Robokassa (требование договора с платёжным сервисом). */
.payment-terms { display: flex; align-items: flex-start; gap: 40px; margin-top: 24px; padding: 40px 48px; border-radius: 40px; box-shadow: inset 0 0 0 1px #e4dcff; background: var(--lavender); color: #333139; scroll-margin-top: 32px; }
.payment-terms-logo { flex-shrink: 0; display: inline-flex; align-items: center; gap: 12px; padding: 18px 22px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px #ece7fb; }
.payment-terms-logo img { width: 161px; height: auto; }
.payment-terms-logo .robokassa-icon { width: 32px; height: 32px; }
.payment-terms-body h3 { font-size: 24px; line-height: 1.2; font-weight: 600; }
.payment-terms-body ul { margin: 16px 0 0; padding-left: 20px; display: grid; gap: 10px; font-size: 16px; line-height: 1.45; color: #4a4752; }
.payment-terms-body a { color: var(--purple); text-decoration: underline; text-underline-offset: 2px; }
.footer-robokassa { flex-direction: column; align-items: flex-start !important; gap: 10px !important; height: auto !important; font-size: 14px !important; color: #a2a1a1 !important; }
.footer-robokassa-mark { display: flex; align-items: center; gap: 8px; }
.footer-robokassa img { width: 107px; height: auto; opacity: .9; }
.footer-robokassa .robokassa-icon { width: 20px; height: 20px; }
.account-robokassa { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; }
.account-robokassa .robokassa-icon { width: 26px; height: 26px; }
.account-robokassa img { width: 134px; height: auto; }
@media (max-width: 760px) {
  .payment-terms { flex-direction: column; gap: 20px; margin-top: 64px; padding: 28px 24px; border-radius: 28px; }
  .payment-terms-body h3 { font-size: 20px; }
  .payment-terms-body ul { font-size: 15px; }
}

/* Нижние блоки (условия оплаты, аккаунт) — с тем же отступом, что между блоком
   возможностей Premium и тарифами. */
.payment-terms, .account-block { margin-top: 120px; }
@media (max-width: 1150px) {
  .payment-terms, .account-block { margin-top: 80px; }
}
@media (max-width: 760px) {
  .payment-terms, .account-block { margin-top: 60px; }
}

/* Мобильная версия: кот сидит на верхнем крае карточки «365 дней», а не внизу
   поверх подписи под тарифами. Кот становится обычным элементом сетки между
   карточками; отрицательные отступы сажают его лапами на край карточки. */
@media (max-width: 760px) {
  .plan-monthly { order: 1; }
  .plan-cat { order: 2; position: relative; top: auto; right: auto; bottom: auto; justify-self: end; width: 84px; height: 122px; margin: -24px 26px -38px 0; transform: none; z-index: 2; }
  .plan-annual { order: 3; }
}

/* Планшет и телефон: коты стоят так же, как на компьютере — левый выглядывает
   из-за верхнего края блока «Premium включает», правый лежит на его правом
   верхнем углу. Коты — обычные элементы сетки над блоком, поэтому их положение
   не зависит от того, в сколько строк перенёсся заголовок. */
@media (max-width: 1150px) {
  .premium { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
  /* Все блоки секции — на всю ширину, по порядку; только коты делят строку 2. */
  .premium > * { grid-column: 1 / -1; min-width: 0; }
  .premium-heading { grid-row: 1; }
  .premium-plans { grid-row: 4; }
  .plans-fx-note { grid-row: 5; }
  .payment-terms { grid-row: 6; }
  .account-block { grid-row: 7; }
  .premium-paw { top: 8px; }
  .premium-cat { position: relative; grid-column: 1; grid-row: 2; justify-self: start; top: auto; left: auto; width: 126px; height: 218px; margin: 36px 0 0 12px; transform: none; }
  .premium-bowl { position: relative; grid-column: 2; grid-row: 2; justify-self: end; top: auto; right: auto; width: 209px; height: 202px; margin: 36px -18px 0 0; transform: none; }
  .premium-bowl img { width: 164px; height: 150px; }
  .premium-benefits { grid-column: 1 / -1; grid-row: 3; margin-top: -84px; }
}
@media (max-width: 760px) {
  .premium-cat { width: 95px; height: 164px; margin: 28px 0 0 6px; }
  .premium-bowl { width: 140px; height: 135px; margin: 28px -6px 22px 0; }
  .premium-bowl img { width: 110px; height: 100px; }
  .premium-benefits { margin-top: -62px; }
}
