/* Пухляш VPS · единая плотная сетка v1
 * Последний stylesheet: нормализует чрезмерные отступы из legacy/simple,
 * comfortable, mobile и install-redesign. Функциональные стили не меняет.
 */
:root {
  --puh-layout-width: 1040px;
  --puh-gutter: 24px;
  --puh-block-gap: 16px;
  --puh-card-radius: 18px;
  --puh-subtle-border: #e9e2d9;
}
html { scroll-padding-top: 18px; }
body { overflow-x: clip; }
img,svg { max-width: 100%; }
:where(.step-card,.info-card,.panel,.metric,.hero-card,.plan-strip,.article-card,.gift-box) { min-width: 0; }

/* Единые края шапки и контента. */
body .puh-site-header.brandbar.shell,
body .shell, .home-page main.shell,
.blog-page .shell {
  width: min(calc(100% - var(--puh-gutter) * 2), var(--puh-layout-width)) !important;
  max-width: var(--puh-layout-width);
  margin-inline: auto;
}
body .puh-site-header.brandbar.shell {
  height: 72px !important;
  min-height: 72px !important;
  gap: 12px !important;
}
.puh-site-header .puh-site-brand,
.puh-site-header .puh-site-brand:visited { font-size: 25px !important; gap: 9px !important; }
.puh-site-header .puh-site-brand img { width: 42px !important; height: 42px !important; }
.puh-site-header .puh-site-actions { gap: 9px !important; }
.puh-site-header .puh-header-link { min-height: 38px; }
.cabinet .puh-site-header.brandbar.shell {
  width: 100% !important;
  max-width: 100%;
}
.puh-site-header + .auth-shell { min-height: calc(100svh - 72px); }
.not-found-page .not-found { min-height: calc(100svh - 72px); }

/* Главная: hero, преимущества, FAQ, призыв стоят в одном ритме. */
.home-page { font-size: 15.5px; line-height: 1.55; }
.home-page .hero {
  grid-template-columns: minmax(0,1fr) minmax(225px, 280px);
  gap: 20px;
  padding: 16px 0 18px;
  align-items: stretch;
}
.home-page .hero-card { padding: clamp(22px, 3vw, 30px); border-radius: 20px; }
.home-page .hero h1 { font-size: clamp(36px, 4.7vw, 52px); line-height: 1.08; }
.home-page .hero p { font-size: 16px; line-height: 1.55; margin-bottom: 17px; }
.home-page .hero .button { min-height: 46px; padding: 10px 18px; font-size: 15px; }
.home-page .hero-visual.cat-scene { min-height: 258px; border-radius: 20px; }
.home-page .hero-visual .hero-cat { width: 226px; height: 226px; }
.home-page .cat-orbit { width: 244px; height: 244px; }
.home-page .overview {
  margin: 0 0 26px;
  padding: 15px 8px;
  border-radius: var(--puh-card-radius);
}
.home-page .overview-item { padding-inline: 16px; gap: 10px; }
.home-page .overview strong { font-size: 14px; }
.home-page .overview span { font-size: 12px; line-height: 1.4; }
.home-page .section-head { margin-bottom: 14px; gap: 12px; }
.home-page .section-head h2 { font-size: clamp(24px,3vw,29px); }
.home-page .faq-section { margin-bottom: 24px; scroll-margin-top: 18px; }
.home-page .faq-list { gap: 9px; margin-bottom: 0; }
.home-page .faq-item { border-width: 1px; border-radius: 15px; }
.home-page .faq-item summary { min-height: 53px; padding: 12px 16px; font-size: 14px; }
.home-page .faq-answer { padding: 13px 16px; font-size: 14px; }
.home-page .plan-strip { gap: 16px; padding: 22px 26px; border-radius: 18px; }
.home-page .plan-strip h2 { font-size: 23px; margin-bottom: 5px; }
.home-page .plan-strip p { font-size: 14px; }
.home-page .plan-strip strong { font-size: 28px; }
.home-page .plan-actions { gap: 12px; flex-wrap: wrap; }
.home-page .plan-actions .button { min-height: 45px; padding: 10px 17px; font-size: 14px; }

