

/* Start:/local/templates/domostroy/styles.css?177622090712567*/
/* ===== HERO (только для главной) ===== */
.hero-fullscreen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 550px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/local/templates/domostroy/img/main_photo_svg.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-fullscreen .hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 700px;
  height: 100%;
}

.hero-fullscreen h1 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--blue);
}

.hero-fullscreen .hero-text {
  font-size: 20px;
  margin-bottom: 40px;
  font-weight: bold;
  color: var(--text);
}

.hero-features {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  margin-bottom: 40px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
}

.hero-feature img {
  width: 32px;
  height: 32px;
}

.btn-primary {
  background: var(--orange);
  font-weight: 600;
  width: 250px;
}

.btn-primary:hover {
  background: var(--orange-dark);
}

/* ===== УСЛУГИ ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  display: flex;
  gap: 18px;
  padding: 22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(18, 35, 66, 0.12);
}

.service-icon {
  width: 40%;
  min-width: 125px;
}

.service-icon img {
  width: 125px;
  height: 110px;
  object-fit: contain;
}

.servise_text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.servise_text h3 {
  margin: 0 0 8px 0;
}

/* ===== ПРОЕКТЫ ===== */
.projects {
  background: #fbfcfe;
}

.projects_btn {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.project_btn {
  padding: 7px 21px;
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.project_btn:hover,
.project_btn.active {
  background: var(--text);
  color: var(--white);
}

.projects_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.project_card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.project_card:hover {
  transform: translateY(-5px);
}

.project_card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.project_info {
  text-align: center;
  padding: 16px;
}

.project_info h3 {
  margin: 0 0 8px 0;
}

.project_info p {
  background: #808080;
  width: max-content;
  padding: 5px 25px;
  border-radius: var(--radius);
  color: var(--white);
  display: inline-block;
  margin: 0;
}

/* ===== WORKFLOW ===== */
.workflow {
  padding: 80px 0;
}

.workflow-steps {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.workflow-steps::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 60px;
  right: 60px;
  height: 3px;
  background: linear-gradient(90deg, #121F52, #0d4d9d, #121F52);
  z-index: 1;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
  background: transparent;
}

.step-circle {
  width: 80px;
  height: 80px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0px 0px 13px 2px #121F52;
  transition: var(--transition);
}

.step-circle img {
  width: auto;
  height: 50%;
}

.step:hover .step-circle {
  box-shadow: 0px 0px 13px 6px #121F52;
  transform: scale(1.05);
  cursor: pointer;
}

.step h3 {
  font-size: 18px;
  margin: 15px 0 10px;
  color: #121F52;
}

.step p {
  font-size: 14px;
  color: #121F52;
  line-height: 1.4;
}

/* ===== CTA ===== */
.cta {
  background: url(/local/templates/domostroy/img/need_bloc_back_mini_3.png);
  color: var(--white);
  background-size: cover;
  min-height: 240px;
  background-position-y: 10%;
  position: relative;
  display: flex;
  align-items: center;
}

.cta-box {
  position: absolute;
  right: 0;
  width: 50%;
  padding: 40px;
  border-radius: var(--radius);
}

.cta-box h2 {
  margin: 0 0 16px 0;
}

.cta-box p {
  margin: 0 0 24px 0;
}

/* ===== КАРТА ===== */
.map-section {
  padding: 40px 0;
}

#map {
  width: 100%;
  height: 500px;
  border-radius: var(--radius);
  overflow: hidden;
}

/* Активное состояние кнопок фильтра */
.project_btn.active {
  background: var(--text);
  color: var(--white);
}

/* Анимация для карточек проектов при фильтрации */
.project_card {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Стили для скрытых карточек */
.project_card[style*="display: none"] {
  display: none !important;
}

/* ===== АДАПТИВ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ ===== */

/* Планшеты (768px - 1000px) */
@media (max-width: 1000px) {
  .hero-fullscreen {
    height: 500px;
  }
  
  .hero-fullscreen h1 {
    font-size: 44px;
  }
  
  .hero-fullscreen .hero-text {
    font-size: 18px;
  }
  
  .hero-features {
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .hero-feature {
    font-size: 14px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .service-card {
    padding: 16px;
    gap: 12px;
  }
  
  .service-icon {
    min-width: 80px;
    width: 30%;
  }
  
  .service-icon img {
    width: 80px;
    height: 70px;
  }
  
  .servise_text h3 {
    font-size: 16px;
    margin: 0 0 4px 0;
  }
  
  .servise_text p {
    font-size: 13px;
  }
  
  .projects_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .project_card img {
    height: 200px;
  }
  
  .project_info h3 {
    font-size: 16px;
  }
  
  .project_info p {
    font-size: 12px;
    padding: 4px 16px;
  }
  
  .workflow-steps {
    gap: 15px;
  }
  
  .workflow-steps::before {
    top: 35px;
    left: 40px;
    right: 40px;
  }
  
  .step-circle {
    width: 70px;
    height: 70px;
  }
  
  .step h3 {
    font-size: 15px;
  }
  
  .step p {
    font-size: 12px;
  }
  
  .cta-box {
    width: 60%;
    padding: 30px;
  }
  
  .cta-box h2 {
    font-size: 24px;
  }
  
  .cta-box p {
    font-size: 14px;
  }
}

/* Планшеты (вертикальная ориентация) и большие телефоны (640px - 768px) */
@media (max-width: 768px) {
  .hero-fullscreen {
    height: auto;
    min-height: 450px;
    padding: 80px 0 40px;
  }
  .workflow {
    display: none;
  }
  
  .hero-fullscreen h1 {
    font-size: 36px;
  }
  
  .hero-fullscreen .hero-text {
    font-size: 16px;
    margin-bottom: 30px;
  }
  
  .hero-features {
    gap: 16px;
    margin-bottom: 30px;
  }
  
  .hero-feature img {
    width: 28px;
    height: 28px;
  }
  
  .btn-primary {
    width: 220px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  .service-card {
    padding: 14px;
  }
  
  .projects_btn {
    gap: 8px;
    margin-bottom: 24px;
  }
  
  .project_btn {
    padding: 6px 16px;
    font-size: 14px;
  }
  
  .projects_grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .project_card img {
    height: 220px;
  }
  
  .workflow-steps {
    flex-direction: column;
    gap: 30px;
  }
  
  .workflow-steps::before {
    display: none;
  }
  
  .step {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 20px;
    background: var(--white);
    padding: 15px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  
  .step-circle {
    margin: 0;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }
  
  .step h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
  }
  
  .step p {
    margin: 0;
    font-size: 13px;
  }
  
  .cta {
    min-height: auto;
    background-position: center;
  }
  
  .cta-box {
    position: relative;
    width: 100%;
    margin: 0;
    text-align: center;
  }
  
  .cta-box h2 {
    font-size: 22px;
  }
  
  #map {
    height: 350px;
  }
}

/* Телефоны (480px - 640px) */
@media (max-width: 640px) {
  .hero-fullscreen h1 {
    font-size: 32px;
  }
  
  .hero-fullscreen .hero-text {
    font-size: 14px;
  }
  
  .hero-feature {
    font-size: 12px;
  }
  
  .hero-feature img {
    width: 24px;
    height: 24px;
  }
  
  .btn-primary {
    width: 200px;
    font-size: 14px;
  }
  
  .service-icon {
    min-width: 70px;
  }
  
  .service-icon img {
    width: 70px;
    height: 60px;
  }
  
  .project_btn {
    padding: 5px 14px;
    font-size: 13px;
  }
  
  .step {
    padding: 12px;
    gap: 15px;
  }
  
  .step-circle {
    width: 50px;
    height: 50px;
  }
  
  .step h3 {
    font-size: 15px;
  }
  
  .step p {
    font-size: 12px;
  }
  
  .cta-box {
    padding: 25px;
  }
  
  .cta-box h2 {
    font-size: 20px;
  }
  
  .cta-box p {
    font-size: 13px;
  }
  
  #map {
    height: 300px;
  }
}

/* Маленькие телефоны (до 480px) */
@media (max-width: 480px) {
  .hero-fullscreen {
    min-height: 400px;
    padding: 70px 0 30px;
  }
  
  .hero-fullscreen h1 {
    font-size: 28px;
    margin-bottom: 16px;
  }
  
  .hero-fullscreen .hero-text {
    font-size: 14px;
    margin-bottom: 24px;
  }
  
  .hero-features {
    gap: 12px;
    margin-bottom: 24px;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .hero-feature {
    gap: 8px;
  }
  
  .btn-primary {
    width: 100%;
    max-width: 250px;
  }
  
  .services {
    padding: 20px 0;
  }
  
  .service-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  
  .service-icon {
    width: auto;
    min-width: auto;
  }
  
  .service-icon img {
    width: 90px;
    height: 80px;
  }
  
  .servise_text {
    align-items: center;
  }
  
  .projects_btn {
    flex-wrap: wrap;
  }
  
  .project_btn {
    padding: 5px 12px;
    font-size: 12px;
  }
  
  .project_info h3 {
    font-size: 15px;
  }
  
  .project_info p {
    font-size: 11px;
    padding: 3px 12px;
  }
  
  .workflow {
    padding: 40px 0;
  }
  
  .step {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  
  .step-circle {
    margin: 0 auto;
  }
  
  .step h3 {
    text-align: center;
  }
  
  .step p {
    text-align: center;
  }
  
  .cta-box {
    padding: 20px;
  }
  
  .cta-box h2 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .cta-box p {
    font-size: 12px;
    margin-bottom: 16px;
  }
  
  .btn-large {
    width: 100%;
    max-width: 220px;
  }
  
  #map {
    height: 250px;
  }
  
  .map-section {
    padding: 20px 0;
  }
}

/* Очень маленькие телефоны (до 360px) */
@media (max-width: 360px) {
  .hero-fullscreen h1 {
    font-size: 24px;
  }
  
  .hero-fullscreen .hero-text {
    font-size: 13px;
  }
  
  .service-icon img {
    width: 70px;
    height: 60px;
  }
  
  .servise_text h3 {
    font-size: 15px;
  }
  
  .servise_text p {
    font-size: 12px;
  }
  
  .project_btn {
    padding: 4px 10px;
    font-size: 11px;
  }
  
  .project_info h3 {
    font-size: 14px;
  }
  
  .cta-box h2 {
    font-size: 16px;
  }
  
  .cta-box p {
    font-size: 11px;
  }
}
/* End */


/* Start:/local/templates/domostroy/template_styles.css?177621963014310*/
:root {
  --blue: #16315b;
  --blue-dark: #0e2342;
  --text: #121F52;
  --text-light: #6c7891;
  --bg: #f7f8fb;
  --white: #ffffff;
  --orange: #f47b20;
  --orange-dark: #e06610;
  --border: #e7ebf2;
  --radius: 18px;
  --radius-sm: 6px;
  --shadow: 0 10px 30px rgba(18, 35, 66, 0.08);
  --transition: 0.2s ease;
  --container-width: 1440px;
  --footer-bg: #0a1a2f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== КНОПКИ (глобальные) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 28px;
  border-radius: var(--radius-sm);
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  border: 1px solid var(--orange);
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background: var(--orange-dark);
  color: var(--white);
}

.btn--small {
  padding: 10px 24px;
  min-height: auto;
  font-size: 14px;
}

.btn_outline {
  background: transparent;
  border: 2px solid var(--orange);
  color: var(--orange);
}

.btn_outline:hover {
  background: var(--orange);
  color: var(--white);
}

/* ===== ЗАГОЛОВКИ СЕКЦИЙ (глобальные) ===== */
.section_head {
  text-align: center;
  margin: 32px 0;
}

.section_head h2 {
  font-size: 36px;
  margin-bottom: 12px;
  color: var(--blue);
}

.section_head p {
  font-size: 18px;
  color: var(--text);
}

.title_bootom_line {
  border-bottom: 3px solid var(--orange);
  width: 5%;
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

.section_action {
  display: flex;
  align-items: center;
  flex-direction: column;
}

/* ===== HEADER ===== */
.site_header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid var(--border);
}

.site_header--transparent {
  background: rgba(175, 174, 174, 0.3);
  backdrop-filter: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.site_header--transparent .phone,
.site_header--transparent .worktime {
  color: white;
}



.site_header--transparent.scrolled {
  background: rgba(10, 26, 47, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  min-height: 80px;
}

.logo {
  flex-shrink: 0;
  max-width: 180px;
}

.logo img {
  height: 48px;
  width: auto;
}

.header_nav {
  display: flex;
  gap: 32px;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.header_nav a {
  font-weight: 500;
  font-size: 16px;
  color: var(--blue);
  transition: var(--transition);
  white-space: nowrap;
}

.header_nav a:hover {
  color: var(--orange);
}

.header_contacts {
  text-align: right;
  flex-shrink: 0;
}

.header_contacts .phone {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
}

.header_contacts .phone i {
  color: var(--orange);
  margin-right: 6px;
}

.header_contacts .worktime {
  font-size: 13px;
  color: var(--text-light);
  display: inline-block;
  margin-top: 4px;
}

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.burger span {
  width: 100%;
  height: 3px;
  background: var(--blue);
  border-radius: 3px;
  transition: var(--transition);
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--footer-bg);
  color: #b0c4de;
  padding: 20px 0 20px;
  margin-top: 25px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
  color: #8aa0bc;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  font-size: 20px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--orange);
  transform: translateY(-3px);
}

.footer-col h4 {
  color: white;
  font-size: 18px;
  margin-bottom: 24px;
  font-weight: 600;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--orange);
  border-radius: 3px;
}

.footer-menu,
.footer-contacts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li,
.footer-contacts li {
  margin-bottom: 12px;
}

.footer-menu a,
.footer-contacts a {
  color: #b0c4de;
  transition: var(--transition);
  font-size: 14px;
}

.footer-menu a:hover,
.footer-contacts a:hover {
  color: var(--orange);
  padding-left: 4px;
}

.footer-contacts li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.footer-contacts i {
  width: 20px;
  color: var(--orange);
  font-size: 16px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  font-size: 13px;
  color: #6c86a0;
}

.footer-policy {
  display: flex;
  gap: 24px;
}

.footer-policy a {
  color: #6c86a0;
  transition: var(--transition);
}

.footer-policy a:hover {
  color: var(--orange);
}

/* ===== МОДАЛЬНОЕ ОКНО (глобальное) ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 500px;
  width: 90%;
  margin: 20px;
  padding: 40px;
  position: relative;
  transform: translateY(-30px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--orange);
}

.modal h3 {
  font-size: 28px;
  color: var(--blue);
  margin: 0 0 10px 0;
}

.modal p {
  color: var(--text-light);
  margin: 0 0 24px 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.modal .btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

/* ===== АДАПТИВ (глобальный) ===== */

/* Планшеты и маленькие ноутбуки (1000px - 1440px) */
@media (max-width: 1440px) and (min-width: 1001px) {
  .container {
    max-width: calc(100% - 80px);
    padding: 0 40px;
  }
  
  .header_nav {
    gap: 24px;
  }
  
  .header_nav a {
    font-size: 15px;
  }
  
  .footer-grid {
    gap: 30px;
  }
}

/* Планшеты (768px - 1000px) */
@media (max-width: 1000px) {
  .container {
    max-width: calc(100% - 40px);
    padding: 0 20px;
  }
  
  .header-inner {
    gap: 15px;
  }
  
  .header_nav {
    gap: 16px;
  }
  
  .header_nav a {
    font-size: 14px;
    white-space: nowrap;
  }
  
  .header_contacts .phone {
    font-size: 15px;
  }
  
  .header_contacts .worktime {
    font-size: 11px;
  }
  
  .btn--small {
    padding: 8px 16px;
    font-size: 12px;
  }
  
  .section_head h2 {
    font-size: 32px;
  }
  
  .section_head p {
    font-size: 16px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .footer-logo {
    font-size: 24px;
  }
  
  .modal {
    max-width: 450px;
    padding: 30px;
  }
  
  .modal h3 {
    font-size: 24px;
  }
}

/* Планшеты (вертикальная ориентация) и большие телефоны (640px - 768px) */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }
  
  .header_nav {
    display: none;  /* Изначально скрыто */
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 50vh;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    gap: 24px;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 80px 20px 40px;
    overflow-y: auto;
  }
  
  .header_nav.active {
    display: flex;  /* Показываем при активном классе */
    animation: slideIn 0.3s ease;
  }
  
  @keyframes slideIn {
    from {
      transform: translateX(100%);
    }
    to {
      transform: translateX(0);
    }
  }
  
  .header_nav a {
    font-size: 18px;
    white-space: normal;
  }
  
  .header_contacts {
    display: none;
  }
  
  .btn--small {
    display: none;
  }
  
  .logo img {
    height: 40px;
  }
  
  .section_head h2 {
    font-size: 28px;
  }
  
  .section_head p {
    font-size: 15px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .footer-col h4:after {
    width: 30px;
  }
  
  .modal {
    max-width: 400px;
    padding: 28px;
    margin: 16px;
  }
  
  .modal h3 {
    font-size: 22px;
  }
  
  .modal p {
    font-size: 14px;
  }
  .footer-col:nth-child(2),
  .footer-col:nth-child(3) {
    display: none;
  }
}

/* Телефоны (480px - 640px) */
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
  
  .section_head h2 {
    font-size: 26px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .footer-policy {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .site-footer {
    padding: 30px 0 20px;
  }
  
  .modal-overlay {
    align-items: flex-start;
    padding-top: 60px;
  }
  
  .modal {
    width: calc(100% - 32px);
    max-width: none;
    margin: 0 16px;
    padding: 24px;
    border-radius: 20px;
  }
  
  .modal h3 {
    font-size: 20px;
    margin-bottom: 8px;
  }
  
  .modal p {
    font-size: 13px;
    margin-bottom: 20px;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 10px 14px;
    font-size: 14px;
  }
}

/* Маленькие телефоны (до 480px) */
@media (max-width: 480px) {
  .header-inner {
    min-height: 64px;
  }
  
  .logo img {
    height: 32px;
  }
  
  .site_header--transparent .burger span {
    /*background: white;*/
  }
  
  .btn {
    min-height: 44px;
    padding: 0 20px;
    font-size: 14px;
  }
  
  .section_head {
    margin: 24px 0;
  }
  
  .section_head h2 {
    font-size: 24px;
  }
  
  .section_head p {
    font-size: 14px;
  }
  
  .footer-logo {
    font-size: 22px;
  }
  
  .footer-desc {
    font-size: 13px;
  }
  
  .footer-col h4 {
    font-size: 16px;
    margin-bottom: 16px;
  }
  
  .footer-menu a,
  .footer-contacts a,
  .footer-contacts li span {
    font-size: 13px;
  }
  
  .footer-social a {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .footer-copy,
  .footer-policy a {
    font-size: 12px;
  }
  
  .modal-overlay {
    align-items: flex-start;
    padding-top: 50px;
  }
  
  .modal {
    width: calc(100% - 24px);
    margin: 0 12px;
    padding: 20px;
    border-radius: 16px;
  }
  
  .modal h3 {
    font-size: 18px;
  }
  
  .modal p {
    font-size: 12px;
    margin-bottom: 16px;
  }
  
  .modal-close {
    top: 12px;
    right: 12px;
    font-size: 22px;
  }
}

/* Очень маленькие телефоны (до 360px) */
@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }
  
  .section_head h2 {
    font-size: 22px;
  }
  
  .btn {
    padding: 0 16px;
    font-size: 13px;
  }
  
  .modal-overlay {
    padding-top: 40px;
  }
  
  .modal {
    width: calc(100% - 20px);
    margin: 0 10px;
    padding: 16px;
  }
  
  .modal h3 {
    font-size: 16px;
  }
  
  .modal p {
    font-size: 11px;
  }
  
  .form-group {
    margin-bottom: 14px;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .modal .btn {
    padding: 10px;
    font-size: 13px;
  }
}
/* End */
/* /local/templates/domostroy/styles.css?177622090712567 */
/* /local/templates/domostroy/template_styles.css?177621963014310 */
