/* ===== FONTS ===== */
@font-face {
  font-family: 'Toqsan Mono';
  src: url('../assets/fonts/Toqsan_Mono.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ===== VARIABLES ===== */
:root {
  --red: #FF1C0F;
  --red-dark: #EA0803;
  --red-darker: #C90A05;
  --red-deep: #A90C06;
  --black: #000000;
  --dark: #0A0A0A;
  --dark-2: #111111;
  --gray-900: #1A1A1A;
  --gray-800: #333333;
  --gray-600: #666666;
  --gray-400: #999999;
  --gray-200: #CCCCCC;
  --white: #FFFFFF;

  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Toqsan Mono', monospace;

  --container: 1200px;
  --gap: 24px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  background: var(--dark);
  touch-action: manipulation;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--dark);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul { list-style: none; }

/* ===== CONTAINER ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}

.section--dark {
  background: var(--dark);
  color: var(--white);
}

.section__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  font-weight: 600;
}

.section__label--light {
  color: var(--red);
}

.section__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

.section__title--light {
  color: var(--white);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 28, 15, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.btn--large {
  padding: 18px 40px;
  font-size: 17px;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ===== MOBILE NAV OVERLAY ===== */
.mobile-nav {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(6px, 1.8vh, 14px);
    padding: clamp(48px, 9vh, 72px) 20px calc(16px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .mobile-nav.active {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav__link {
    font-size: clamp(15px, 4.5vw, 20px);
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    padding: 4px 0;
    line-height: 1.2;
  }

  .mobile-nav__link:hover {
    color: #FF1C0F;
  }

  .mobile-nav__link--hot {
    background: linear-gradient(135deg, #FF1C0F 0%, #ff4530 100%);
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(255,28,15,0.45);
    animation: hotPulse 1.6s ease-in-out infinite;
    position: relative;
  }

  .mobile-nav__link--highlight {
    background: linear-gradient(135deg, rgba(255,28,15,0.18), rgba(255,28,15,0.06));
    border: 1px solid rgba(255,28,15,0.55);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    letter-spacing: 0.3px;
  }

  .mobile-nav__link--highlight:hover {
    background: linear-gradient(135deg, var(--red), #ff4530);
  }

  .mobile-nav__link--hot:hover {
    color: #fff !important;
    transform: scale(1.04);
  }

  @keyframes hotPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(255,28,15,0.45); }
    50% { box-shadow: 0 4px 30px rgba(255,28,15,0.8), 0 0 0 8px rgba(255,28,15,0.12); }
  }

  .mobile-nav__close {
    position: fixed;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1051;
  }

  .mobile-nav__logo {
    width: 42px;
    height: auto;
    margin-bottom: 6px;
  }

  .mobile-nav__phone {
    margin-top: 8px;
    font-size: 16px;
    color: #FF1C0F;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
  }

  .mobile-nav__lang {
    display: flex;
    gap: 8px;
    margin-top: 4px;
  }

  .mobile-nav__lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-body);
    letter-spacing: 0.5px;
  }

  .mobile-nav__lang-btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
  }

  .mobile-nav__lang-btn.active {
    background: #FF1C0F;
    border-color: #FF1C0F;
    color: #fff;
  }
}

/* Landscape: compact nav for short screens */
@media (max-height: 500px) and (max-width: 1024px) {
  .mobile-nav {
    padding-top: 48px;
    gap: 6px;
  }
  .mobile-nav__logo { width: 28px; margin-bottom: 2px; }
  .mobile-nav__link { font-size: 15px; padding: 2px 0; }
  .mobile-nav__phone { margin-top: 4px; font-size: 14px; }
  .mobile-nav__lang { margin-top: 2px; }
  .mobile-nav__lang-btn { padding: 5px 12px; font-size: 12px; }
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header--scrolled {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 1400px;
}

.header__logo-img {
  height: 28px;
  width: auto;
}
.header__logo {
  flex-shrink: 0;
}

.header__nav {
  display: flex;
  gap: 14px;
  flex-shrink: 1;
  min-width: 0;
}

.header__link {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.01em;
  position: relative;
  white-space: nowrap;
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width var(--transition);
}

.header__link:hover {
  color: var(--white);
}

.header__link:hover::after {
  width: 100%;
}

.header__link--highlight {
  color: #fff;
  background: linear-gradient(135deg, rgba(255,28,15,0.18), rgba(255,28,15,0.06));
  border: 1px solid rgba(255,28,15,0.55);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 10px rgba(255,28,15,0.18);
  transition: all var(--transition);
}

.header__link--highlight:hover {
  background: linear-gradient(135deg, var(--red), #ff4530);
  border-color: var(--red);
  box-shadow: 0 4px 16px rgba(255,28,15,0.45);
  color: #fff;
}

.header__link--highlight::after { display: none; }

[data-theme="light"] .header__link--highlight {
  color: var(--red);
  background: rgba(255,28,15,0.08);
}
[data-theme="light"] .header__link--highlight:hover {
  color: #fff;
  background: var(--red);
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}

.header__phone:hover {
  color: var(--red);
}

.header__login {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--gray-400);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition);
  text-decoration: none;
  flex-shrink: 0;
}

.header__login:hover {
  color: var(--white);
  border-color: var(--red);
  background: rgba(255, 28, 15, 0.1);
}

.mobile-nav__login {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== LANG SWITCH ===== */
.lang-switch {
  display: flex;
  gap: 4px;
  margin-left: 4px;
  flex-shrink: 0;
}

.lang-switch__btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
  letter-spacing: 0.5px;
}

.lang-switch__btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.lang-switch__btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

.hero__bg::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, var(--black) 0%, transparent 100%);
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero__content {
  max-width: 640px;
}