/* Кабинет: убираем отступы между навигацией, заголовком и карточками. */
.cabinet .desktop-layout { padding: 0 var(--puh-gutter) 22px; }
.cabinet .desktop-screen { width: 100%; max-width: var(--puh-layout-width); }
.cabinet h1.profile-greeting {
  font-size: clamp(26px, 3.3vw, 34px);
  margin: 12px 0 17px;
  line-height: 1.17;
  text-align: left;
}
.cabinet .tab-panel { margin-top: 0; }
.cabinet .step-card { padding: 23px; margin-bottom: 15px; border-radius: 20px; }
.cabinet .step-head { margin-bottom: 15px; gap: 12px; }
.cabinet .step-head h3 { font-size: 21px; line-height: 1.2; }
.cabinet .step-head p { font-size: 14px; line-height: 1.45; }
.cabinet .sub-data-grid { gap: 10px; }
.cabinet .sub-data-item { padding: 16px; border-radius: 15px; }
.cabinet .sub-data-label { font-size: 13px; }
.cabinet .sub-data-value { font-size: clamp(20px, 2.4vw, 26px); }
.cabinet .pay-form-open { margin-top: 12px; }
.cabinet .pay-divider { margin: 13px 0; }
.cabinet .pay-selector { gap: 10px; }
.cabinet .pay-opt { padding: 15px; border-radius: 14px; }
.cabinet .slider-block,
.cabinet .price-display { padding: 17px; margin-bottom: 13px; }
.cabinet .primary-button { min-height: 46px; padding: 11px 18px; font-size: 15px; }
.cabinet .lte-card { margin: 13px 0; padding: 15px; }
.cabinet .reward-grid,
.cabinet .platform-guide-grid { gap: 12px; }
.cabinet .reward-card,
.cabinet .platform-guide { padding: 17px; border-radius: 17px; }
.cabinet .subscription-nav {
  width: min(680px, calc(100% - 28px));
  max-width: calc(100% - 28px);
  gap: 7px;
  padding: 7px;
  border-radius: 19px;
}
.cabinet .subscription-nav .page-tab {
  min-height: 57px;
  padding: 9px 12px;
  gap: 8px;
  font-size: 14px;
  border-radius: 13px;
}
.cabinet .subscription-nav .icon { width: 21px; height: 21px; }
/* Старое пошаговое расположение установки смещало вторую карточку вправо. */
#install-panel .install-intro { margin-bottom: 14px; }
#install-panel .install-shell.step-card,
#install-panel .install-devices-card.step-card { padding: 21px; margin-bottom: 15px; border-radius: 19px; }
#install-panel .install-choice-grid { gap: 10px; margin-bottom: 15px; }
#install-panel .install-steps-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}
#install-panel .install-steps-grid > .install-step-card,
#install-panel .install-steps-grid > .install-step-card:nth-of-type(2n),
#install-panel .install-steps-grid > .install-step-card:nth-child(1),
#install-panel .install-steps-grid > .install-step-card:nth-child(2) {
  grid-column: auto;
  width: 100%;
  min-height: 0;
  padding: 18px;
  border-radius: 17px;
  justify-self: stretch;
}
#install-panel .install-steps-grid > .install-final-step.install-step-card,
#install-panel .install-steps-grid > .install-final-step.install-step-card:nth-child(3) {
  grid-column: 1/-1;
  min-height: 0;
  width: 100%;
  padding: 16px 18px;
}
#install-panel .install-step-meta { margin-bottom: 9px; }
#install-panel .install-step-card > h3 { font-size: 19px; margin-bottom: 7px; }
#install-panel .install-step-card > p { font-size: 14px; }

