/* ===== IMPROVED WOLFIX SERVICE STYLES ===== */

/* CSS Variables */
:root {
  --primary-color: #1e90ff;
  --primary-dark: #005daa;
  --secondary-color: #ff6600;
  --accent-color: #00d4aa;
  --text-dark: #1a1a1a;
  --text-light: #666;
  --text-white: #ffffff;
  --bg-light: #ffffff;
  --bg-white: #ffffff;
  --bg-dark: #23232b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  text-align: center;
}

.spinner-ring {
  width: 60px;
  height: 60px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.spinner-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ===== HEADER ===== */
header {
  background: #23232b;
  color: #fff;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

/* Top strip under header */
.top-strip {
  position: sticky;
  top: var(--header-h, 64px);
  z-index: 90;
  background: linear-gradient(90deg, #1e90ff, #007bff);
  color: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
body .top-strip .container {
  padding: 6px 24px !important;
  text-align: center;
}

/* ULTIMATE OVERRIDE - максимально специфичные стили */
html body .top-strip .container {
  padding: 6px 24px !important;
  text-align: center !important;
}
html body .top-strip .container {
  padding: 6px 24px !important;
  text-align: center !important;
}
.top-strip-text {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
  max-width: 100%;
}
.top-strip-text--full {
  display: inline-block;
}
.top-strip-text--short {
  display: none;
}
.top-strip.hidden {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 480px) {
  .top-strip {
    top: var(--header-h, 64px);
  }
  .top-strip .container {
    padding: 6px 12px !important;
  }
  .top-strip-text {
    font-size: 0.84rem;
  }
  .top-strip-text--full {
    display: none;
  }
  .top-strip-text--short {
    display: inline-block;
  }
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding-left: 20px;
  padding-right: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-logo-small {
  height: 120px;
  width: auto;
  filter: brightness(0) invert(1);
}

.header-slogan {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

/* Navigation */
.header-nav {
  display: flex;
  gap: 24px;
  margin-right: 24px;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  color: #ff6600;
}

/* Buttons */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Кнопка BOOK ONLINE — оранжевая */
.btn-book {
  background: linear-gradient(90deg, #ff6600, #ff9900);
  color: white;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  border: none;
  border-radius: 18px;
  padding: 6px 12px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-book:hover {
  background: linear-gradient(90deg, #ff9900, #ff6600);
}

/* Кнопка CALL — синяя */
.btn-call {
  background: linear-gradient(90deg, #1e90ff, #007bff);
  color: white;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  border: none;
  border-radius: 18px;
  padding: 6px 12px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-call:hover {
  background: linear-gradient(90deg, #007bff, #1e90ff);
}

/* Хедер-кнопки: привести к общей жирности как у остального UI */
.header-right .btn-book,
.header-right .btn-call {
  font-family: "Montserrat", system-ui, -apple-system, Arial, sans-serif;
  font-weight: 900;
  /* такой же, как у остального жирного текста */
  letter-spacing: 0.4px;
  /* как на остальных кнопках (по желанию) */
  text-transform: uppercase;
  /* на всякий случай — как везде */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* если где-то раньше стоит более "лёгкий" вес — перебьём его */
.header-right .btn-book *,
.header-right .btn-call * {
  font-weight: inherit !important;
}

/* ===== HERO BRANDS SECTION ===== */
.hero-brands {
  position: relative;
  overflow: hidden;
  background: none !important;
  padding: 96px 0 36px;
  text-align: center;
}

/* Blurred kitchen background layer */
.hero-brands::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/kitchen-blur-bg.jpg") center/cover no-repeat;
  filter: blur(8px) saturate(1.05);
  transform: scale(1.06);
  z-index: 0;
}

/* Dark + subtle brand-tint overlay (matches original) */
.hero-brands::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
        /* smooth fade to white at the bottom */ linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 68%,
      #ffffff 100%
    ),
    radial-gradient(
      1100px 520px at 20% 10%,
      rgba(30, 144, 255, 0.1),
      transparent 65%
    ),
    radial-gradient(
      1000px 480px at 80% 90%,
      rgba(255, 102, 0, 0.08),
      transparent 65%
    ),
    rgba(0, 0, 0, 0.24);
  z-index: 1;
  pointer-events: none;
}

.hero-brands > .container {
  position: relative;
  z-index: 2;
}

.hero-title-bg {
  margin-bottom: 48px;
  display: inline-block;
  padding: 10px 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 2px solid #1e90ff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18),
    inset 0 2px 0 rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero-title {
  font-size: clamp(2.05rem, 4.8vw, 3.1rem);
  font-weight: 800; /* balanced bold */
  color: #1e90ff;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  line-height: 1.1;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hero-subtitle {
  display: block;
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  opacity: 0.9;
}

/* Title variants */
.hero-title-bg.is-darkglass {
  background: rgba(10, 12, 16, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero-title.is-on-dark {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28), 0 1px 0 rgba(0, 0, 0, 0.18);
  /* remove stroke to avoid artifacts inside letters */
  -webkit-text-stroke: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hero-grid-big {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.brand-block-big {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 20px 12px;
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100px;
}

.brand-block-big::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(30, 144, 255, 0.1),
    transparent
  );
  transition: var(--transition);
}

.brand-block-big:hover::before {
  left: 100%;
}

.brand-block-big:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.brand-logo-big {
  margin-bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  flex: 1;
}

.brand-logo-large {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.brand-logo-large[src*=".svg"] {
  width: auto;
  height: 50px;
}

/* Специальные стили для Thermador SVG логотипа */
.brand-logo-large[src*="Thermador_Logo_main.svg"] {
  width: auto;
  height: 50px;
  max-width: 200px;
  object-fit: contain;
  object-position: center;
}

.brand-block-big:hover .brand-logo-large {
  transform: scale(1.1);
}

.brand-info-big {
  margin-bottom: 24px;
}

.brand-name-big {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.brand-description-big {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.5;
}

.brand-arrow-big {
  color: var(--primary-color);
  transition: var(--transition);
  position: absolute;
  bottom: 4px;
  right: 12px;
  opacity: 0.6;
  width: 20px;
  height: 20px;
}

.brand-block-big:hover .brand-arrow-big {
  transform: translateX(4px) translateY(-4px);
  opacity: 1;
}

/* License Section */
.license-minimal {
  margin-bottom: 48px;
}

/* New compact license line */
.license-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.license-item {
  font-family: var(--font-primary);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #ffffff;
  font-size: 1.05rem;
  text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.license-item + .license-item {
  position: relative;
}
.license-item + .license-item::before {
  content: none;
}

.license-item:not(:last-child)::after {
  content: "\2022";
  display: inline-block;
  width: 1.2em;
  text-align: center;
  margin: 0 12px;
  color: rgba(255, 255, 255, 0.6);
}

.license-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  max-width: 280px;
}

.license-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.badge-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.badge-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.badge-title {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dark);
  line-height: 1;
}

.badge-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-light);
  line-height: 1;
}

/* CTA Button */
.hero-cta {
  text-align: center;
  margin-top: 54px;
}

/* Floating CTA (mobile) */
.floating-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 999;
  text-align: center;
  display: none;
  justify-content: center;
}

@media (max-width: 480px) {
  .floating-cta {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 22px;
    font-size: 1.02rem;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  }
  .floating-cta.hidden {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
  }
}

/* Make the hero CTA button larger while keeping header style */
.hero-cta .btn-book {
  font-size: 1.2rem;
  padding: 14px 28px;
  border-radius: 24px;
}

/* ===== FEATURES SECTION ===== */
.features-section-modern {
  padding: 8px 0 20px;
  background: #ffffff;
}

.section-title-modern {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.features-grid-modern {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1024px) {
  .features-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .features-grid-modern {
    grid-template-columns: 1fr;
  }
}

/* === NEW Why-cards === */
.why-card {
  position: relative;
  background: #fff;
  border: none;
  border-radius: 14px;
  padding: 18px 18px 16px;
  text-align: left;
  box-shadow: 0 6px 16px rgba(20, 32, 50, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.why-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  background: linear-gradient(90deg, #1e90ff, #ff6600);
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(20, 32, 50, 0.12);
}

.why-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.why-icon {
  width: 56px;
  height: 56px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e90ff 0%, #007bff 60%);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 8px 18px rgba(30, 144, 255, 0.22);
}
.why-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}
.why-title {
  font-weight: 800;
  font-size: 1.02rem;
  color: #142032;
  line-height: 1.2;
}
.why-text {
  color: #516070;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-left: 66px;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.feature-description {
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-section-modern {
  padding: 48px 0 56px;
  background: var(--bg-white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 1200px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .portfolio-grid {
    display: none !important;
  }
}

.portfolio-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid #e9eef5;
  box-shadow: 0 8px 22px rgba(20, 32, 50, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.78) 100%
  );
  color: var(--text-white);
  padding: 18px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover img {
  transform: scale(1.06);
}

.portfolio-category {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

/* Overlay content layout */
.overlay-content {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
}
.portfolio-zoom-icon {
  width: 22px;
  height: 22px;
  opacity: 0.9;
  flex-shrink: 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.lightbox.is-open {
  display: flex;
}
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.lightbox__backdrop {
  position: absolute;
  inset: 0;
}
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 28px;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
}

.portfolio-cta {
  text-align: center;
  margin-top: 18px;
}

/* mobile vertical swiper visible only on small screens */
.portfolio-swiper {
  display: none;
  height: 0;
  overflow: hidden;
}
@media (max-width: 768px) {
  .portfolio-swiper {
    display: block;
    height: 70vh;
    overflow: visible;
  }
  .portfolio-swiper .swiper-slide {
    display: flex;
    align-items: stretch;
  }
}
@media (min-width: 769px) {
  .portfolio-swiper {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}

/* ===== REVIEWS SECTION ===== */
.reviews-section-modern {
  padding: 80px 0;
  background: var(--bg-white);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.review-card-modern {
  background: var(--bg-white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.review-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.review-stars {
  color: #ffd700;
  font-size: 1.2rem;
}

.review-brand {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.review-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.review-author {
  font-style: italic;
  color: var(--text-light);
  font-weight: 600;
}

/* ===== FAQ SECTION ===== */
.faq-section-modern {
  padding: 80px 0;
  background: var(--bg-white);
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--bg-white);
}

.faq-arrow {
  width: 20px;
  height: 20px;
  transition: var(--transition);
  color: var(--primary-color);
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 24px 24px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== SEO SECTION ===== */
.wf-seo {
  padding: 80px 0;
  background: var(--bg-white);
}

.wf-seo__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  color: var(--text-dark);
  line-height: 1.3;
}

.wf-seo__body {
  max-width: 900px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.wf-seo__body[data-collapsed="true"] {
  max-height: 200px;
  overflow: hidden;
  position: relative;
}

.wf-seo__body[data-collapsed="true"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, var(--bg-white));
}

.wf-seo__body h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 24px 0 16px;
  color: var(--text-dark);
}

.wf-seo__body ul {
  margin: 16px 0;
  padding-left: 24px;
}

.wf-seo__body li {
  margin-bottom: 8px;
}

.wf-seo__toggle {
  background: var(--primary-color);
  color: var(--text-white);
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: block;
  margin: 0 auto;
}

.wf-seo__toggle:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--bg-white);
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-dark);
}

.modal-body {
  padding: 32px;
}

/* Form Styles */
.request-form-modern {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1);
}

.required {
  color: #ef4444;
}

.consent-group {
  margin-top: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 4px;
}

.consent-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.consent-text span {
  font-size: 0.9rem !important;
  color: #666 !important;
}

.label {
  margin-top: 0.9rem;
  font-weight: 600;
  color: #222;
  text-align: left;
}

.consent-text span {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===== FOOTER ===== */
.footer-modern {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 60px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-white);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 12px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--text-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-grid-big {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .features-grid-modern {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .license-badges {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .license-badge {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-brands {
    padding: 100px 0 20px; /* bring Why Choose closer on iPhone */
    background-attachment: scroll;
  }
  /* Remove white fade stripe on iPhone by overriding the after background */
  .hero-brands::after {
    /* bring back a subtle short fade to white so transition is smooth, not a stripe */
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 86%,
        #ffffff 100%
      ),
      radial-gradient(
        1100px 520px at 20% 10%,
        rgba(30, 144, 255, 0.1),
        transparent 65%
      ),
      radial-gradient(
        1000px 480px at 80% 90%,
        rgba(255, 102, 0, 0.08),
        transparent 65%
      ),
      rgba(0, 0, 0, 0.24);
  }

  /* Keep hero title on a single line on iPhones */
  .hero-title-bg {
    padding: 6px 14px;
    border-radius: 18px;
  }
  .hero-title,
  .hero-title.is-on-dark {
    white-space: nowrap;
    font-size: 1.6rem;
    letter-spacing: 0.03em;
    line-height: 1.1;
  }
  .hero-subtitle {
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .hero-grid-big {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .brand-block-big {
    padding: 12px 8px 20px;
    min-height: 92px;
  }

  .brand-logo-big {
    min-height: 56px;
  }

  .brand-logo-large {
    max-width: 100%;
    height: auto;
    max-height: 42px;
    object-fit: contain;
  }
  .brand-logo-large[src*=".svg"] {
    height: 42px;
    width: auto;
  }

  /* Специальные стили для Thermador SVG на мобильных */
  .brand-logo-large[src*="Thermador_Logo_main.svg"] {
    height: 42px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    object-position: center;
  }

  /* show arrow smaller and tucked into corner */
  .brand-arrow-big {
    display: block;
    position: absolute;
    right: 8px;
    bottom: 8px;
    opacity: 0.7;
  }
  .brand-arrow-big svg {
    width: 16px;
    height: 16px;
  }

  .features-section-modern {
    padding-top: 8px;
  }
  .feature-card {
    padding: 24px 18px;
  }

  /* Compact Why Choose on iPhones: 2x2 icons with titles only */
  .features-grid-modern {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .why-card {
    padding: 14px 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(20, 32, 50, 0.05);
  }
  .why-card::before {
    content: none;
  }
  .why-head {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
  }
  .why-icon {
    width: 48px;
    height: 48px;
  }
  .why-title {
    font-size: 0.95rem;
  }
  .why-text {
    display: none;
  }

  .modal-container {
    margin: 16px;
    max-height: calc(100vh - 32px);
  }

  .modal-header,
  .modal-body {
    padding: 24px;
  }

  /* License line: keep in one row on iPhones */
  .license-line {
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 0;
  }
  .license-item {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
  }
  .license-item:not(:last-child)::after {
    width: 0.9em;
    margin: 0 8px;
  }
}

/* iPhone header adjustments: keep CALL visible */
@media (max-width: 480px) {
  .header-flex {
    height: 64px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .header-left {
    gap: 10px;
  }
  .header-logo-small {
    height: 120px;
    width: auto;
  }
  .header-slogan {
    display: none;
  }
  .header-nav {
    display: none !important;
  }
  .header-right {
    gap: 6px;
  }
  .header-right .btn-call {
    font-size: 0.9rem;
    padding: 6px 10px;
    border-radius: 18px;
    white-space: nowrap;
  }
  .header-right .btn-book {
    display: none;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* AOS Animation Classes */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}

[data-aos].aos-animate {
  opacity: 1;
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
}

[data-aos="fade-left"] {
  transform: translateX(-30px);
}

[data-aos="fade-left"].aos-animate {
  transform: translateX(0);
}

[data-aos="fade-right"] {
  transform: translateX(30px);
}

[data-aos="fade-right"].aos-animate {
  transform: translateX(0);
}

[data-aos="zoom-in"] {
  transform: scale(0.8);
}

[data-aos="zoom-in"].aos-animate {
  transform: scale(1);
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 1rem;
}
.mb-4 {
  margin-bottom: 1.5rem;
}
.mb-5 {
  margin-bottom: 3rem;
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 1rem;
}
.mt-4 {
  margin-top: 1.5rem;
}
.mt-5 {
  margin-top: 3rem;
}

.p-0 {
  padding: 0;
}
.p-1 {
  padding: 0.25rem;
}
.p-2 {
  padding: 0.5rem;
}
.p-3 {
  padding: 1rem;
}
.p-4 {
  padding: 1.5rem;
}
.p-5 {
  padding: 3rem;
}

.hidden {
  display: none;
}
.visible {
  display: block;
}

/* ===== PRINT STYLES ===== */
@media print {
  .header-modern,
  .mobile-nav,
  .modal-overlay,
  .loading-screen {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .hero-brands {
    background: white !important;
    color: black !important;
  }
}

/* ===== ULTIMATE TOP-STRIP OVERRIDE ===== */
/* Максимально специфичные стили для top-strip */
html body .top-strip .container,
html body .top-strip .container,
html body .top-strip .container {
  padding: 1px 24px !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 20px !important;
}

/* Красивые стили для текста в top-strip */
html body .top-strip .top-strip-text {
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
  font-size: 0.9rem !important;
}

@media (max-width: 480px) {
  html body .top-strip .container,
  html body .top-strip .container,
  html body .top-strip .container {
    padding: 1px 12px !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 18px !important;
  }

  html body .top-strip .top-strip-text {
    font-size: 0.8rem !important;
  }
}

/* ===== Common Issues Section ===== */
.issues-section {
  padding: 80px 0;
  background: var(--bg-white);
}

.issues-header {
  text-align: center;
  margin-bottom: 48px;
}

.issues-header .section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.1;
}

.issues-header .issues-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 0;
  font-weight: 500;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

.issues-categories {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-bottom: 48px;
}

.issue-category {
  margin-bottom: 0;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  text-align: left;
}

.category-title svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--secondary-color);
}

.issues-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}

.issue-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: left;
}

.issue-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  border-color: var(--secondary-color);
}

.issue-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.issue-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.issue-card p {
  color: var(--text-light);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 600;
}

.issues-cta {
  text-align: center;
  margin-top: 48px;
  padding: 40px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.issues-cta p {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin: 0 0 24px 0;
  font-weight: 600;
  line-height: 1.4;
}

.issues-cta .btn-book {
  display: inline-block;
  background: linear-gradient(90deg, #ff6600, #ff9900);
  color: var(--text-white);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  border-radius: 25px;
  padding: 16px 32px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.issues-cta .btn-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 102, 0, 0.4);
}

/* Responsive design for issues section */
@media (max-width: 768px) {
  .issues-categories {
    gap: 32px;
  }

  .issues-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .issues-cta {
    padding: 32px 20px;
  }

  .issues-cta p {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .issues-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .issue-card {
    padding: 16px;
  }
}

/* ===== DIAGNOSTIC MODAL ===== */
#diagnostic-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.6) !important;
  display: none;
  z-index: 2000 !important;
}

#diagnostic-modal .modal-content {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
  max-width: 500px !important;
  width: 90% !important;
  padding: 40px !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

#diagnostic-modal .modal-header h3 {
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  margin: 0 0 20px 0 !important;
  font-family: "Montserrat", sans-serif !important;
}

#diagnostic-modal .modal-body p {
  font-size: 1.3rem !important;
  color: #666 !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  font-family: "Montserrat", sans-serif !important;
}

#diagnostic-modal .modal-close {
  position: absolute !important;
  top: 15px !important;
  right: 20px !important;
  background: none !important;
  border: none !important;
  font-size: 24px !important;
  cursor: pointer !important;
  color: #999 !important;
  padding: 0 !important;
  width: 30px !important;
  height: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
}

#diagnostic-modal .modal-close:hover {
  background: #f5f5f5 !important;
  color: #666 !important;
}

#diagnostic-modal .modal-header {
  padding: 0 !important;
  border: none !important;
}

#diagnostic-modal .modal-body {
  padding: 0 !important;
}

/* Diagnostic modal button styling */
#diagnostic-modal .btn-book {
  display: inline-block !important;
  background: linear-gradient(90deg, #ff6600, #ff9900) !important;
  color: white !important;
  font-family: "Montserrat", sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  border: none !important;
  border-radius: 25px !important;
  padding: 10px 20px !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 6px 20px rgba(255, 102, 0, 0.3) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

#diagnostic-modal .btn-book:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(255, 102, 0, 0.4) !important;
}

/* Responsive adjustments for compact look */
@media (max-width: 600px) {
  #diagnostic-modal .modal-content {
    padding: 30px 20px !important;
    margin: 20px !important;
    width: calc(100% - 40px) !important;
  }

  #diagnostic-modal .modal-header h3 {
    font-size: 1.5rem !important;
  }
  #diagnostic-modal .modal-body p {
    font-size: 1rem !important;
  }
}

/* NEW LINE */
.modal-overlay .modal-container .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.modal-overlay .modal-container .checkbox-label input[type="checkbox"] {
  margin-top: 4px;
}

.modal-overlay .modal-container .consent-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-overlay .modal-container .consent-text span {
  font-size: 0.9rem;
  color: #666;
}

.consent-group {
  margin: 24px 0;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