.hero__symbol {
  margin-bottom: 24px;
}

.hero__symbol-img {
  height: 60px;
  width: auto;
  opacity: 0.9;
}

.hero__title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero__title-accent {
  color: var(--red);
  font-family: var(--font-heading);
}

.hero__subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
  line-height: 1.5;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Desktop hides the mobile-only extra hero buttons */
.hero__btn--mobile { display: none; }

/* Mobile-only boiler carousel */
.boiler-carousel { display: none; }
.boiler-carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 12px;
  padding: 4px 2px 12px;
  scrollbar-width: none;
}
.boiler-carousel__track::-webkit-scrollbar { display: none; }
.boiler-carousel__slide {
  flex: 0 0 88%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f4f4f4 0%, #e9e9e9 100%);
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: center;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
}
[data-theme="dark"] .boiler-carousel__slide {
  background: linear-gradient(135deg, #1a1a1a 0%, #0e0e0e 100%);
  box-shadow: 0 6px 24px rgba(0,0,0,0.6);
}
.boiler-carousel__slide img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 12px;
}
.boiler-carousel__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.55); color: #fff; border: none;
  font-size: 22px; line-height: 1; cursor: pointer;
  display: none;
}
.boiler-carousel__dots {
  display: flex; justify-content: center; gap: 6px; margin-top: 8px;
}
.boiler-carousel__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.3); transition: all 0.2s;
}
.boiler-carousel__dot--active { background: var(--red); width: 20px; border-radius: 3px; }

.hero__badge {
  text-align: center;
  animation: float 3s ease-in-out infinite;
}

.hero__badge-img {
  height: 140px;
  width: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 40px rgba(255, 28, 15, 0.4));
}

.hero__badge-text {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 3px;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.4);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== ABOUT ===== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__desc {
  font-size: 16px;
  color: var(--gray-600);
  margin-bottom: 20px;
  line-height: 1.7;
}

.about__stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

.about__stat {
  text-align: center;
}

.about__stat-number {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--red);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.about__stat-label {
  font-size: 13px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about__image-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.about__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__logo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}

.about__logo-img {
  width: 60%;
  opacity: 0.9;
}

