:root {
  --abt-primary: #101828;
  --abt-accent: #f6c343;
  --abt-bg: #f6f8fb;
  --abt-muted: #667085;
  --abt-white: #ffffff;
  --abt-border: rgba(16, 24, 40, .10);
  --abt-shadow: 0 18px 55px rgba(16, 24, 40, .10);
  --abt-radius: 24px;
  --abt-container: 1270px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--abt-bg);
  color: var(--abt-primary);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.screen-reader-text,
.abt-skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.abt-skip:focus {
  width: auto;
  height: auto;
  clip: auto;
  z-index: 9999;
  left: 16px;
  top: 16px;
  padding: 12px 18px;
  background: var(--abt-primary);
  color: #fff;
  border-radius: 12px;
}
.abt-container {
  width: min(calc(100% - 32px), var(--abt-container));
  margin-inline: auto;
}
.abt-narrow {
  padding: 0 20px;
}

.abt-site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(246, 248, 251, .88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.abt-site-header.is-scrolled {
  border-color: var(--abt-border);
  box-shadow: 0 8px 30px rgba(16,24,40,.06);
}
.abt-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
}
.abt-brand { flex: 0 0 auto; }
.abt-brand img { max-height: 54px; width: auto; display: block; }
.abt-brand-text {
  display: grid;
  line-height: 1.15;
}
.abt-brand-text span {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -.03em;
}
.abt-brand-text small {
  color: var(--abt-muted);
  font-size: 12px;
  margin-top: 3px;
}
.abt-main-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.abt-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.abt-menu a {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  color: rgba(16, 24, 40, .82);
  font-weight: 700;
  font-size: 14px;
}
.abt-menu a:hover,
.abt-menu .current-menu-item > a {
  background: #fff;
  box-shadow: 0 8px 24px rgba(16,24,40,.07);
}
.abt-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.abt-phone,
.abt-icon-btn,
.abt-cta,
.abt-footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.abt-phone {
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--abt-border);
}
.abt-icon-btn {
  width: 44px;
  background: #fff;
  border: 1px solid var(--abt-border);
  font-size: 13px;
}
.abt-cta {
  padding: 0 18px;
  background: var(--abt-accent);
  color: var(--abt-primary);
  box-shadow: 0 12px 28px rgba(246,195,67,.32);
}
.abt-phone:hover,
.abt-icon-btn:hover,
.abt-cta:hover,
.abt-footer-btn:hover { transform: translateY(-1px); }
.abt-menu-toggle {
  display: none;
  border: 0;
  background: #fff;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(16,24,40,.07);
}

.abt-page-hero {
  padding: 64px 0 36px;
  position: relative;
  overflow: hidden;
}
.abt-page-hero::before {
  content: "";
  position: absolute;
  inset: 16px 16px auto 16px;
  height: 240px;
  background: linear-gradient(135deg, rgba(246,195,67,.22), rgba(16,24,40,.05));
  border-radius: 0 0 38px 38px;
  z-index: -1;
}
.abt-page-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: .98;
  letter-spacing: -.055em;
}
.abt-page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--abt-muted);
  font-size: 18px;
}
.abt-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px !important;
  color: var(--abt-primary) !important;
  font-weight: 900;
  font-size: 13px !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.abt-kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--abt-accent);
}

.abt-page-content,
.abt-content-wrap {
  padding: 28px 0 72px;
}
.abt-entry {
  background: #fff;
  border: 1px solid var(--abt-border);
  border-radius: var(--abt-radius);
  box-shadow: var(--abt-shadow);
  padding: clamp(22px, 4vw, 46px);
}
.abt-front-content,
.abt-fullwidth-page .abt-entry,
.abt-fullwidth-page {
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
}
.abt-entry h2,
.abt-entry h3,
.abt-entry h4 {
  line-height: 1.1;
  letter-spacing: -.035em;
}
.abt-entry h2 { font-size: clamp(28px, 3vw, 42px); }
.abt-entry h3 { font-size: clamp(22px, 2.4vw, 30px); }
.abt-entry p,
.abt-entry li { color: rgba(16,24,40,.82); }
.abt-entry a { color: var(--abt-primary); font-weight: 800; border-bottom: 2px solid var(--abt-accent); }