/* Страницы входа, подарка и активации: карточка ближе к шапке. */
.auth-page .auth-wrap { width: min(calc(100% - 40px), 465px); margin: 16px auto 0; }
.auth-page .auth-heading { gap: 9px; margin-bottom: 11px; }
.auth-page .auth-heading img { width: 68px; height: 68px; }
.auth-page .auth-card { padding: 25px; border-radius: 20px; }
.auth-page .auth-card h1 { font-size: 27px; margin-bottom: 9px; }
.auth-page .auth-card .auth-lead { font-size: 15px; line-height: 1.5; margin-bottom: 15px; }
.auth-page .auth-card input { min-height: 46px; padding: 12px 13px; font-size: 16px; }
.auth-page .auth-card .button { min-height: 46px; padding: 11px 16px; margin-top: 12px; font-size: 15px; }
.auth-page .gift-box { width: min(calc(100% - 40px), 500px); margin: 28px auto 20px; padding: 24px; }
.auth-page .gift-box h1 { margin: 9px 0; font-size: 26px; }
.auth-page .gift-box .notice { margin: 10px 0; }
.claim-main { margin-top: 8px; margin-bottom: 18px; }
.claim-main .claim-illustration { height: 97px; }
.claim-main .claim-card { padding: 32px 25px 22px; border-radius: 20px; }
.claim-main .claim-card h1 { margin: 12px 0 9px; }
.claim-main .claim-days { margin: 12px 0; }
.not-found-page .not-found { gap: 11px; padding: 15px 0; }
.not-found-page .error-card { padding: 27px; border-radius: 20px; }
.not-found-page .mascot { width: 120px; height: 120px; margin-top: 8px; }
.not-found-page .error-code { font-size: 65px; margin: 4px 0; }

/* Юридические, информация, поддержка: одно выравнивание с шапкой,
   более короткие промежутки; длинный текст не растягиваем на весь экран. */
.info-page .info-container {
  width: min(calc(100% - var(--puh-gutter) * 2), var(--puh-layout-width));
}
.info-page .info-main { padding: 17px 0 22px; }
.info-page .info-heading { margin-bottom: 16px; }
.info-page .info-heading h1 { font-size: clamp(29px, 3.7vw, 39px); margin-bottom: 6px; }
.info-page .info-heading > p:last-child { line-height: 1.5; }
.info-page .info-stack { gap: 11px; }
.info-page .info-card { padding: 18px 21px; border-radius: 17px; box-shadow: none; }
.info-page .info-card h2 { margin-bottom: 7px; font-size: 18px; }
.info-page .info-card p { margin-bottom: 8px; line-height: 1.57; }
.info-legal .info-card p,
.info-legal .info-card li { max-width: 89ch; }
.info-page .info-footer { padding: 15px 0 20px; gap: 12px; }
.info-page .info-field { gap: 6px; margin: 11px 0; }
.info-page .info-message-list { gap: 8px; margin: 11px 0; }
.info-page .info-toolbar { margin-top: 10px; }
.info-page .info-faq { gap: 14px; }

/* Админка: широкий рабочий экран, но без больших пустых промежутков. */
.admin-page { --puh-layout-width: 1200px; }
.dashboard { max-width: 1200px; padding: 10px var(--puh-gutter) 40px; }
.dashboard .header { padding: 5px 0 13px; }
.dashboard .tabs { max-width: none; gap: 6px; margin-bottom: 15px; border-radius: 14px; }
.dashboard .tab { min-height: 42px; padding: 8px 12px; border-radius: 10px; }
.dashboard .heading { margin: 5px 0 12px; }
.dashboard .heading h1 { font-size: clamp(25px,3vw,30px); }
.dashboard .panel { padding: 19px; margin-bottom: 13px; border-radius: 17px; }
.dashboard .metric-grid { gap: 10px; }
.dashboard .metric { min-height: 103px; gap: 6px; padding: 17px 19px; border-radius: 16px; }
.dashboard .metric strong { font-size: clamp(25px, 3.5vw, 34px); line-height: 1.15; }
.dashboard .analytics-charts { gap: 12px; margin: 13px 0; }
.dashboard .svg-chart { min-height: 165px; }
.dashboard .analytics-topbar { margin-bottom: 11px; }
.dashboard .fields { margin: 9px 0 13px; gap: 10px; }
.dashboard .toolbar { margin-bottom: 10px; }
.dashboard th,.dashboard td { padding: 10px 11px; }
.dashboard .ticket-list { gap: 7px; margin-top: 10px; }
.dashboard .support-layout { gap: 12px; }

