/* Базовые стили */
:root {
  --primary-color: #77af01;
  --secondary-color: #77af01;
  --accent-color: #5cb800;
  --dark-color: #1e3a5f;
  --light-color: #f8f9fa;
  --text-color: rgba(50, 50, 50, 1);
  --text-light: #666;
  --border-color: #e0e0e0;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
  --green-bg: rgb(119, 175, 1);
  --gray-bg: oklch(96.7% 0.001 286.375);
  --nav-offset: 78px;
}

@media (max-width: 768px) {
  :root {
    --nav-offset: 64px;
  }
}

@media (max-width: 400px) {
  :root {
    --nav-offset: 58px;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: #fff;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Laptop и laptop L — одинаковая ширина полоски */
@media (min-width: 993px) {
  .page-main .container {
    max-width: 1200px;
  }
}

.btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
}

.btn:hover {
  background-color: #5a8c01;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* Фоновые цвета - теперь на всю ширину */
.bg-green {
  background-color: var(--green-bg);
  color: white;
}

.bg-gray {
  background-color: var(--gray-bg);
  color: var(--text-color);
}

/* Полоски */
.strip {
  width: 100%;
  padding: 48px 0;
}

.strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-main {
  flex: 1;
  background-color: var(--green-bg);
}

/* Верхний блок страницы /form */
.form-hero-section {
  background-color: var(--gray-bg);
  color: var(--text-color);
  padding: calc(var(--nav-offset) + 28px) 0 56px;
}

.form-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.strip-1-heading {
  margin: 0;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-color);
}

.form-hero-heading {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.form-hero-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-hero-slider {
  min-width: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.form-hero-benefits {
  display: flex;
  align-items: center;
  min-height: 100%;
}

.strip-1-line1 {
  display: block;
  font-size: clamp(1.15rem, 3vw, 1.9rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0.02em;
  color: var(--text-color);
}

.strip-1-line2 {
  display: block;
  font-size: clamp(1.05rem, 3vw, 1.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-top: 0.15em;
  color: var(--text-color);
}

@media (max-width: 768px) {
  .form-hero-section {
    padding: calc(var(--nav-offset) + 20px) 0 40px;
  }

  .form-hero-inner {
    gap: 24px;
  }

  .form-hero-content {
    flex-direction: column;
    gap: 24px;
  }

  .strip-1-line1 {
    font-size: clamp(0.75rem, 3.6vw, 1.2rem);
  }
  .strip-1-line2 {
    font-size: clamp(0.7rem, 3.2vw, 1rem);
  }
}

@media (max-width: 480px) {
  .strip-1-line1 {
    font-size: clamp(0.72rem, 3.3vw, 1.05rem);
  }

  .strip-1-line2 {
    font-size: clamp(0.68rem, 3.05vw, 0.95rem);
  }
}

@media (max-width: 400px) {
  .form-hero-section {
    padding: calc(var(--nav-offset) + 16px) 0 32px;
  }

  .strip-1-line1 {
    font-size: clamp(0.68rem, 3.8vw, 1rem);
  }

  .strip-1-line2 {
    font-size: clamp(0.63rem, 3.4vw, 0.9rem);
  }
}

@media (max-width: 320px) {
  .strip-1-line1 {
    font-size: clamp(0.64rem, 3.6vw, 0.92rem);
    letter-spacing: 0.015em;
  }

  .strip-1-line2 {
    font-size: clamp(0.6rem, 3.2vw, 0.84rem);
  }
}

.strip-3-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-color);
}

.strip-3-list li {
  position: relative;
  padding-left: 1.55em;
  margin-bottom: 14px;
  font-weight: 500;
}

.strip-3-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 700;
}

.strip-3-list li:last-child {
  margin-bottom: 0;
}

/* Tablet и ниже — список «более 20 лет...» по центру */
@media (max-width: 992px) {
  .form-hero-benefits {
    justify-content: center;
  }

  .strip-3-list {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .strip-3-list {
    font-size: 1rem;
  }
  .strip-3-list li {
    padding-left: 1.25em;
    margin-bottom: 10px;
  }
}

/* Полоска 4: Заявка + QR */
.strip-4-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Обёртка под container queries: ширина контента, а не всего экрана */
.strip-4-cq {
  display: flex;
  flex-direction: column;
  /* center — как у прежнего .strip-4-inner: карточка max 920px не растягивается на всю ширину */
  align-items: center;
  gap: 32px;
  width: 100%;
  container-type: inline-size;
  container-name: strip4;
}

.strip-4-header {
  width: 100%;
  text-align: center;
}

.strip-4-body {
  width: min(100%, 920px);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  align-items: stretch;
  gap: 48px;
  padding: 34px 44px 40px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
}

.strip-4-body::after {
  display: none;
}

.strip-4-cta {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  text-align: center;
  max-width: 460px;
  justify-self: center;
  justify-content: center;
  align-self: stretch;
}

.strip-4-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0;
  color: white;
}

.strip-4-subtitle {
  font-size: 1.2rem;
  margin: 0;
  opacity: 0.95;
  line-height: 1.5;
  max-width: 420px;
}

.btn-strip-4 {
  background: white;
  color: var(--green-bg);
}

.btn-strip-4:hover {
  background: #f0f0f0;
  color: #5a8c01;
}

.btn-strip-4-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  padding: 12px 28px;
  box-sizing: border-box;
}

.btn-strip-4-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.strip-4-contact {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 22rem;
  margin: 22px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.strip-4-contact-row {
  display: grid;
  grid-template-columns: 10.75rem minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
}

.strip-4-contact .btn-strip-4-outline {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 7px 10px;
  justify-self: stretch;
  text-align: center;
  width: 100%;
  min-width: 0;
}

.strip-4-contact .btn-strip-4-outline:hover {
  transform: translateY(-1px);
}

.strip-4-contact-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  opacity: 0.98;
  white-space: nowrap;
  text-align: left;
  min-width: 0;
}

.strip-4-contact-value:hover {
  text-decoration: underline;
  opacity: 1;
}

.strip-4-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-self: stretch;
  justify-content: center;
  gap: 14px;
  padding: 8px 0 18px 44px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  box-sizing: border-box;
}