/* ===== SERVICES ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.services__card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 40px;
  transition: all var(--transition);
}

.services__card:hover {
  background: rgba(255, 28, 15, 0.06);
  border-color: rgba(255, 28, 15, 0.2);
  transform: translateY(-4px);
}

.services__icon {
  margin-bottom: 24px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 28, 15, 0.1);
  border-radius: var(--radius-sm);
}

.services__card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--white);
}

.services__card-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== ADVANTAGES ===== */
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.advantages__item {
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.advantages__item:hover {
  border-color: var(--red);
  box-shadow: 0 8px 32px rgba(255, 28, 15, 0.1);
  transform: translateY(-4px);
}

.advantages__number {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  color: var(--red);
  opacity: 0.3;
  margin-bottom: 16px;
  line-height: 1;
}

.advantages__item:hover .advantages__number {
  opacity: 1;
}

.advantages__item-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--black);
}

.advantages__item-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-600);
}

/* ===== Partners ===== */
.partners__subtitle {
  max-width: 640px;
  margin: 16px 0 48px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-600);
}

.partners__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.partners__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
}

.partners__item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 28, 15, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.partners__logo {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.partners__item:hover .partners__logo {
  filter: grayscale(0%);
  opacity: 1;
}

.partners__item--text .partners__text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gray-600);
  transition: color 0.3s ease;
}

.partners__item--text:hover .partners__text {
  color: var(--black);
}

.partners__text-accent {
  color: #FF1C0F;
  margin-left: 4px;
}

@media (max-width: 1024px) {
  .partners__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .partners__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .partners__item {
    height: 100px;
    padding: 16px;
  }
  .partners__logo {
    max-height: 52px;
  }
  .partners__item--text .partners__text {
    font-size: 18px;
    letter-spacing: 1px;
  }
  .partners__subtitle {
    margin: 12px 0 32px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .partners__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== CTA ===== */
.cta {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
}

.cta__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.cta__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
}

.cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta__logo {
  height: 32px;
  margin: 0 auto 24px;
  opacity: 0.6;
}

.cta__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.cta__subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== SERVICE REQUEST ===== */
.service-request {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 28, 15, 0.08), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(255, 28, 15, 0.05), transparent 55%),
    #141414;
}
.sr-form {
  max-width: 720px;
  margin: 40px auto 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.sr-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.sr-form__grid .form__group {
  margin-bottom: 0;
  min-width: 0;
}
.sr-form__grid .form__input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
/* iOS Safari: date/time inputs pick up a min intrinsic width that breaks grid cells */
.sr-form__grid input[type="date"],
.sr-form__grid input[type="time"] {
  -webkit-appearance: none;
  appearance: none;
  min-height: 52px;
}
.sr-form__full {
  grid-column: 1 / -1;
}
.form__sublabel {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  margin-bottom: 6px;
  font-weight: 500;
}
[data-theme="light"] .form__sublabel {
  color: rgba(29,29,31,0.6);
}
.sr-form__photos {
  margin: 20px 0;
}
.sr-form__photo-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 2px dashed rgba(255, 28, 15, 0.45);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.sr-form__photo-label:hover {
  border-color: #FF1C0F;
  color: #FF1C0F;
}
.sr-form__previews {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.sr-form__preview-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}
.sr-form__success {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 20px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 10px;
  color: #22c55e;
  font-size: 15px;
}
.section__subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  margin-top: 8px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
[data-theme="light"] .service-request {
  background: #FFFFFF;
}
[data-theme="light"] .sr-form {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
[data-theme="light"] .sr-form__photo-label {
  color: rgba(29, 29, 31, 0.5);
  border-color: rgba(255, 28, 15, 0.2);
}
[data-theme="light"] .sr-form__preview-img {
  border-color: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .section__subtitle {
  color: rgba(29, 29, 31, 0.6);
}
@media (max-width: 600px) {
  .sr-form__grid {
    grid-template-columns: 1fr;
  }
  .sr-form__grid .form__group,
  .sr-form__grid .form__input {
    width: 100%;
    max-width: 100%;
  }
}

/* ===== CONTACTS ===== */
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contacts__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contacts__item-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 28, 15, 0.08);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.contacts__item-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.contacts__item-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
}

a.contacts__item-value {
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.2);
  text-underline-offset: 3px;
  cursor: pointer;
}

a.contacts__item-value:hover {
  color: var(--red);
  text-decoration-color: var(--red);
}

/* ===== FORM ===== */
.form__group {
  margin-bottom: 16px;
}