.abt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  padding: 34px 0 76px;
}
.abt-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.abt-post-card,
.abt-empty-card,
.abt-widget {
  background: #fff;
  border: 1px solid var(--abt-border);
  border-radius: var(--abt-radius);
  box-shadow: var(--abt-shadow);
  overflow: hidden;
}
.abt-post-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(246,195,67,.28), rgba(16,24,40,.07));
}
.abt-post-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.abt-post-thumb span {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 44px;
  color: rgba(16,24,40,.3);
}
.abt-post-body { padding: 22px; }
.abt-post-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--abt-muted);
  font-size: 13px;
  font-weight: 800;
}
.abt-post-card h2 {
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -.035em;
  margin: 12px 0 10px;
}
.abt-post-card p { color: var(--abt-muted); margin: 0 0 18px; }
.abt-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
}
.abt-sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}
.abt-widget { padding: 22px; }
.abt-widget-title { margin: 0 0 14px; font-size: 22px; letter-spacing: -.03em; }
.abt-widget ul { margin: 0; padding-left: 18px; }
.abt-pagination {
  grid-column: 1 / -1;
  margin-top: 16px;
}
.abt-pagination .nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.abt-pagination a,
.abt-pagination span {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--abt-border);
  font-weight: 900;
}
.abt-pagination .current { background: var(--abt-accent); border-color: transparent; }
.abt-single-entry { overflow: hidden; }
.abt-single-thumb { margin: -46px -46px 34px; }
.abt-single-thumb img { width: 100%; display: block; max-height: 520px; object-fit: cover; }

.abt-search-form {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin-top: 20px;
}
.abt-search-form input {
  flex: 1;
  min-height: 52px;
  border: 1px solid var(--abt-border);
  border-radius: 999px;
  padding: 0 18px;
  background: #fff;
  outline: none;
}
.abt-search-form button {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  background: var(--abt-accent);
  color: var(--abt-primary);
  font-weight: 900;
  cursor: pointer;
}

.abt-site-footer {
  background: #0b1220;
  color: #fff;
  margin-top: 40px;
}
.abt-footer-top {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 28px;
  padding: 46px 0 28px;
  align-items: start;
}
.abt-footer-brand strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  margin-bottom: 10px;
}
.abt-footer-brand p,
.abt-footer-contact span { color: rgba(255,255,255,.72); }
.abt-footer-contact {
  display: grid;
  gap: 10px;
}
.abt-footer-contact span {
  display: flex;
  gap: 10px;
  align-items: center;
}
.abt-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.abt-footer-btn {
  padding: 0 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
}
.abt-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.62);
}
.abt-footer-menu {
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 1080px) {
  .abt-menu-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .abt-main-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 90px;
    display: none;
    background: #fff;
    border: 1px solid var(--abt-border);
    border-radius: 24px;
    box-shadow: var(--abt-shadow);
    padding: 14px;
    justify-content: stretch;
  }
  .abt-main-nav.is-open { display: block; }
  .abt-menu { display: grid; gap: 4px; }
  .abt-menu a { display: flex; padding: 13px 14px; }
  .abt-header-actions .abt-phone span { display: none; }
  .abt-header-actions .abt-cta { display: none; }
}

@media (max-width: 900px) {
  .abt-layout,
  .abt-single-layout,
  .abt-footer-top { grid-template-columns: 1fr; }
  .abt-post-grid { grid-template-columns: 1fr; }
  .abt-footer-actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .abt-container { width: min(calc(100% - 24px), var(--abt-container)); }
  .abt-header-inner { min-height: 72px; gap: 8px; }
  .abt-brand-text span { font-size: 17px; }
  .abt-brand-text small { display: none; }
  .abt-header-actions { gap: 6px; }
  .abt-icon-btn,
  .abt-phone { width: 42px; min-height: 42px; padding: 0; }
  .abt-phone span { display: none; }
  .abt-page-hero { padding: 42px 0 24px; }
  .abt-page-hero h1 { font-size: 38px; }
  .abt-page-hero p { font-size: 16px; }
  .abt-entry { padding: 22px; }
  .abt-single-thumb { margin: -22px -22px 24px; }
  .abt-search-form { flex-direction: column; }
  .abt-footer-bottom { flex-direction: column; }
  .abt-footer-menu { flex-wrap: wrap; }
}