.strip-4-qr-label {
  font-size: 0.95rem;
  margin: 0;
  opacity: 0.95;
}

/* QR без рамки — картинка целиком (ссылка на Telegram) */
.strip-4-qr-wrap {
  display: inline-block;
  max-width: 260px;
  max-height: 260px;
  text-decoration: none;
}

.strip-4-qr-wrap .strip-4-qr-img,
.strip-4-qr-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Tablet: 769px–1024px — с подложкой, адаптация */
@media (max-width: 1024px) and (min-width: 769px) {
  .strip-4-body {
    width: min(100%, 720px);
    padding: 28px 32px 32px;
    gap: 36px;
    grid-template-columns: minmax(0, 1.5fr) minmax(200px, 1fr);
  }

  .strip-4-title {
    font-size: 1.5rem;
  }

  .strip-4-subtitle {
    font-size: 1.1rem;
    max-width: 100%;
  }

  .strip-4-qr {
    padding: 8px 0 18px 28px;
  }

  .strip-4-qr-label {
    font-size: 0.9rem;
  }

  .strip-4-qr-wrap,
  .strip-4-qr-wrap .strip-4-qr-img,
  .strip-4-qr-img {
    max-width: 200px;
    max-height: 200px;
  }
}

/* Узкий блок заявки: container по ширине .strip-4-cq (надёжнее, чем только vw) */
@container strip4 (max-width: 768px) {
  .strip-4-body {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 28px;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .strip-4-cta {
    justify-self: auto;
    align-self: stretch;
    justify-content: flex-start;
    text-align: center;
    align-items: center;
    max-width: none;
    width: 100%;
    min-width: 0;
    padding: 0 4px;
    box-sizing: border-box;
  }

  .strip-4-contact {
    max-width: 100%;
    width: 100%;
    margin-top: 18px;
    padding-top: 20px;
    padding-left: max(0px, env(safe-area-inset-left, 0px));
    padding-right: max(0px, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
    gap: 14px;
  }

  .strip-4-contact-row {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 10px;
    column-gap: 0;
    justify-items: stretch;
  }

  .strip-4-contact .btn-strip-4-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    min-height: 44px;
    padding: 10px 16px;
    font-size: 0.875rem;
    box-sizing: border-box;
  }

  .strip-4-contact-value {
    text-align: center;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    font-size: 0.9rem;
    line-height: 1.35;
    padding: 0 2px 4px;
  }

  .strip-4-qr {
    justify-self: auto;
    align-self: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 260px;
    min-width: 0;
    padding: 0;
    border: none;
    text-align: center;
  }

  .strip-4-qr-label {
    font-size: 0.95rem;
    margin-bottom: 12px;
    opacity: 0.95;
  }

  .strip-4-qr-wrap,
  .strip-4-qr-wrap .strip-4-qr-img,
  .strip-4-qr-img {
    max-width: min(220px, 72vw);
    max-height: min(220px, 72vw);
    width: auto;
    height: auto;
    margin-inline: auto;
  }
}

@container strip4 (max-width: 400px) {
  .strip-4-qr-wrap,
  .strip-4-qr-wrap .strip-4-qr-img,
  .strip-4-qr-img {
    max-width: min(190px, 70vw);
    max-height: min(190px, 70vw);
  }
}

/* Дублируем типографику узкой полоски по viewport для старых браузеров без CQ */
@media (max-width: 768px) {
  .strip-4-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .strip-4-subtitle {
    font-size: 1.15rem;
    margin: 0 0 24px;
  }
}

/* Шапка: полупрозрачная (оптимизация под лендинг) */
.navbar {
  background-color: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(42, 56, 25, 0.08);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  position: relative;
}

.nav-left {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: "Roboto", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-color);
  text-decoration: none;
  white-space: normal;
}

.logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.logo-slogan {
  position: relative;
  display: block;
  width: 200px;
  height: 46px;
  margin-top: 0;
  white-space: nowrap;
}

.logo-title {
  position: absolute;
  top: 6px;
  left: 0;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text-color);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.logo-subtitle {
  position: absolute;
  left: 0;
  top: 38px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links-wrapper {
  margin-left: 20px;
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  font-size: 0.95rem;
  white-space: nowrap;
  padding: 5px 0;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

.nav-contact-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  white-space: nowrap;
}

.phone-link {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  white-space: nowrap;
}

.phone-link:hover {
  color: #5a8c01;
}

.sk-logo {
  height: 35px;
  width: auto;
  margin-left: 5px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  position: relative;
  z-index: 1002;
  padding: 8px;
}

/* Слайдер (полоска 2): фото на весь слайд, текст под фото на полупрозрачном фоне */
.features-slider {
  position: relative;
  max-width: 760px;
  width: min(100%, 760px);
  margin: 0 auto;
  flex: 0 1 auto;
}

.features-slider-track {
  position: relative;
  height: auto;
  aspect-ratio: 16 / 9;
  width: 100%;
}

/* Десктоп/ноут: на странице /form слайдер меньше, чем на главной */
@media (min-width: 769px) {
  .strip-3-list {
    font-size: 1.25rem;
  }
}

.features-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background-color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
  pointer-events: none;
}

.features-slide.features-slide-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.features-slide-photo {
  flex: 1;
  min-height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: #0b0b0b;
}

.features-slide-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--slide-bg);
  background-size: cover;
  background-position: center;
  filter: blur(18px);
  transform: scale(1.12);
  opacity: 0.7;
}

.features-slide-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 80% at 50% 50%,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.55) 70%,
    rgba(0, 0, 0, 0.75) 100%
  );
  pointer-events: none;
}

.features-slide-photo .features-slide-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}

.features-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 20px 24px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  text-align: center;
}

.features-slide-caption-text {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.features-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: none;
  background: transparent;
  color: var(--primary-color);
  font-size: 2.25rem;
  cursor: pointer;
  z-index: 2;
  padding: 0;
  line-height: 1;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.features-slider-arrow:hover {
  opacity: 0.8;
}

.features-slider-prev {
  left: 12px;
}

.features-slider-next {
  right: 12px;
}

.features-slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.features-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.features-slider-dot.active {
  background: var(--primary-color);
}

/* Слайдер: адаптив */
@media (max-width: 768px) {
  .features-slider-arrow {
    display: none;
  }

  .features-slider-track {
    aspect-ratio: auto;
    height: 400px;
  }

  .features-slide-photo {
    min-height: 240px;
  }

  .features-slide-caption {
    padding: 16px 18px;
  }

  .features-slide-caption-text {
    font-size: 1.05rem;
  }
}

@media (max-width: 400px) {
  .features-slider-track {
    height: 340px;
  }

  .features-slide-photo {
    min-height: 210px;
  }

  .features-slide-caption {
    padding: 12px 14px;
  }

  .features-slide-caption-text {
    font-size: 0.95rem;
  }
}

/* Адаптивность шапки и лендинга */
@media (max-width: 1200px) {
  .nav-right {
    gap: 20px;
  }
  .nav-links-wrapper {
    margin-left: 12px;
  }
  .nav-links {
    gap: 20px;
  }
}

@media (max-width: 1100px) {
  .nav-right {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.92);
    flex-direction: column;
    padding: 24px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 1001;
    gap: 20px;
  }

  .nav-right.active {
    display: flex;
  }

  .nav-links-wrapper {
    margin-left: 0;
    width: 100%;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 10px 0;
    text-align: center;
  }

  .nav-contact-wrapper {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    align-items: center;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
}

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

  .sk-logo {
    height: 30px;
  }
}

