/*
Theme Name: Термосервис
Theme URI: https://remontkotla72.ru
Author: Termoservis72
Description: Nordic Minimal — кастомная тема для сайта ремонта газовых котлов. Белый фон, teal акцент.
Version: 1.0
Text Domain: termoservis72
*/

body {
  font-family: 'Source Sans 3', sans-serif;
  line-height: 1.7;
  background-color: #fff;
  color: #2D2D2D;
  font-size: 16px;
}
section[id] { scroll-margin-top: 88px; }
.font-heading { font-family: 'Montserrat', sans-serif; }
.material-symbols-outlined { font-size: 28px; vertical-align: middle; }

.hero-gradient {
  background: linear-gradient(135deg, #F8F7F5 0%, #FFFFFF 50%, #F0FAFA 100%);
}
.ts-hero-shot {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(13,148,136,0.14);
  background: #F8F7F5;
}
.ts-hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}
.ts-hero-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.94);
  color: #0A7A70;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}
.teal-gradient {
  background: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
}
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.ts-case-card {
  border: 1px solid #E8E4DC;
  box-shadow: 0 8px 26px rgba(45,45,45,0.06);
}
.ts-case-card .ts-blog-image {
  aspect-ratio: 4 / 3;
}
.ts-case-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 18px;
  color: #0A7A70;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
}
.brand-pill {
  transition: all 0.2s ease;
}
.brand-pill:hover {
  background: #0D9488;
  border-color: #0D9488;
}
.ts-proof {
  border-top: 1px solid #ECE9E3;
  border-bottom: 1px solid #ECE9E3;
  background: linear-gradient(180deg, #fff 0%, #FBFAF7 100%);
}
.ts-proof-inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.45fr);
  gap: 34px;
  align-items: center;
}
.ts-proof-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #0D9488;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ts-proof-kicker::before {
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: #0D9488;
  opacity: 0.45;
}
.ts-proof-title {
  font-family: 'Montserrat', sans-serif;
  color: #2D2D2D;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0;
}
.ts-proof-text {
  margin-top: 10px;
  color: #5A5A5A;
  font-size: 16px;
  line-height: 1.55;
}
.ts-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ts-proof-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 16px;
  border: 1px solid #E8E4DC;
  border-radius: 8px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 8px 24px rgba(45,45,45,0.04);
}
.ts-proof-icon {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(13,148,136,0.09);
  color: #0D9488;
}
.ts-proof-icon .material-symbols-outlined { font-size: 22px; }
.ts-proof-item strong {
  display: block;
  color: #0D9488;
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}
.ts-proof-item span:last-child {
  display: block;
  margin-top: 4px;
  color: #5A5A5A;
  font-size: 14px;
  line-height: 1.25;
}
.ts-aftercare {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8F7F5 100%);
}
.ts-aftercare-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.28fr);
  gap: 42px;
  align-items: start;
}
.ts-aftercare-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #0D9488;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.ts-aftercare-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: #0D9488;
  opacity: 0.45;
}
.ts-aftercare-title {
  max-width: 560px;
  color: #2D2D2D;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.ts-aftercare-text {
  max-width: 560px;
  margin-top: 18px;
  color: #5A5A5A;
  font-size: 18px;
  line-height: 1.65;
}
.ts-aftercare-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.ts-aftercare-primary,
.ts-aftercare-secondary,
.ts-aftercare-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.ts-aftercare-primary {
  padding: 13px 24px;
  color: #fff;
  background: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
}
.ts-aftercare-secondary {
  padding: 12px 22px;
  color: #0A7A70;
  border: 1px solid rgba(13,148,136,0.35);
  background: #fff;
}
.ts-aftercare-primary:hover,
.ts-aftercare-secondary:hover,
.ts-aftercare-mini:hover {
  transform: translateY(-2px);
}
.ts-aftercare-note {
  margin-top: 16px;
  color: #7A7A7A;
  font-size: 14px;
  line-height: 1.45;
}
.ts-aftercare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.ts-aftercare-card {
  min-height: 182px;
  padding: 22px;
  border: 1px solid #E8E4DC;
  border-radius: 18px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 10px 28px rgba(45,45,45,0.05);
}
.ts-aftercare-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 12px;
  color: #0D9488;
  background: rgba(13,148,136,0.09);
}
.ts-aftercare-icon .material-symbols-outlined { font-size: 23px; }
.ts-aftercare-card h3,
.ts-aftercare-subscription h3 {
  color: #2D2D2D;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}
.ts-aftercare-card p {
  margin-top: 10px;
  color: #5A5A5A;
  font-size: 15px;
  line-height: 1.45;
}
.ts-aftercare-subscription {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0A7A70 0%, #0D9488 100%);
  box-shadow: 0 16px 36px rgba(13,148,136,0.18);
}
.ts-aftercare-subscription span {
  display: inline-flex;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.78);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ts-aftercare-subscription h3,
.ts-aftercare-subscription p {
  color: #fff;
}
.ts-aftercare-subscription p {
  margin-top: 8px;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.9;
}
.ts-aftercare-mini {
  min-width: 172px;
  padding: 12px 18px;
  color: #0A7A70;
  background: #fff;
}
.ts-brand-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.ts-brand-card {
  display: flex;
  flex: 1 1 260px;
  max-width: 300px;
  min-height: 128px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  border: 1px solid #E8E4DC;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,247,245,.86)),
    #fff;
  box-shadow: 0 8px 24px rgba(45,45,45,0.04);
  text-align: center;
  color: inherit;
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.ts-brand-card:hover {
  transform: translateY(-3px);
  border-color: rgba(13,148,136,0.28);
  box-shadow: 0 14px 30px rgba(13,148,136,0.10);
}
.ts-brand-card img {
  display: block;
  width: 100%;
  max-width: 168px;
  height: 58px;
  object-fit: contain;
  filter: saturate(.9) contrast(.97);
}
.ts-brand-card span {
  color: #5A5A5A;
  font-size: 14px;
  line-height: 1.25;
}
.ts-brand-more {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 960px;
  margin: 26px auto 0;
}
.ts-brand-more a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid #D7EDEA;
  border-radius: 999px;
  background: #F5FBFA;
  color: #0A7A70;
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.ts-brand-more a:hover {
  border-color: #0D9488;
  background: #0D9488;
  color: #fff;
}
.ts-brand-note {
  max-width: 820px;
  margin: 24px auto 0;
  color: #7A7A7A;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}
.nav-scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.ts-wp-nav-inner {
  width: 100%;
  max-width: 96rem !important;
  gap: clamp(12px, 1.25vw, 22px);
}
.ts-wp-logo {
  flex-shrink: 0;
  font-size: clamp(20px, 1.25vw, 22px) !important;
}
.ts-wp-nav-links {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  gap: clamp(10px, 1.05vw, 18px) !important;
}
.ts-wp-nav-links a {
  font-size: clamp(11px, .72vw, 12px) !important;
  letter-spacing: .045em !important;
}
.ts-wp-actions {
  gap: clamp(8px, .9vw, 14px) !important;
}
.ts-wp-calc {
  padding-left: 14px !important;
  padding-right: 14px !important;
  letter-spacing: .045em !important;
}
.ts-wp-phone {
  font-size: 14px !important;
}
.ts-wp-cta {
  padding-left: 18px !important;
  padding-right: 18px !important;
  letter-spacing: .045em !important;
}
@media (max-width: 1499px) {
  .ts-wp-phone {
    display: none !important;
  }
}
@media (min-width: 1280px) and (max-width: 1379px) {
  .ts-wp-calc {
    display: none !important;
  }
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #0D9488;
  box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}

/* Pagination */
.pagination .page-numbers {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  min-width: 48px !important; height: 48px !important; padding: 0 20px !important;
  border-radius: 9999px !important; font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important; font-size: 16px !important; transition: all 0.2s !important;
  border: 2px solid rgba(13,148,136,0.4) !important; color: #0D9488 !important;
  background: white !important; text-decoration: none !important;
}
.pagination .page-numbers:hover {
  border-color: #0D9488 !important; color: #0D9488 !important;
  background: rgba(13,148,136,0.05) !important;
}
.pagination .page-numbers.current {
  background: linear-gradient(135deg, #0D9488, #14B8A6) !important;
  color: white !important; border-color: transparent !important;
}
.pagination .page-numbers.dots {
  border-color: transparent !important; color: #5A5A5A !important;
  background: transparent !important; min-width: auto !important; padding: 0 8px !important;
}
.pagination .page-numbers.dots:hover {
  background: transparent !important; color: #5A5A5A !important;
}

/* Blog cards */
.blog-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 34px rgba(13,148,136,0.12);
}
.ts-blog-image {
  position: relative;
  background: #F8F7F5;
}
.ts-blog-image img {
  transition: transform 0.45s ease;
}
.blog-card:hover .ts-blog-image img {
  transform: scale(1.04);
}
.ts-photo-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.92);
  color: #0A7A70;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Entry content (single post) */
.entry-content h2 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 28px; margin: 2em 0 0.8em; color: #2D2D2D; }
.entry-content h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 22px; margin: 1.5em 0 0.6em; color: #2D2D2D; }
.entry-content p { margin-bottom: 1.2em; font-size: 18px; color: #5A5A5A; }
.entry-content ul, .entry-content ol { margin: 1em 0 1.5em 1.5em; color: #5A5A5A; }
.entry-content li { margin-bottom: 0.5em; font-size: 18px; }
.entry-content a { color: #0D9488; text-decoration: underline; }
.entry-content a:hover { color: #0A7A70; }
.entry-content img { border-radius: 12px; margin: 1.5em 0; }
.entry-content blockquote { border-left: 3px solid #0D9488; padding-left: 1em; margin: 1.5em 0; color: #5A5A5A; font-style: italic; }

/* Mobile menu */
.mobile-menu {
  position: fixed; top: 72px; left: 0; right: 0;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(12px);
  padding: 24px; z-index: 40;
  display: flex; flex-direction: column; gap: 16px;
  transform: translateY(-120%); transition: transform 0.3s ease;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: 15px; color: #2D2D2D; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 8px 0;
}

/* Burger */
.burger { width: 28px; height: 20px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; }
.burger span { display: block; height: 2px; background: #2D2D2D; border-radius: 1px; transition: 0.3s; }


/* Float CTA mobile */
.float-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
  color: #fff; text-align: center;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 15px; text-decoration: none;
}
@media (max-width: 768px) {
  .float-cta { display: block; }
}
@media (max-width: 1023px) {
  .ts-proof-inner { grid-template-columns: 1fr; }
  .ts-aftercare-inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  #navbar > div {
    padding-left: 16px !important;
    padding-right: 16px !important;
    gap: 12px !important;
  }
  #navbar > div > a {
    font-size: 20px !important;
    flex-shrink: 0;
  }
  #navbar > div > .flex.items-center.gap-4.flex-shrink-0 {
    display: none !important;
  }
  #navbar .burger {
    flex-shrink: 0;
  }
  .ts-proof-inner { gap: 22px; }
  .ts-proof-grid { grid-template-columns: 1fr; }
  .ts-proof-title { font-size: 22px; }
  .ts-aftercare-grid { grid-template-columns: 1fr; }
  .ts-aftercare-card { min-height: 0; }
  .ts-aftercare-subscription { grid-template-columns: 1fr; }
  .ts-aftercare-actions a,
  .ts-aftercare-mini { width: 100%; }
  .ts-brand-wall { gap: 10px; }
  .ts-brand-card { flex-basis: calc(50% - 5px); }
  .ts-brand-card { min-height: 116px; padding: 12px; }
  .ts-brand-card img { height: 48px; }
  .ts-brand-card span { font-size: 13px; }
  .ts-hero-proof { padding-right: 64px; }
}

/* Toast */
.toast-success {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: #0D9488; color: #fff; padding: 14px 28px;
  border-radius: 12px; font-family: 'Montserrat', sans-serif;
  font-weight: 600; font-size: 15px; z-index: 100;
  animation: fadeInUp 0.4s ease, fadeOut 0.4s 3s ease forwards;
}
@keyframes fadeInUp { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes fadeOut { to { opacity: 0; } }