.form__input {
  width: 100%;
  padding: 16px 20px;
  font-size: 15px;
  font-family: var(--font-body);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--black);
  transition: all var(--transition);
  outline: none;
}

.form__input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 28, 15, 0.1);
}

.form__input::placeholder {
  color: var(--gray-400);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__input.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form__error {
  display: none;
  margin-top: 6px;
  font-size: 13px;
  color: #ef4444;
  font-weight: 500;
}

.form__group.has-error .form__error {
  display: block;
}

/* ===== FOOTER ===== */
.section--light {
  background: var(--white);
}

.contacts.section {
  padding-bottom: 60px;
}

.footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 0;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__logo {
  height: 24px;
  margin-bottom: 8px;
}

.footer__tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer__link:hover {
  color: var(--red);
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__contact {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

a.footer__contact:hover {
  color: var(--red);
}

.footer__bottom {
  padding: 24px 0;
  text-align: center;
}

.footer__copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

/* ===== FLOATING SOCIALS ===== */
.socials-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 999;
}

.socials-float__btn {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease;
  isolation: isolate;
}

.socials-float__btn svg {
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}

/* subtle inner highlight — makes buttons look like glossy pills */
.socials-float__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,0.28), rgba(255,255,255,0) 55%);
  pointer-events: none;
  z-index: 1;
}

/* pulsing ring — draws the eye without being noisy */
.socials-float__btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 currentColor;
  opacity: 0.55;
  animation: socialsFloatPulse 2.6s cubic-bezier(.2,.8,.2,1) infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes socialsFloatPulse {
  0%   { box-shadow: 0 0 0 0 currentColor; opacity: 0.45; }
  70%  { box-shadow: 0 0 0 14px currentColor; opacity: 0; }
  100% { box-shadow: 0 0 0 0 currentColor; opacity: 0; }
}

.socials-float__btn:hover {
  transform: translateY(-2px) scale(1.06);
}
.socials-float__btn:active { transform: translateY(0) scale(0.98); }