/* === Theme polish fixes 2026-05-12 === */
.abt-site-main{overflow:hidden}.abt-site-header{z-index:9000}.admin-bar .abt-site-header{top:32px}.abt-icon-btn img,.abt-footer-btn img{width:20px;height:20px;object-fit:contain;display:block}.abt-icon-btn{overflow:hidden}.abt-fullwidth-page .abt-page-content{padding-top:0}.abt-fullwidth-page .abt-entry{max-width:none}.abt-page-content .abt-wrap:first-child .abt-hero{margin-top:0}.abt-footer-actions .abt-footer-btn{min-width:118px}.abt-site-footer{margin-top:0}
@media (max-width:782px){.admin-bar .abt-site-header{top:46px}}
@media (max-width:1080px){.abt-main-nav{z-index:9100}.abt-menu-toggle{font-size:18px;color:#0b8ee8}.abt-header-actions{margin-left:auto}.abt-header-actions .abt-phone,.abt-header-actions .abt-icon-btn{box-shadow:0 8px 24px rgba(16,24,40,.07)}}
@media (max-width:640px){.abt-container{width:min(calc(100% - 24px),var(--abt-container))}.abt-site-header{border-radius:0 0 28px 28px;background:rgba(246,248,251,.96)}.abt-header-inner{min-height:76px}.abt-brand-text span{font-size:22px}.abt-menu-toggle{position:absolute;left:50%;transform:translateX(-50%);min-height:50px;padding:0 18px;border-radius:999px;font-size:20px}.abt-header-actions{gap:8px}.abt-icon-btn,.abt-phone{width:50px;min-height:50px;border-radius:50%;font-size:15px}.abt-main-nav{top:86px;left:12px;right:12px}.abt-footer-top{padding:52px 0 28px}.abt-footer-brand strong{font-size:32px}.abt-footer-brand p,.abt-footer-contact span{font-size:20px;line-height:1.45}.abt-footer-contact{gap:18px}.abt-footer-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.abt-footer-actions .abt-footer-btn{min-height:56px}.abt-footer-actions .abt-footer-btn:first-child{grid-column:1 / -1}.abt-footer-bottom{padding-bottom:110px}}

/* === Mobile header fix v5 === */
@media (max-width: 640px){
  .abt-site-header{
    border-radius: 0 0 24px 24px;
    overflow: visible;
  }

  .abt-header-inner{
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 72px;
  }

  .abt-brand{
    min-width: 0;
    max-width: 118px;
    overflow: hidden;
    justify-self: start;
  }

  .abt-brand a,
  .abt-brand .custom-logo-link{
    display: inline-flex;
    align-items: center;
    max-width: 100%;
  }

  .abt-brand img,
  .abt-brand .custom-logo{
    display: block;
    max-width: 112px;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .abt-brand-text{
    min-width: 0;
    max-width: 112px;
  }

  .abt-brand-text span{
    display: block;
    max-width: 112px;
    font-size: 20px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .abt-menu-toggle{
    position: static;
    transform: none;
    justify-self: center;
    min-height: 48px;
    padding: 0 16px;
    gap: 7px;
    font-size: 18px;
    line-height: 1;
    z-index: 2;
  }

  .abt-menu-toggle i{
    font-size: 22px;
    line-height: 1;
  }

  .abt-header-actions{
    justify-self: end;
    margin-left: 0;
    gap: 6px;
    min-width: 0;
  }

  .abt-header-actions .abt-phone,
  .abt-header-actions .abt-icon-btn{
    width: 46px;
    min-width: 46px;
    min-height: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    flex: 0 0 46px;
  }

  .abt-header-actions .abt-phone i,
  .abt-header-actions .abt-icon-btn i{
    font-size: 18px;
  }

  .abt-icon-btn img{
    width: 20px;
    height: 20px;
  }

  .abt-main-nav{
    top: 82px;
    left: 12px;
    right: 12px;
    max-height: calc(100dvh - 100px);
    overflow: auto;
    z-index: 9100;
  }
}

@media (max-width: 390px){
  .abt-container{
    width: min(calc(100% - 20px), var(--abt-container));
  }

  .abt-header-inner{
    gap: 6px;
    min-height: 68px;
  }

  .abt-brand{
    max-width: 94px;
  }

  .abt-brand img,
  .abt-brand .custom-logo{
    max-width: 92px;
    max-height: 42px;
  }

  .abt-brand-text span{
    max-width: 92px;
    font-size: 18px;
  }

  .abt-menu-toggle{
    min-height: 44px;
    padding: 0 13px;
    font-size: 17px;
  }

  .abt-menu-toggle i{
    font-size: 21px;
  }

  .abt-header-actions{
    gap: 5px;
  }

  .abt-header-actions .abt-phone,
  .abt-header-actions .abt-icon-btn{
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    height: 42px;
    flex-basis: 42px;
  }
}

@media (max-width: 340px){
  .abt-brand{
    max-width: 78px;
  }

  .abt-brand img,
  .abt-brand .custom-logo{
    max-width: 76px;
    max-height: 38px;
  }

  .abt-menu-toggle{
    padding: 0;
    width: 44px;
    min-width: 44px;
  }

  .abt-menu-toggle span{
    display: none;
  }

  .abt-header-actions .abt-phone,
  .abt-header-actions .abt-icon-btn{
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    height: 40px;
    flex-basis: 40px;
  }
}


/* v7: страницы с шорткодами плагина на всю ширину + нормальный подвал */
.abt-plugin-page{padding:0!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important;}
.abt-plugin-page > .abt-wrap:first-child .abt-hero{margin-top:0!important;}
.abt-plugin-page + .abt-site-footer,.abt-manager-wrap + .abt-site-footer{margin-top:0!important;}
.abt-site-main{display:block;}
.abt-site-main > .abt-page-content:last-child{margin-bottom:0!important;}
.abt-footer-links{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap;}
.abt-footer-links a{color:rgba(255,255,255,.78);font-weight:700;font-size:14px;}
.abt-footer-links a:hover{color:#fff;}
.abt-footer-links .abt-footer-menu{display:flex;gap:14px;margin:0;padding:0;list-style:none;flex-wrap:wrap;}
.abt-footer-links .abt-footer-menu a{color:rgba(255,255,255,.78);}
@media (max-width:760px){
  .abt-footer-links{justify-content:flex-start;}
}

/* v8: управление шириной заголовков, SVG-иконки, стык Альбины и подвала */
.abt-page-hero h1{
  max-width:var(--abt-title-width-desktop, 980px);
}
@media (max-width:640px){
  .abt-page-hero h1{
    max-width:min(100%, var(--abt-title-width-mobile, 360px));
  }
}
.abt-icon-btn img,.abt-footer-btn img{
  width:22px;
  height:22px;
  object-fit:contain;
  display:block;
}
.abt-icon-btn img[src$=".svg"],.abt-footer-btn img[src$=".svg"]{
  width:22px;
  height:22px;
}
.abt-site-footer{margin-top:0!important;}
.abt-site-main:has(.abt-manager-wrap:last-child){padding-bottom:0!important;}
.abt-site-main:has(.abt-manager-wrap:last-child)+.abt-site-footer{margin-top:0!important;}
.abt-manager-wrap{margin-bottom:0!important;}
.abt-manager-wrap + p:empty{display:none!important;}
.abt-fullwidth-page .abt-page-content{padding-bottom:0!important;}


/* v9: расчёт тура и стандартные страницы шире/аккуратнее */
.abt-page-content.abt-plugin-page{
  padding:0!important;
}
.abt-plugin-page .abt-calculation-public{
  padding-top:32px!important;
}
.abt-content-wrap{
  width:min(calc(100% - 32px), var(--abt-container));
  margin-inline:auto;
}
.abt-content-full .abt-entry{
  max-width:1120px;
  margin-inline:auto;
}
@media (max-width: 640px){
  .abt-content-wrap{
    width:min(calc(100% - 14px), var(--abt-container));
    padding-top:14px;
    padding-bottom:34px;
  }
  .abt-content-full .abt-entry{
    padding:18px;
    border-radius:22px;
  }
  .abt-page-content.abt-plugin-page{
    width:100%;
  }
  .abt-plugin-page .abt-calculation-public{
    padding-top:12px!important;
  }
}

/* v10: typography controls for theme pages and plugin blocks */
body{font-size:var(--abt-text-size-desktop,17px);}
.abt-page-hero h1,.abt-entry h1{font-size:var(--abt-h1-size-desktop,64px)!important;}
.abt-entry h2,.abt-post-card h2{font-size:var(--abt-h2-size-desktop,42px)!important;}
.abt-entry h3,.abt-widget-title{font-size:var(--abt-h3-size-desktop,28px)!important;}
.abt-entry p,.abt-entry li,.abt-page-hero p,.abt-post-card p,.abt-footer-brand p,.abt-footer-contact span{font-size:var(--abt-text-size-desktop,17px);}
.abt-phone,.abt-icon-btn,.abt-cta,.abt-footer-btn,.abt-menu a,.abt-menu-toggle{font-size:var(--abt-button-size-desktop,16px);}
@media (max-width:640px){
  body{font-size:var(--abt-text-size-mobile,16px);}
  .abt-page-hero h1,.abt-entry h1{font-size:var(--abt-h1-size-mobile,42px)!important;line-height:1.08;}
  .abt-entry h2,.abt-post-card h2{font-size:var(--abt-h2-size-mobile,34px)!important;}
  .abt-entry h3,.abt-widget-title{font-size:var(--abt-h3-size-mobile,23px)!important;}
  .abt-entry p,.abt-entry li,.abt-page-hero p,.abt-post-card p,.abt-footer-brand p,.abt-footer-contact span{font-size:var(--abt-text-size-mobile,16px);}
  .abt-phone,.abt-icon-btn,.abt-cta,.abt-footer-btn,.abt-menu a,.abt-menu-toggle{font-size:var(--abt-button-size-mobile,16px);}
}
