/* v2.17.3 — stable homepage-style normalization for selected service pages */
.content-page--home-style{
  --mp-ink:#111827;
  --mp-copy:#374151;
  --mp-muted:#6b7280;
  --mp-line:#e4e8ef;
  --mp-accent:#3f4d63;
  --mp-soft:#f7f9fc;
  max-width:1140px;
  margin:0 auto;
  color:var(--mp-ink);
}

.content-page--home-style .modern-page-kicker{
  margin:0 0 10px;
  color:#6b7280;
  font-size:13px;
  font-weight:700;
}

/* Do not force legacy content into artificial cards. */
.content-page--home-style .modern-page-content{
  display:block;
  background:#fff;
  border:1px solid var(--mp-line);
  border-radius:16px;
  box-shadow:0 10px 28px rgba(15,23,42,.05);
  padding:26px 28px;
  overflow:hidden;
}

.content-page--home-style h1{
  margin:0 0 16px;
  max-width:900px;
  color:var(--mp-ink);
  font-size:clamp(30px,3.4vw,44px);
  line-height:1.1;
  font-weight:800;
  letter-spacing:-.025em;
}

.content-page--home-style h2{
  margin:30px 0 14px;
  color:var(--mp-ink);
  font-size:clamp(22px,2.5vw,30px);
  line-height:1.2;
  font-weight:800;
  letter-spacing:-.018em;
}

.content-page--home-style h3{
  margin:24px 0 10px;
  color:#172033;
  font-size:19px;
  line-height:1.3;
  font-weight:750;
}

.content-page--home-style p{
  color:var(--mp-copy);
  line-height:1.7;
}

.content-page--home-style ul,
.content-page--home-style ol{
  color:var(--mp-copy);
  line-height:1.65;
}

.content-page--home-style li+li{margin-top:5px}

/* Keep old grid/column structures intact, only normalize spacing. */
.content-page--home-style .row,
.content-page--home-style [class*="grid"]{
  row-gap:18px;
}

.content-page--home-style .well,
.content-page--home-style .alert,
.content-page--home-style .form-message{
  border:1px solid #e1e6ed;
  border-radius:12px;
  background:#f8fafc;
  box-shadow:none;
}

.content-page--home-style table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  margin:18px 0;
  border:1px solid #dfe5ee;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
}

.content-page--home-style th{
  padding:12px 14px;
  background:#f7f9fc;
  border-bottom:1px solid #dfe5ee;
  color:#64748b;
  text-align:left;
  font-size:13px;
  font-weight:750;
}

.content-page--home-style td{
  padding:12px 14px;
  border-bottom:1px solid #edf0f4;
  vertical-align:top;
  color:#334155;
}

.content-page--home-style tr:last-child td{border-bottom:0}

.content-page--home-style img{
  max-width:100%;
  height:auto;
  border-radius:12px;
}

.content-page--home-style hr{
  border:0;
  border-top:1px solid #e7ebf1;
  margin:28px 0;
}

.content-page--home-style blockquote{
  margin:18px 0;
  padding:15px 18px;
  border-left:4px solid #94a3b8;
  background:#f8fafc;
  border-radius:0 10px 10px 0;
  color:#475569;
}

/* Ordinary links */
.content-page--home-style .modern-page-content a:not(.btn):not(.site-button):not(.modern-btn){
  color:#2f5f91;
  text-underline-offset:2px;
}
.content-page--home-style .modern-page-content a:not(.btn):not(.site-button):not(.modern-btn):hover{
  color:#17395d;
}

/* Fix all existing CTA/button variants: white text on dark background. */
.content-page--home-style a.btn,
.content-page--home-style .btn,
.content-page--home-style a.site-button,
.content-page--home-style .site-button,
.content-page--home-style a[class*="button"],
.content-page--home-style button{
  border-radius:10px;
}

.content-page--home-style .btn-primary,
.content-page--home-style .site-button-primary,
.content-page--home-style a.btn-primary,
.content-page--home-style a.site-button-primary,
.content-page--home-style a[style*="background"],
.content-page--home-style button[style*="background"]{
  color:#fff !important;
}

.content-page--home-style .modern-inline-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:18px 0;
}