.socials-float__btn--wa {
  color: #25D366; /* drives the pulse ring color */
  background:
    radial-gradient(circle at 30% 25%, #5bffa3 0%, #25D366 45%, #0fae4e 100%);
  box-shadow:
    0 10px 24px -6px rgba(37, 211, 102, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.35);
}
.socials-float__btn--wa svg { color: #fff; }
.socials-float__btn--wa:hover {
  box-shadow:
    0 14px 32px -4px rgba(37, 211, 102, 0.7),
    0 3px 10px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.35);
}

.socials-float__btn--ig {
  color: #dc2743;
  background:
    radial-gradient(circle at 28% 100%, #fdd14f 0%, #f77737 18%, #e1306c 45%, #c13584 62%, #833ab4 85%, #405de6 100%);
  box-shadow:
    0 10px 24px -6px rgba(220, 39, 67, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.35);
}
.socials-float__btn--ig svg { color: #fff; }
.socials-float__btn--ig:hover {
  box-shadow:
    0 14px 32px -4px rgba(220, 39, 67, 0.7),
    0 3px 10px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.35);
}

@media (prefers-reduced-motion: reduce) {
  .socials-float__btn::after { animation: none; }
}

@media (max-width: 480px) {
  .socials-float { bottom: 18px; right: 14px; gap: 10px; }
  .socials-float__btn { width: 46px; height: 46px; }
  .socials-float__btn svg { width: 21px; height: 21px; }
}

/* Back-compat for pages still using .wa-float */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .advantages__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Compact phone (icon only) on medium screens before burger kicks in */
@media (max-width: 1599px) {
  .header__phone {
    font-size: 0;
    gap: 0;
    padding: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    justify-content: center;
    flex-shrink: 0;
  }
  .header__phone svg {
    flex-shrink: 0;
  }
}

@media (max-width: 1366px) {
  .header__phone { display: none; }
  .header__nav {
    display: none;
  }

  .lang-switch {
    display: none;
  }

  .header__login {
    display: none;
  }

  .theme-toggle {
    display: none;
  }

  .header__burger {
    display: flex;
    z-index: 1060;
    position: fixed;
    top: 20px;
    right: 24px;
  }

  .header__burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .header__burger.active span:nth-child(2) {
    opacity: 0;
  }

  .header__burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .hero__inner {
    flex-direction: column;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 13px 12px;
    font-size: 14px;
  }
  .hero__btn--mobile { display: inline-flex; }

  .boiler-carousel {
    display: block;
    position: relative;
    margin-top: 28px;
    width: 100%;
  }
  .hero__badge { display: none; }

  .hero__badge {
    margin-top: 40px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__stats {
    flex-wrap: wrap;
    gap: 24px;
  }

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

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

  .contacts__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .cta {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  :root { --gap: 16px; }
  .section { padding: 44px 0; }
  .hero__title { font-size: 32px; }
  .hero__badge-img { height: 100px; }
  .about__stat-number { font-size: 28px; }
  .services__card { padding: 22px; }
  .section__title { font-size: clamp(24px, 7.5vw, 34px); }
  .section__label { font-size: 12px; letter-spacing: 2px; }
  .form__input { padding: 13px 14px; font-size: 14px; }
  .sr-form__grid { gap: 12px; }
  .sr-form { margin-top: 24px; padding: 20px 16px; border-radius: 16px; }
  .btn--large { padding: 14px 20px; font-size: 15px; }
}

/* Very narrow phones (iPhone SE 1st gen / small Android, <=360px) */
@media (max-width: 360px) {
  :root { --gap: 12px; }
  .section { padding: 36px 0; }
  .hero__title { font-size: 28px; }
  .section__title { font-size: 22px; }
  .form__input { padding: 11px 12px; font-size: 13px; }
  .form__sublabel { font-size: 12px; }
  .sr-form__grid { gap: 10px; }
  .btn--large { padding: 12px 16px; font-size: 14px; }
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--white);
  border-color: var(--red);
  background: rgba(255, 28, 15, 0.1);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .theme-toggle__sun { display: none; }
.theme-toggle .theme-toggle__moon { display: block; }
[data-theme="light"] .theme-toggle .theme-toggle__sun { display: block; }
[data-theme="light"] .theme-toggle .theme-toggle__moon { display: none; }

@media (max-width: 1024px) {
  .theme-toggle { display: none !important; }
}
@media (max-width: 768px) {
  .mobile-nav__theme {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 24px;
    cursor: pointer;
    font-family: var(--font-body);
    margin-top: 4px;
    margin-bottom: 8px;
  }
  .mobile-nav__theme:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
  .mobile-nav__theme svg { width: 16px; height: 16px; }
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
  --dark: #F5F5F7;
  --dark-2: #FFFFFF;
  --gray-900: #E5E5E7;
  --gray-800: #1D1D1F;
  --gray-600: #515154;
  --gray-400: #86868B;
  --gray-200: #D2D2D7;
  --black: #1D1D1F;
  --white: #1D1D1F;
}
[data-theme="light"] html { background: #F5F5F7; }
[data-theme="light"] body {
  background: #F5F5F7;
  color: #1D1D1F;
}

/* Sections */
[data-theme="light"] .section--dark {
  background: #F5F5F7;
  color: #1D1D1F;
}
[data-theme="light"] .section__title--light { color: #1D1D1F; }
[data-theme="light"] .section__label { color: var(--red); }

/* Header */
[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .header--scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .header__link { color: rgba(29, 29, 31, 0.7); }
[data-theme="light"] .header__link:hover { color: #1D1D1F; }
[data-theme="light"] .header__phone { color: #1D1D1F; }
[data-theme="light"] .header__login {
  color: #515154;
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .header__login:hover {
  color: #1D1D1F;
  background: rgba(255, 28, 15, 0.08);
  border-color: var(--red);
}
[data-theme="light"] .header__burger span { background: #1D1D1F; }
[data-theme="light"] .lang-switch__btn {
  border-color: rgba(0, 0, 0, 0.2);
  color: rgba(29, 29, 31, 0.6);
}
[data-theme="light"] .lang-switch__btn:hover {
  border-color: rgba(0, 0, 0, 0.5);
  color: #1D1D1F;
}
[data-theme="light"] .lang-switch__btn.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
[data-theme="light"] .theme-toggle {
  color: #515154;
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .theme-toggle:hover {
  color: #1D1D1F;
  background: rgba(255, 28, 15, 0.08);
  border-color: var(--red);
}

/* Buttons */
[data-theme="light"] .btn--outline {
  color: #1D1D1F;
  border-color: rgba(0, 0, 0, 0.25);
}
[data-theme="light"] .btn--outline:hover {
  border-color: #1D1D1F;
  background: rgba(0, 0, 0, 0.05);
}

/* Hero */
[data-theme="light"] .hero__bg-img {
  opacity: 0.22;
}
[data-theme="light"] .hero__bg {
  background: linear-gradient(180deg, #F5F5F7 0%, #EDEDF0 100%);
}
[data-theme="light"] .hero__bg::after {
  background: linear-gradient(
    135deg,
    rgba(245, 245, 247, 0.82) 0%,
    rgba(245, 245, 247, 0.68) 50%,
    rgba(245, 245, 247, 0.88) 100%
  );
}
[data-theme="light"] .hero__bg::before {
  background: linear-gradient(to top, #F5F5F7 0%, rgba(245,245,247,0.6) 50%, transparent 100%);
  height: 220px;
}
[data-theme="light"] .hero__title {
  color: #0A0A0A;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}
[data-theme="light"] .hero__subtitle {
  color: #3A3A3C;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}
[data-theme="light"] .hero__badge-text { color: #515154; }
[data-theme="light"] .hero__scroll { color: rgba(29, 29, 31, 0.45); }

/* About */
[data-theme="light"] .about__desc { color: #515154; }
[data-theme="light"] .about__stats { border-top-color: #D2D2D7; }
[data-theme="light"] .about__stat-label { color: #86868B; }

/* Services */
[data-theme="light"] .services__card {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .services__card:hover {
  background: #FFFFFF;
  border-color: rgba(255, 28, 15, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .services__card-title { color: #1D1D1F; }
[data-theme="light"] .services__card-desc { color: #515154; }

/* Advantages */
[data-theme="light"] .advantages__item {
  background: #FFFFFF;
  border-color: #E5E5E7;
}
[data-theme="light"] .advantages__item:hover {
  border-color: var(--red);
}
[data-theme="light"] .advantages__item-title { color: #1D1D1F; }
[data-theme="light"] .advantages__item-desc { color: #515154; }

/* Partners — already have white backgrounds, minimal changes */
[data-theme="light"] .partners__item {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .partners__subtitle { color: #515154; }

/* CTA */
[data-theme="light"] .cta__bg-img { opacity: 0.18; }
[data-theme="light"] .cta__bg::after {
  background: linear-gradient(135deg, rgba(245, 245, 247, 0.92), rgba(245, 245, 247, 0.78));
}
[data-theme="light"] .cta__title { color: #1D1D1F; }
[data-theme="light"] .cta__subtitle { color: #515154; }
[data-theme="light"] .cta__logo {
  content: url('../assets/images/svg/toqsan_logo_red.svg');
  opacity: 1;
}

/* Contacts */
[data-theme="light"] .section--light { background: #FFFFFF; }
[data-theme="light"] .contacts__item-title { color: #86868B; }
[data-theme="light"] .contacts__item-value { color: #1D1D1F; }

/* Form */
[data-theme="light"] .form__input {
  background: #FFFFFF;
  border-color: #D2D2D7;
  color: #1D1D1F;
}
[data-theme="light"] .form__input::placeholder { color: #86868B; }

/* Footer */
[data-theme="light"] .footer {
  background: #1D1D1F;
  color: #F5F5F7;
}
[data-theme="light"] .footer__top { border-bottom-color: rgba(255, 255, 255, 0.08); }
[data-theme="light"] .footer__tagline { color: rgba(255, 255, 255, 0.4); }
[data-theme="light"] .footer__link { color: rgba(255, 255, 255, 0.6); }
[data-theme="light"] .footer__contact { color: rgba(255, 255, 255, 0.6); }
[data-theme="light"] .footer__copy { color: rgba(255, 255, 255, 0.3); }

/* Mobile nav stays dark for clarity */
[data-theme="light"] .mobile-nav { background: #1D1D1F; }