/* Блог и общие футеры. */
.blog-page .intro { max-width: 860px; padding: 17px 0 13px; }
.blog-page .intro h1 { font-size: clamp(30px,4vw,41px); margin: 8px 0 7px; }
.blog-page .intro p { margin: 8px 0 0; line-height: 1.55; }
.blog-page .filters { margin: 5px 0 16px; gap: 7px; }
.blog-page .cards { gap: 12px; }
.blog-page .article-card { padding: 18px; border-radius: 16px; }
.blog-page .article-card h2 { margin: 11px 0 6px; font-size: 18px; }
.blog-page .article-card .read { margin-top: 13px; }
.blog-page .cta { padding: 20px; border-radius: 17px; margin: 22px 0 30px; }
.blog-page .crumb { margin: 15px 0; }
.blog-page .reading article { padding: clamp(19px,3vw,30px); border-radius: 18px; }
.blog-page .reading article section { padding-top: 10px; margin-top: 16px; }
.mini-footer,.home-page .mini-footer,.auth-page .mini-footer,.cabinet .mini-footer,.blog-page .mini-footer {
  margin-top: 16px;
  padding: 15px var(--puh-gutter) max(18px,env(safe-area-inset-bottom));
  border: 0;
}

@media (max-width: 850px) {
  :root { --puh-gutter: 18px; }
  .home-page .hero { grid-template-columns: minmax(0,1fr) 200px; gap: 14px; }
  .home-page .hero-visual.cat-scene { min-height: 215px; }
  .home-page .hero-visual .hero-cat { width: 185px; height: 185px; }
  .home-page .overview-item { padding-inline: 10px; }
  .cabinet .step-card { padding: 19px; }
  .dashboard .metric-grid { gap: 9px; }
}
@media (max-width: 640px) {
  :root { --puh-gutter: 14px; }
  body .puh-site-header.brandbar.shell,
  body .puh-site-header.brandbar.shell {
    height: 60px !important;
    min-height: 60px !important;
    width: calc(100% - var(--puh-gutter) * 2) !important;
    gap: 7px !important;
  }
  .cabinet .puh-site-header.brandbar.shell { width: 100% !important; }
  .puh-site-header .puh-site-brand,
  .puh-site-header .puh-site-brand:visited { font-size: 20px !important; gap: 7px !important; }
  .puh-site-header .puh-site-brand img { width: 33px !important; height: 33px !important; }
  .puh-site-header .puh-site-actions { gap: 5px !important; }
  .puh-site-header .puh-header-link { min-height: 33px; padding: 7px 9px; font-size: 12px; }
  .puh-site-header + .auth-shell { min-height: calc(100svh - 60px); }
  .not-found-page .not-found { min-height: calc(100svh - 60px); }
  .home-page > header.brandbar.shell { padding: 0 !important; border-bottom: 0 !important; background: transparent !important; }
  .home-page .mobile-cat-top { height: 104px; margin: 5px var(--puh-gutter) 0; padding: 0; border-radius: 16px; }
  .home-page .mobile-cat-top img { height: 99px; width: 115px; }
  .home-page .hero { display: block; padding: 8px 0 14px; }
  .home-page .hero-card { padding: 19px; border-radius: 17px; }
  .home-page .hero h1 { font-size: clamp(30px,8vw,37px); }
  .home-page .hero p { font-size: 14px; margin-bottom: 13px; }
  .home-page .hero-visual.cat-scene { display: none; }
  .home-page .overview { padding: 5px 15px; margin: 0 0 20px; border-radius: 16px; }
  .home-page .overview-item { padding: 10px 0; gap: 10px; }
  .home-page .overview strong { font-size: 13px; }
  .home-page .overview span { font-size: 12px; }
  .home-page .faq-section { margin-bottom: 18px; }
  .home-page .faq-section-head { gap: 7px; }
  .home-page .section-head h2 { font-size: 23px; }
  .home-page .faq-item summary { padding: 11px 13px; min-height: 48px; }
  .home-page .plan-strip { padding: 16px; gap: 10px; }
  .home-page .plan-strip h2 { font-size: 20px; }
  .home-page .plan-strip .plan-actions { gap: 8px; }
  .cabinet .desktop-layout { padding: 0 var(--puh-gutter) 68px; }
  .cabinet h1.profile-greeting { font-size: 25px; margin: 7px 0 14px; }
  .cabinet .step-card { padding: 16px; margin-bottom: 12px; border-radius: 17px; }
  .cabinet .step-head { margin-bottom: 12px; gap: 8px; }
  .cabinet .step-head h3 { font-size: 19px; }
  .cabinet .step-head p { font-size: 13px; }
  .cabinet .sub-data-grid { gap: 8px; }
  .cabinet .sub-data-item { padding: 13px; border-radius: 13px; }
  .cabinet .sub-data-value { font-size: 22px; }
  .cabinet .subscription-nav { width: min(390px, calc(100% - 20px)); max-width: calc(100% - 20px); gap: 4px; padding: 5px; border-radius: 17px; }
  .cabinet .subscription-nav .page-tab { min-height: 52px; flex-direction: column; padding: 6px 4px; gap: 3px; font-size: 11px; border-radius: 12px; }
  .cabinet .subscription-nav .icon { width: 19px; height: 19px; }
  #install-panel .install-shell.step-card,
  #install-panel .install-devices-card.step-card { padding: 16px; margin-bottom: 12px; border-radius: 17px; }
  #install-panel .install-steps-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
  #install-panel .install-steps-grid > .install-step-card,
  #install-panel .install-steps-grid > .install-step-card:nth-of-type(2n),
  #install-panel .install-steps-grid > .install-step-card:nth-child(1),
  #install-panel .install-steps-grid > .install-step-card:nth-child(2),
  #install-panel .install-steps-grid > .install-final-step.install-step-card,
  #install-panel .install-steps-grid > .install-final-step.install-step-card:nth-child(3) {
    grid-column: 1; width: 100%; min-height: 0; padding: 15px; justify-self: stretch;
  }
  .auth-page .auth-wrap { width: calc(100% - var(--puh-gutter) * 2); margin-top: 8px; }
  .auth-page .auth-heading { margin-bottom: 8px; }
  .auth-page .auth-heading img { width: 56px; height: 56px; }
  .auth-page .auth-card { padding: 20px 17px; border-radius: 17px; }
  .auth-page .auth-card h1 { font-size: 25px; }
  .auth-page .gift-box { width: calc(100% - var(--puh-gutter) * 2); margin: 17px auto; padding: 19px; }
  .claim-main { padding: 0 var(--puh-gutter); }
  .claim-main .claim-card { padding: 30px 18px 19px; }
  .info-page .info-main { padding: 12px 0 16px; }
  .info-page .info-heading { margin-bottom: 12px; }
  .info-page .info-heading h1 { font-size: 29px; }
  .info-page .info-stack { gap: 9px; }
  .info-page .info-card { padding: 16px; border-radius: 15px; }
  .info-page .info-faq { gap: 10px; }
  .info-page .info-footer { padding: 13px 0 19px; }
  .dashboard { padding: 10px var(--puh-gutter) 35px; }
  .dashboard .header { gap: 8px; padding-bottom: 11px; }
  .dashboard .tabs { overflow-x: auto; max-width: 100%; justify-content: flex-start; gap: 4px; padding: 4px; margin-bottom: 11px; }
  .dashboard .tabs .tab { flex: 0 0 auto; min-height: 40px; padding: 8px 10px; font-size: 12px; }
  .dashboard .panel { padding: 15px; margin-bottom: 11px; border-radius: 15px; }
  .dashboard .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .dashboard .metric { padding: 13px; min-height: 95px; }
  .dashboard .metric strong { font-size: 25px; }
  .dashboard .fields { grid-template-columns: minmax(0,1fr); }
  .blog-page .intro { padding: 12px 0 9px; }
  .blog-page .filters { margin-bottom: 12px; }
  .blog-page .cards { grid-template-columns: minmax(0,1fr); gap: 9px; }
  .blog-page .article-card { padding: 16px; }
  .blog-page .cta { padding: 17px; margin: 18px 0 25px; }
  .mini-footer,.home-page .mini-footer,.auth-page .mini-footer,.cabinet .mini-footer,.blog-page .mini-footer { margin-top: 12px; padding: 12px var(--puh-gutter) max(18px,env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  :root { --puh-gutter: 12px; }
  .home-page .hero-card { padding: 16px; }
  .home-page .hero .actions { align-items: stretch; }
  .dashboard .metric { padding: 12px 10px; }
  .cabinet .subscription-nav .page-tab { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .faq-item summary,.blog-page .article-card { scroll-behavior: auto; transition: none; }
}