/* Mobile S (320px) — шапка компактнее */
@media (max-width: 400px) {
  .nav-container {
    padding: 10px 12px;
  }

  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
  }

  .logo-img {
    height: 40px;
  }

  .logo-slogan {
    width: 160px;
    height: 36px;
    margin-top: 0;
  }

  .logo-title {
    font-size: 0.9rem;
    top: 5px;
  }

  .logo-subtitle {
    font-size: 0.6rem;
    top: 28px;
  }

  .logo {
    gap: 10px;
  }
}

@media (max-width: 320px) {
  .nav-container {
    padding: 8px 10px;
  }

  .logo-img {
    height: 36px;
  }

  .logo-slogan {
    width: 142px;
    height: 32px;
  }

  .logo-title {
    font-size: 0.8rem;
    top: 4px;
  }

  .logo-subtitle {
    font-size: 0.55rem;
    top: 25px;
  }
}

/* Футер "Домовой" */
.footer {
  background-color: var(--green-bg);
  color: white;
  padding: 60px 0 30px;
  width: 100%;
}

.footer.footer-domovoy {
  background: var(--green-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 30px 0 26px;
}

.footer.footer-domovoy .container {
  max-width: 1360px;
  padding-left: 24px;
  padding-right: 24px;
}

.footer-domovoy__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 40px;
}

.footer-domovoy__brand {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 340px;
  flex: 1 1 460px;
}

.footer-domovoy__logos {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.footer-domovoy__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.footer-domovoy__logo img {
  display: block;
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.footer-domovoy__logo:hover img {
  transform: translateY(-1px);
}

.footer-domovoy__logo--domovoy img {
  height: 54px;
}

.footer-domovoy__logo--masic img {
  height: 48px;
}

.footer-domovoy__company {
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 700;
  color: #ffffff;
  max-width: 420px;
}

.footer-domovoy__address {
  font-size: 0.96rem;
  line-height: 1.35;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  flex: 0 1 250px;
  min-width: 220px;
}

.footer-domovoy__contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1rem;
  flex: 0 1 230px;
  min-width: 200px;
}

.footer-domovoy__contact a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
}

.footer-domovoy__contact a:hover {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.footer-domovoy__socials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}

.footer-domovoy__socials a {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  transition: var(--transition);
}

.footer-domovoy__socials a:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.footer-domovoy__socials img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1240px) {
  .footer-domovoy__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 16px 24px;
  }

  .footer-domovoy__socials {
    margin-left: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 992px) {
  .footer.footer-domovoy .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer-domovoy__inner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 14px;
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
  }

  .footer-domovoy__brand {
    min-width: 0;
    width: 100%;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .footer-domovoy__logos {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-domovoy__company,
  .footer-domovoy__address,
  .footer-domovoy__contact {
    white-space: normal;
    text-align: center;
  }

  .footer-domovoy__address,
  .footer-domovoy__contact {
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  .footer-domovoy__socials {
    justify-content: center;
    margin-left: 0;
  }
}

@media (max-width: 800px) {
  .footer.footer-domovoy {
    padding: 24px 0 18px;
  }

  .footer.footer-domovoy .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-domovoy__inner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 12px;
    max-width: 420px;
    margin: 0 auto;
  }

  .footer-domovoy__brand {
    min-width: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .footer-domovoy__logos {
    gap: 12px;
    flex-wrap: wrap;
  }

  .footer-domovoy__logo--domovoy img {
    height: 48px;
  }

  .footer-domovoy__logo--masic img {
    height: 42px;
  }

  .footer-domovoy__address,
  .footer-domovoy__contact {
    width: 100%;
    text-align: center;
    justify-content: center;
    align-items: center;
  }

  .footer-domovoy__company {
    max-width: 100%;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .footer-domovoy__address {
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .footer-domovoy__contact {
    gap: 4px;
  }

  .footer-domovoy__contact a {
    font-size: 0.97rem;
  }

  .footer-domovoy__socials {
    justify-content: center;
    width: auto;
    margin-left: 0;
    gap: 8px;
  }

  .footer-domovoy__socials a {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 576px) {
  .footer-domovoy__inner {
    max-width: 360px;
    gap: 10px;
  }

  .footer-domovoy__logo--domovoy img {
    height: 44px;
  }

  .footer-domovoy__logo--masic img {
    height: 38px;
  }

  .footer-domovoy__company {
    font-size: 0.9rem;
  }

  .footer-domovoy__address {
    font-size: 0.88rem;
  }

  .footer-domovoy__contact a {
    font-size: 0.93rem;
  }

  .footer-domovoy__socials a {
    width: 42px;
    height: 42px;
  }
}