.content-page--home-style .modern-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 18px;
  border:1px solid transparent;
  border-radius:10px;
  text-decoration:none!important;
  font-size:14px;
  font-weight:800;
}

.content-page--home-style .modern-btn--primary{
  background:var(--mp-accent);
  border-color:var(--mp-accent);
  color:#fff!important;
  box-shadow:0 2px 6px rgba(62,75,97,.18);
}

.content-page--home-style .modern-btn--primary:hover{
  color:#fff!important;
  filter:brightness(.92);
}

.content-page--home-style .modern-btn--ghost{
  background:#fff;
  border-color:#cfd6e2;
  color:#334155!important;
}

.content-page--home-style .modern-page-final-cta{
  margin:18px 0 4px;
  padding:20px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  border:1px solid #dde3eb;
  border-radius:16px;
  background:linear-gradient(135deg,#f7f9fc,#fff);
  box-shadow:0 10px 28px rgba(15,23,42,.05);
}

.content-page--home-style .modern-page-final-cta>div:first-child{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.content-page--home-style .modern-page-final-cta strong{
  color:#172033;
  font-size:18px;
}

.content-page--home-style .modern-page-final-cta span{
  color:#6b7280;
  font-size:13px;
  line-height:1.45;
}

.content-page--home-style .modern-page-final-actions{
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

/* Specific legacy CTA areas visible on the tables page */
.content-page--home-style [class*="cta"],
.content-page--home-style [class*="order"]{
  box-sizing:border-box;
}

@media(max-width:760px){
  .content-page--home-style .modern-page-content{
    padding:20px 16px;
    border-radius:14px;
  }

  .content-page--home-style h1{
    font-size:clamp(28px,9vw,36px);
  }

  .content-page--home-style h2{
    margin-top:24px;
    font-size:24px;
  }

  .content-page--home-style .modern-page-final-cta{
    flex-direction:column;
    align-items:stretch;
    padding:18px 16px;
  }

  .content-page--home-style .modern-page-final-actions{
    justify-content:stretch;
  }

  .content-page--home-style .modern-page-final-actions .modern-btn{
    flex:1 1 100%;
  }

  .content-page--home-style table{
    display:block;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
}


/* v2.17.8 — targeted polish */

/* Таблички: HERO finally uses the intended 2-column composition. */
.content-page--home-style[data-page-path="/izgotovlenie-tablichek"] .modern-page-content{
  padding:18px 20px 22px;
}
.content-page--home-style[data-page-path="/izgotovlenie-tablichek"] .modern-page-content > div > .content-section:first-of-type,
.content-page--home-style[data-page-path="/izgotovlenie-tablichek"] .modern-page-content > .content-section:first-of-type{
  border:1px solid #e3e8ef;
  border-radius:15px;
  background:#f6f8fb;
  padding:28px 26px!important;
  margin-bottom:22px;
}
.content-page--home-style[data-page-path="/izgotovlenie-tablichek"] .content-section:first-of-type .content-grid{
  gap:28px;
  align-items:start;
}
.content-page--home-style[data-page-path="/izgotovlenie-tablichek"] .content-section:first-of-type h1{
  max-width:560px;
  margin:0 0 16px;
  font-size:clamp(34px,3.2vw,50px);
  line-height:1.06;
  letter-spacing:-.035em;
}
.content-page--home-style[data-page-path="/izgotovlenie-tablichek"] .content-section:first-of-type h2{
  margin:2px 0 14px;
  padding-left:15px;
  border-left:3px solid #6281a5;
  font-size:clamp(24px,2.1vw,31px);
  line-height:1.12;
}
.content-page--home-style[data-page-path="/izgotovlenie-tablichek"] .content-section:first-of-type .text-lead{
  max-width:580px;
  font-size:16px;
  line-height:1.62;
}
.content-page--home-style[data-page-path="/izgotovlenie-tablichek"] .content-section:first-of-type .content-list{
  margin:0 0 14px;
  padding-left:0;
  list-style:none;
}
.content-page--home-style[data-page-path="/izgotovlenie-tablichek"] .content-section:first-of-type .content-list li{
  position:relative;
  padding:7px 0 7px 26px;
  margin:0;
  border-bottom:1px solid rgba(148,163,184,.18);
}
.content-page--home-style[data-page-path="/izgotovlenie-tablichek"] .content-section:first-of-type .content-list li:last-child{
  border-bottom:0;
}
.content-page--home-style[data-page-path="/izgotovlenie-tablichek"] .content-section:first-of-type .content-list li:before{
  content:"✓";
  position:absolute;
  left:2px;
  top:7px;
  color:#176f42;
  font-weight:900;
}
.content-page--home-style[data-page-path="/izgotovlenie-tablichek"] .content-section:first-of-type .content-list .site-icon{
  display:none;
}
.content-page--home-style[data-page-path="/izgotovlenie-tablichek"] .content-section:first-of-type .form-message{
  margin-top:12px;
}
.content-page--home-style[data-page-path="/izgotovlenie-tablichek"] .content-section:first-of-type .site-button{
  margin-top:10px;
  min-height:46px;
}

/* Make repeated sections more compact; full-width content still stays full-width. */
.content-page--home-style[data-page-path="/izgotovlenie-tablichek"] .content-section{
  padding-top:20px;
  padding-bottom:20px;
}
.content-page--home-style[data-page-path="/izgotovlenie-tablichek"] .content-section h2{
  margin-top:0;
  margin-bottom:10px;
}
.content-page--home-style[data-page-path="/izgotovlenie-tablichek"] .content-card-body{
  padding:17px 18px;
}
.content-page--home-style[data-page-path="/izgotovlenie-tablichek"] .content-card-title{
  margin-top:0;
  margin-bottom:7px;
  font-size:17px;
}
.content-page--home-style[data-page-path="/izgotovlenie-tablichek"] .content-grid-match{
  align-items:stretch;
}
.content-page--home-style[data-page-path="/izgotovlenie-tablichek"] .content-grid-match > * > .content-card{
  height:100%;
}

/* Gallery: less empty space and consistent images. */
.content-page--home-style[data-page-path="/izgotovlenie-tablichek"] img{
  display:block;
}
.content-page--home-style[data-page-path="/izgotovlenie-tablichek"] .content-grid img{
  width:100%;
}

/* Discounts: maintain 2-column cards but make the top rows visually balanced. */
.content-page--home-style[data-page-path="/skidki-i-aktsii"] .content-grid{
  align-items:stretch;
}
.content-page--home-style[data-page-path="/skidki-i-aktsii"] .content-grid > * > .content-card,
.content-page--home-style[data-page-path="/skidki-i-aktsii"] .content-grid > .content-card{
  height:100%;
}
.content-page--home-style[data-page-path="/skidki-i-aktsii"] .content-card-body{
  padding:18px;
}

@media(max-width:959px){
  .content-page--home-style[data-page-path="/izgotovlenie-tablichek"] .modern-page-content{
    padding:14px;
  }
  .content-page--home-style[data-page-path="/izgotovlenie-tablichek"] .modern-page-content > div > .content-section:first-of-type,
  .content-page--home-style[data-page-path="/izgotovlenie-tablichek"] .modern-page-content > .content-section:first-of-type{
    padding:20px 17px!important;
  }
  .content-page--home-style[data-page-path="/izgotovlenie-tablichek"] .content-section:first-of-type h1{
    font-size:clamp(31px,8vw,40px);
  }
}


/* v2.18.4 — clean delivery / promotions pages */
.special-page{display:grid;gap:16px}
.special-hero,.special-section,.special-cta{
  border:1px solid var(--line,#e1e6ed);border-radius:18px;background:#fff;
  box-shadow:0 8px 28px rgba(15,23,42,.045)
}
.special-hero{padding:28px 30px;background:linear-gradient(135deg,#fff 0%,#f6f8fb 100%)}
.special-kicker{display:inline-flex;margin-bottom:8px;color:#1769a6;font-size:11px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.special-hero h1{margin:0 0 10px;font-size:clamp(30px,4vw,44px);line-height:1.05;letter-spacing:-.025em}
.special-hero p{max-width:820px;margin:0;color:#5f6b7a;font-size:15px;line-height:1.6}
.special-facts{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.special-facts span{padding:7px 10px;border:1px solid #dfe6ee;border-radius:14px;background:#fff;color:#435167;font-size:11px;font-weight:700}
.special-section{padding:22px}
.special-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:15px}
.special-section-head>div{display:flex;align-items:center;gap:10px}
.special-section-head h2{margin:0;font-size:21px;line-height:1.15}
.special-section-head>p{max-width:470px;margin:0;color:#748094;font-size:12px;text-align:right}
.special-step{display:grid;place-items:center;min-width:31px;height:31px;padding:0 8px;border-radius:14px;background:#34445e;color:#fff;font-size:10px;font-weight:850}
.special-grid{display:grid;gap:12px}
.special-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.special-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.special-card{padding:20px;border:1px solid #e2e7ee;border-radius:14px;background:#fff}
.special-card-accent{border-color:#b8cad9;background:#f9fbfd}
.special-card-icon{display:grid;place-items:center;width:34px;height:34px;margin-bottom:10px;border-radius:10px;background:#eef3f7;color:#34445e;font-size:17px;font-weight:800}
.special-card h2,.special-card h3{margin:0 0 9px;color:#111c30}
.special-card h3{font-size:18px}.special-price{margin:0 0 10px!important;font-size:24px!important;font-weight:850;color:#111c30!important}
.special-list{margin:12px 0 16px;padding:0;list-style:none;display:grid;gap:8px}
.special-list li{position:relative;padding-left:20px;color:#536174;font-size:12px;line-height:1.5}
.special-list li:before{content:"✓";position:absolute;left:0;top:0;color:#188450;font-weight:900}
.special-card-meta{margin:12px 0;color:#778397;font-size:11px}
.special-actions{display:flex;flex-wrap:wrap;gap:8px}
.special-mini-card{display:flex;flex-direction:column;gap:4px;padding:16px;border:1px solid #e2e7ee;border-radius:13px;background:#fafbfd}
.special-mini-card strong{font-size:14px}.special-mini-card span{min-height:30px;color:#778397;font-size:11px}.special-mini-card b{font-size:13px;color:#34445e}
.special-note{margin-top:13px;padding:12px 14px;border:1px solid #e1e7ee;border-radius:11px;background:#f7f9fb;color:#536174;font-size:11.5px;line-height:1.5}
.special-chips{display:flex;flex-wrap:wrap;gap:7px}
.special-chips span{padding:7px 9px;border:1px solid #dfe5ec;border-radius:9px;background:#fff;color:#536174;font-size:10.5px}
.special-chips-muted{margin-top:9px}.special-chips-muted span{background:#f7f9fb}
.special-cta{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 22px}
.special-cta h2{margin:0 0 3px;font-size:18px}.special-cta p{margin:0;color:#748094;font-size:11px}

/* Акции */
.promo-main-grid{align-items:stretch}
.promo-offer{display:flex;flex-direction:column}
.promo-offer-gift{background:linear-gradient(180deg,#fffaf2,#fff)}
.promo-offer-med{background:linear-gradient(180deg,#f4fbf7,#fff)}
.promo-offer-top{display:flex;align-items:center;gap:8px;margin-bottom:11px;color:#748094;font-size:10.5px;font-weight:700}
.promo-offer-badge{display:inline-flex;padding:5px 8px;border-radius:14px;background:#34445e;color:#fff;font-size:10px;font-weight:850;letter-spacing:.03em}
.promo-offer-med .promo-offer-badge{background:#188450}
.promo-offer h2{font-size:23px;line-height:1.08}
.promo-offer>p{color:#5d6979;line-height:1.55}
.promo-price-table{display:grid;margin:12px 0;border:1px solid #e1e7ee;border-radius:11px;overflow:hidden}
.promo-price-table>div{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;padding:10px 12px}
.promo-price-table>div+div{border-top:1px solid #edf0f4}
.promo-price-table span{font-size:11.5px}.promo-price-table del{color:#9aa4b2;font-size:10.5px}.promo-price-table strong{min-width:62px;text-align:right;color:#14783f}
.special-full-button{width:100%;margin-top:auto}
.promo-review-card{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(220px,.7fr);gap:18px;align-items:stretch}
.promo-review-copy{padding:3px}.promo-review-copy h2{font-size:24px}
.promo-steps{display:grid;gap:8px;margin:13px 0 17px;padding-left:20px;color:#536174;font-size:12px;line-height:1.45}
.promo-rating-box{display:flex;flex-direction:column;justify-content:center;padding:20px;border:1px solid #e0e6ed;border-radius:13px;background:#fafbfd;text-align:center}
.promo-rating-box>span{color:#778397;font-size:10px}.promo-rating-box>strong{margin:3px 0;font-size:42px;line-height:1}.promo-stars{color:#f2a20c;font-size:17px;letter-spacing:2px}
.promo-rating-box small{margin:5px 0 13px;color:#778397;font-size:10px}.promo-rating-box a{font-size:11px;font-weight:750}
.promo-seo-card{background:#fafbfd}.promo-info-block h3{margin:0 0 6px;font-size:14px}.promo-info-block p{margin:0;color:#667386;font-size:11.5px;line-height:1.55}

@media(max-width:760px){
  .special-hero{padding:20px}.special-section{padding:16px}.special-section-head{align-items:flex-start;flex-direction:column;gap:6px}.special-section-head>p{text-align:left}
  .special-grid-2,.special-grid-3,.promo-review-card{grid-template-columns:1fr}
  .special-cta{align-items:stretch;flex-direction:column}.special-cta .special-actions,.special-cta .site-button{width:100%}
  .special-cta .site-button{justify-content:center}
  .promo-rating-box{min-height:180px}
}


/* v2.18.5 — restore internal delivery links */
.special-chips-title{margin:0 0 9px;color:#526075;font-size:12px}
.special-chips-title-spaced{margin-top:15px}
.special-chips a{
  display:inline-flex;align-items:center;padding:7px 9px;
  border:1px solid #dfe5ec;border-radius:9px;background:#fff;
  color:#31546f;font-size:10.5px;font-weight:700;text-decoration:none;
  transition:border-color .16s ease,background .16s ease,transform .16s ease;
}
.special-chips a:hover{
  border-color:#a9c7dd;background:#f4f8fb;color:#1769a6;transform:translateY(-1px)
}
.special-chips-muted a{background:#f7f9fb}

/* v2.18.8 — no-pill UI system */
.promo-offer-badge,.special-step{
  min-width:auto!important;
  height:auto!important;
  padding:4px 7px!important;
  border-radius:5px!important;
  line-height:1.15!important;
}
.special-facts span,.special-chips span,.special-chips a{
  border-radius:7px!important;
}
.content-page--home-style [class*="badge"],
.content-page--home-style [class*="chip"],
.content-page--home-style [class*="pill"]{
  border-radius:6px!important;
}


/* 2.19.10 — migrated landing-page submit buttons */
.content-page--home-style button.site-button.site-button-primary,
.content-page--home-style button.site-button[style*="--hm-accent"]{
  width:100%;
  min-height:52px;
  background:#3e4b61 !important;
  border:1px solid #3e4b61 !important;
  color:#fff !important;
  font-weight:750 !important;
  font-size:15px;
  line-height:1.2;
  box-shadow:0 5px 14px rgba(15,23,42,.13);
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .08s ease,opacity .16s ease;
}
.content-page--home-style button.site-button.site-button-primary:hover,
.content-page--home-style button.site-button[style*="--hm-accent"]:hover{
  background:#2f3a4d !important;
  border-color:#2f3a4d !important;
  box-shadow:0 7px 18px rgba(15,23,42,.18);
}
.content-page--home-style button.site-button.site-button-primary:active,
.content-page--home-style button.site-button[style*="--hm-accent"]:active{
  transform:translateY(1px);
  box-shadow:0 3px 9px rgba(15,23,42,.14);
}
.content-page--home-style button.site-button.site-button-primary:focus-visible,
.content-page--home-style button.site-button[style*="--hm-accent"]:focus-visible{
  outline:3px solid rgba(49,93,136,.24);
  outline-offset:2px;
}
.content-page--home-style button.site-button.site-button-primary:disabled,
.content-page--home-style button.site-button[style*="--hm-accent"]:disabled{
  background:#69778c !important;
  border-color:#69778c !important;
  color:#fff !important;
  opacity:.72;
}
