/* ========== Base Reset & Typography ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  background: #fff;
  color: #333;
}

/* Utility */
.container {
  flex: 1 1 100%;   /* контейнер займёт всю ширину */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;  
  display: flex;    /* чтобы left/right снова выстроились */
  justify-content: space-between;
  align-items: center;
}

.block{ display: block; }

.small {
  font-size: 13px;
  color: #666;
}

.left {
  float: left;
}

.right {
  float: right;
}

a {
  color: #0a63a7;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ========== Header ========== */
header {
  background: #fff;
  color: #222;
}

.top-bar {
  background: #f2f2f2;
  font-size: 14px;
  padding: 16px 0; /* убрали лишние боковые паддинги */
}
.top-bar .phone, .top-bar .email{
  font-weight: bold;
  color: #333;
}

.whatsapp-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #25D366; /* фирменный цвет WhatsApp */
  font-weight: 500;
}
.whatsapp-link:hover {
  text-decoration: underline;
  color: #1ebe5b;
}



.top-bar .left,
.top-bar .right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar a {
  color: #0a63a7;
}

.top-bar a:hover {
  text-decoration: underline;
}

.mid-bar {
  background: #fff;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  max-height: 52px;
  height: auto;
  display: block;
}
.logo img:hover {
  opacity: 0.9;
}

.logo-block .subtitle {
  font-size: 13px;
  line-height: 1.2;
  color: #333;
  position: relative;
  top: 9px;
  border-left: 1px solid #333;
  padding-left: 13px;
}
.logo-block .subtitle a { color: #333; }
.logo-block .subtitle a:hover { text-decoration: none; }

@media (max-width: 768px) {
  .logo-block .subtitle { display: none !important;
}

}

.search-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-wrapper {
  position: relative;
}

.search-wrapper input {
  height: 40px;
  width: 290px;
  padding: 0 34px 0 12px;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  background: #fff;
  color: #333;
  position: relative;
  top: 10px;
}

.search-wrapper .icon {
  position: relative;
  right: 30px;
  top: 13px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #777;
  pointer-events: none;
}

.link-callback {
  font-size: 14px;
  color: #0a63a7;
}

.link-callback:hover {
  text-decoration: underline;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
}

.btn.proposal {
  background: #f2f2f2;
  border: none;
}

.search-block .btn.proposal { 
  position: relative;
  top: 10px;  
  right: 400px;
}

.btn.proposal:hover {
  filter: brightness(0.96);
  text-decoration: none;
}

/* ========== Menus ========== */
.menu-primary {
  background: #fff;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  padding: 10px 16px;
  line-height: 2.6;
}

.menu-primary ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;                   /* убрали центрирование */
  justify-content: flex-start; /* прижали к левому краю */
}


.menu-primary ul li a {
  color: #333;
  padding: 10px 25px;
}
@media (max-width: 992px) {
    .menu-primary ul li a{
      padding: 5px 8px;
    }
}

.menu-primary ul li a:hover {
  text-decoration: underline dashed;
  text-underline-offset: 3px;
}

.menu-secondary {
  background: #00538c;
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px 16px;
  line-height: 2.6;
  margin-top: 20px;
}

.menu-secondary ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;              /* убрали авто-отступ */
  justify-content: flex-start; /* прижали к левому краю */
}



.menu-secondary ul:first-child li a {
  color: #fff;
  font-weight: 600;
  padding: 10px 25px;
}

@media (max-width: 992px) {
    .menu-secondary ul:first-child li a {
      padding: 5px 8px;
    }
}

.menu-secondary ul:first-child li a:hover {
  text-decoration: underline dashed;
  text-underline-offset: 4px;
}

#services-link {
  position: relative;
  padding-right: 16px; /* убираем лишний отступ справа */
}

#services-link::after {
  content: "▾";                 /* стрелочка вниз */
  display: inline-block;        /* теперь как часть текста */
  margin-left: 6px;             /* расстояние от слова */
  font-size: 12px;
  color: inherit;
  transition: transform 0.2s ease;
}


/* поворот стрелки при открытом меню */
.mega-menu.open + .menu-secondary ul li a#services-link::after,
#services-link.active::after {
  transform: rotate(180deg);
}

.menu-secondary ul li a {
  color: #fff;
  font-weight: 600;
  padding: 6px 12px;         /* чтобы был отступ вокруг текста */
  border-radius: 4px;        /* скруглим фон */
  transition: background 0.2s ease, color 0.2s ease;
}

.menu-secondary ul li a:hover {
  background: rgba(255, 255, 255, 0.15); /* светлый фон при наведении */
  text-decoration: none;                 /* убираем подчеркивание */
}


/* ========== Mega Menu ========== */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  display: none;
  /* ← скрыто по умолчанию */
  z-index: 1000;
  align-items: flex-start;
  gap: 30px;
  padding: 20px;
}

/* показываем только когда есть класс open */
.mega-menu.open {
  display: flex;
}

/* Левая колонка */
.mega-left {
  flex: 0 0 180px;
  background: #f7f7f7;
  border-radius: 6px;
  padding: 8px 0;
}

.mega-left ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0 !important;
  /* сброс flex-gap */;
}

.mega-left li {
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
}

.mega-left li a {
  display: block;
  padding: 10px 24px 10px 12px;
  /* справа делаем отступ под стрелку */
  font-size: 16px;
  line-height: 1.3;
  color: #333 !important;
  text-decoration: none;
  cursor: pointer;
}

.mega-left li a::after {
  content: "❯";
  /* стрелочка вправо */
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #666;
  /* серая стрелочка */
  transition: transform 0.2s ease, color 0.2s ease;
}

/* при наведении или активном пункте */
.mega-left li.active a::after {
  color: #fff;
  /* белая, как текст */
  transform: translateY(-50%) translateX(2px);
  /* лёгкое смещение вправо */;
}

.mega-left li.active a {
  color: #fff !important;
}

.mega-left li.active {
  background: #ff6a00;
  color: #fff;
}

/* Правая колонка */
.mega-right {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.mega-right .submenu-block {
  display: none;
}

.mega-right .submenu-block:first-child {
  display: block;
}

.mega-right .submenu-block h3 {
  margin: 4px 0 10px;
  font-size: 18px;
}

/* ===== Mega menu: compact preset ===== */

/* заголовки разделов справа (Услуги..., Типы..., и т.д.) */
.mega-right .submenu-block h3{
  margin: 2px 0 6px;     /* было 4px 0 10px */
  font-size: 16px;       /* было 18px */
  line-height: 1.25;
}

/* ===== submenu-block в 2 колонки ===== */

/* ===== submenu-block в 2 независимые колонки ===== */

/* 2 независимые колонки для секций внутри submenu-block */
.mega-right .submenu-block > ul{
  display: block !important;     /* важно: убиваем flex :contentReference[oaicite:1]{index=1} */
  column-count: 2;
  column-gap: 40px;
}

/* чтобы каждый блок-секция (li) занимал всю ширину колонки и не рвался */
.mega-right .submenu-block > ul > li{
  display: inline-block;         /* ключевой трюк для columns */
  width: 100%;
  break-inside: avoid;
  margin: 0 0 16px;
}

/* вложенные списки со ссылками */
.mega-right .submenu-block ul ul{
  gap: 4px 12px;         /* было 8px 16px */
  margin-top: 6px;       /* было 12px */
  margin-left: 14px;     /* было 16px */
  font-size: 14px;       /* было 14px */
  line-height: 1.35;
}

/* сами ссылки — чуть плотнее по высоте строки */
.mega-right .submenu-block a{
  line-height: 1.35;
}

.mega-right .submenu-block ul ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0px 0px;     /* было 8px 16px */
  margin-left: 20px; /* чуть компактнее */
  margin-top: 6px;   /* было 12px */
  padding: 0;
  font-size: 14px;   /* можно чуть меньше */
}



.mega-right .submenu-block ul ul li {
  display: inline-flex;
  /* ведём себя как inline-block, но с гибкостью */
  white-space: nowrap;
  /* не ломаем слова */;
}

.mega-right .submenu-block a {
  color: #444;
  text-decoration: none;
}

.mega-right .submenu-block a:hover {
  color: #ff6a00;
  text-decoration: underline;
}

/* ========== Mobile ========== */
.burger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  line-height: 0;
}

.burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Анимация превращения в крестик при открытом меню */
.burger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* На мобилке показываем */
@media (max-width: 992px) {
  .burger { display: block;}
  .menu-primary, .menu-secondary{ display: none; } 
  .mobile-menu .menu-primary, .mobile-menu .menu-secondary{ display: block; } 
}


.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 900;
  display: none;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100%;
  background: #222;
  color: #fff;
  transition: left .3s ease;
  z-index: 1000;
  padding: 20px 16px;
  overflow-y: auto;
}

.mobile-menu.open {
  left: 0;
}

/* === Mobile Menu Navigation Reset === */
.mobile-menu nav {
  margin: 0;
  padding: 0;
  background: none;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;      /* убираем flex из десктопа */
}

.mobile-menu ul li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-menu ul li a {
  display: block;
  padding: 10px 8px;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
}

.mobile-menu ul li a:hover {
  background: rgba(255,255,255,0.08);
  text-decoration: none;
}

/* Вложенное mega-menu в мобильном виде */
.mobile-menu .mega-menu {
  position: static;       /* убираем absolute */
  transform: none;
  width: 100%;
  max-width: 100%;
  box-shadow: none;
  border-radius: 0;
  padding: 10px 0;
  display: none;          /* скрыто по умолчанию */
  flex-direction: column;
  background: #333;       /* тёмный фон под мобильное меню */
}

.mobile-menu .mega-menu.open {
  display: block;
}

.mobile-menu .mega-left {
  flex: none;
  background: none;
  padding: 0;
}

.mobile-menu .mega-left li a {
  padding: 10px 12px;
  font-size: 14px;
  color: #fff !important;
}

.mobile-menu .mega-right {
  flex: none;
  padding-left: 12px;
}

.mobile-menu .mega-right .submenu-block h3 {
  font-size: 14px;
  margin: 8px 0;
  color: #f7f7f7;
}

.mobile-menu .mega-right .submenu-block > ul {
  gap: 6px;
}

.mobile-menu .mega-right .submenu-block ul ul {
  margin-left: 12px;
  gap: 6px;
  font-size: 13px;
}


.mobile-menu a {
  color: #fff;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.mobile-menu .btn.proposal {
  display: block;
  text-align: center;
  margin-top: 10px;
}

@media (max-width: 992px) {
  .top-bar .link-callback, .top-bar .right, .top-bar .email,
  .search-block,
  .btn.proposal { display: none !important;}

  .top-bar{ padding: 5px 0; }

  .burger {
    display: block;
  }

}

/* ========== Article / Content ========== */
.breadcrumbs {
  font-size: 14px;
  color: #666;
  margin: 12px 0 24px;
}

.breadcrumbs a {
  color: #0a63a7;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span {
  color: #999;
}

.breadcrumbs {
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none; /* убираем скроллбар */
}
.breadcrumbs::-webkit-scrollbar {
  display: none;
}

.article {
  padding: 0 16px 32px 0;
  margin: 0;
}

.article h1 {
  font-size: 30px;
  margin: 6px 0 14px;
}

.article h2 {
  font-size: 22px;
  margin: 20px 0 10px;
}

.article p {
  margin: 10px 0;
}

.article ul, .article ol {
  padding-left: 18px;
  margin: 8px 0 8px 10px;
}

.article li {
  margin: 6px 0;
}

/* ========== Footer ========== */
footer {
  background: #0e1114;
  color: #cfd6de;
  margin-top: 32px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 20px;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 16px;
}

.footer-col a {
  color: #cfd6de;
}

.footer-col a:hover {
  text-decoration: underline;
}

.disclaimer {
  font-size: 12px;
  color: #9aa3ad;
  margin-top: 10px;
}

/* ========== Helpers ========== */
.hide {
  display: none !important;
}

.show {
  display: block !important;
}


#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: #ff6a00;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: none; /* скрыта по умолчанию */
  align-items: center;
  justify-content: center;
  z-index: 1100;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#scrollTopBtn:hover {
  background: #e55a00;
  transform: translateY(-3px);
}


.cta-block {
  background: #f7f7f7;
  padding: 50px 16px;
  text-align: center;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.cta-block .container { display: block; }

.cta-block h2 {
  font-size: 26px;
  margin-bottom: 12px;
  color: #222;
}

.cta-block p {
  font-size: 16px;
  color: #555;
  margin-bottom: 28px;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.cta-form input,
.cta-form textarea {
  width: 100%;
  padding: 20px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  resize: vertical;
}

.cta-form textarea {
  min-height: 200px;
}

.cta-form .btn {
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  background: #ff3b2e;
  color: #fff;
  border: none;
  cursor: pointer;
}

.cta-form .btn:hover {
  filter: brightness(0.96);
}

.file-upload {
  display: inline-block;
  cursor: pointer;
  padding: 10px 16px;
  border: 1px dashed #aaa;
  border-radius: 6px;
  background: #fff;
  font-size: 15px;
  color: #555;
  transition: all 0.3s ease;
}

.file-upload:hover {
  border-color: #ff6a00;
  color: #ff6a00;
}

.file-upload input[type="file"] {
  display: none;
}

#fileList {
  margin-top: 8px;
  padding-left: 18px;
  font-size: 14px;
  color: #444;
}

#fileList li {
  margin: 4px 0;
  list-style: disc;
}

#fileList .remove-file {
  cursor: pointer;
  color: #c00;
  font-size: 14px;
  margin-left: 8px;
  transition: color 0.2s ease;
}

#fileList .remove-file:hover {
  color: #ff0000;
}

.reviews-block {
  background: #fafafa;
  padding: 60px 16px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  text-align: center;
}


.reviews-block h2 {
  font-size: 26px;
  margin-bottom: 28px;
  color: #222;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-items: center;
}

.reviews-grid .review {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  background: #fff;
}

.reviews-grid .review img {
  width: 100%;
  height: auto;
  display: block;
}

.reviews-grid .review:hover {
  transform: scale(1.03);
}

.advantages {
  background: #fafafa;
  padding: 70px 16px;
  text-align: center;
}

.advantages h2 {
  font-size: 32px;
  margin-bottom: 50px;
  color: #111;
  font-weight: 700;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.adv-item {
  background: #fff;
  border-radius: 14px;
  padding: 28px 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.adv-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}

.adv-number {
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(90deg, #ff7a00, #ff3b2e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}

.adv-item p {
  font-size: 16px;
  color: #444;
  line-height: 1.5;
  margin: 0;
}


.cities-block {
  background: #f9f9f9;
  padding: 30px 16px;
  border-top: 1px solid #eee;
}

.cities-block h2 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 18px;
  color: #222;
}

.cities-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px; /* компактные отступы */
  max-width: 1000px;
  margin: 0 auto;
}

.cities-list a {
  font-size: 14px;
  color: #444;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.cities-list a:hover {
  color: #ff6a00;
  text-decoration: underline;
}

.footer-links {
  background: #1a1d21;
  color: #cfd6de;
  padding: 40px 16px;
  border-top: 1px solid #333;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-links h4 {
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 600;
}

.footer-links h4 a {
  color: #fff;
  text-decoration: none;
}

.footer-links h4 a:hover {
  color: #ff6a00;
  text-decoration: underline;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin: 6px 0;
}

.footer-links ul li a {
  color: #cfd6de;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links ul li a:hover {
  color: #ff6a00;
  text-decoration: underline;
}


/* ===== Sidebar Services ===== */
/* Контейнер для статьи и бокового блока */
.content-wrapper {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
  padding: 0 16px 0 0;
}
@media (max-width: 1200px) { 
  .container {
    padding: 0 10px;
  }
}


/* Статья занимает основное место */
.content-wrapper .article {
  flex: 1 1 70%;
}

/* Боковой блок */
.sidebar-services {
  flex: 0 0 260px;
  align-self: flex-start;
  top: 20px;      
  height: fit-content;
}

.sidebar-services h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #222;
}

.sidebar-services ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-services ul li {
  margin: 8px 0;
}

.sidebar-services ul li a {
  color: #0a63a7;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sidebar-services ul li a:hover {
  color: #ff6a00;
  text-decoration: underline;
}

/* На мобильных боковой блок убираем */
@media (max-width: 992px) {
  .content-wrapper {
    flex-direction: column;
  }

  .sidebar-services {
    display: none;
  }
}


/* ===== Оглавление статьи ===== */
.article-toc {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;

  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 20px;
  margin: 20px 0;
}

.article-toc .toc-content {
  flex: 1;
}

.article-toc h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #222;
}

.article-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-toc ul li {
  margin: 6px 0;
}

.article-toc ul li a {
  font-size: 15px;
  color: #0a63a7;
  text-decoration: none;
}

.article-toc ul li a:hover {
  text-decoration: underline;
  color: #ff6a00;
}

/* Картинка справа */

@media (max-width: 992px) {
    /* Картинка справа */
    .toc-image {
      flex: 0 0 160px; /* фиксированная ширина */
    }
}
@media (max-width: 500px) {
    /* Картинка справа */
    .toc-image {
      display: none;
    }
}
.toc-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: zoom-in;
}

.toc-image img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}


/* ===== Адаптация footer-links для мобильной версии ===== */
@media (max-width: 768px) {
  .footer-links {
    padding: 30px 12px;
    text-align: center;
  }

  .footer-links-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
  }

  .footer-col {
    width: 100%;
    max-width: 340px;
  }

  .footer-links h4 {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .footer-links ul li a {
    font-size: 13px;
    display: inline-block;
    padding: 4px 0;
  }

  /* Добавим визуальное разделение между колонками */
  .footer-col:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
  }
}


/* ===== Article content blocks ===== */
.article img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 14px 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}


.article .objects_types ul {
  margin: 0;
  padding-left: 18px;
}

/* ===== Price block + table ===== */
.article .price {
  margin: 18px 0;
  padding: 16px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.article .price table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.article .price th,
.article .price td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.article .price th {
  background: #f7f7f7;
  font-weight: 700;
  color: #222;
}

/* Горизонтальный скролл таблицы на мобильных */
@media (max-width: 768px) {
  .article .price table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .article .price th,
  .article .price td {
    padding: 10px 8px;
    font-size: 14px;
  }
}

/* ===== Connect (call-to-action inside article) ===== */
.article .connect {
  margin: 18px 0;
  padding: 16px;
  background: #fff7f0;
  border: 1px solid #ffd9bf;
  border-radius: 12px;
}

.article .connect a {
  font-weight: 600;
  white-space: nowrap;
}

/* ===== FAQ ===== */
.article .faq {
  margin: 22px 0;
  padding: 16px;
  background: #f9fafb;
  border: 1px solid #eee;
  border-radius: 12px;
}

.article .faq ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.article .faq li {
  padding: 12px 12px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  margin: 10px 0;
}

.article .faq li strong {
  display: block;
  color: #222;
  margin-bottom: 6px;
}

/* ===== Related articles list ===== */
.article .articles {
  margin: 22px 0;
  padding: 16px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
}

.article .articles ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

@media (min-width: 992px) {
  .article .articles ul {
    columns: 2;
    column-gap: 28px;
  }
  .article .articles li {
    break-inside: avoid;
  }
}

/* ===== Scoped typography for article content blocks (avoids global overrides) ===== */
.article .first {
  margin: 16px 0;
  padding: 14px 16px;
  background: #f7f7f7;
  border: 1px solid #eee;
  border-left: 4px solid #ff6a00;
  border-radius: 10px;
  margin-top: 0;
}

.article .first p:first-of-type {
  font-size: 17px;
  line-height: 1.75;
}

/* Bullet styling only inside article */
.article ul {
  list-style: none;
  padding-left: 0;
  margin: 8px 0 8px 20px;
}

.article ul li {
  position: relative;
  padding-left: 22px;
}

.article ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #ff6a00;
  border-radius: 50%;
}

/* Keep ordered lists readable */
.article ol {
  padding-left: 18px;
  margin: 8px 0 8px 10px;
}


/* ===== Tables inside article content ===== */
.article table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 14px 0 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.article table thead th {
  background: #f7f7f7;
  font-weight: 700;
  color: #111827;
  border-bottom: 1px solid #e5e7eb;
}

.article table th,
.article table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 12px;
  font-size: 15px;
  line-height: 1.55;
  color: #374151;
}

.article table tbody tr + tr td {
  border-top: 1px solid #f0f0f0;
}

/* Лёгкое “зебра” для читаемости */
.article table tbody tr:nth-child(even) td {
  background: #fcfcfd;
}

/* Ссылки внутри таблиц */
.article table a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(17, 24, 39, 0.25);
}

.article table a:hover {
  border-bottom-color: rgba(17, 24, 39, 0.8);
}

/* Мобильная версия: таблица скроллится по горизонтали */
@media (max-width: 768px) {
  .article table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .article table th,
  .article table td {
    white-space: nowrap;
    padding: 10px 10px;
    font-size: 14px;
  }
}



/* ===== FAQ inside article ===== */
.article .faq {
  margin: 26px 0;
  padding: 18px 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
}

.article .faq h2 {
  margin: 0 0 14px;
}

/* Список без маркеров */
.article .faq ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Карточка вопроса */
.article .faq li {
  margin: 10px 0;
  padding: 14px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;

  /* на случай глобальных “точек” для .article ul li::before */
  position: relative;
}

/* отключаем любые псевдомаркеры */
.article .faq li::before {
  content: none !important;
}

/* Вопрос */
.article .faq li > strong {
  display: block;
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
  color: #111827;
}

/* Ответ */
.article .faq li {
  font-size: 15.5px;
  line-height: 1.65;
  color: #374151;
}

/* Разделение внутри li если есть <br> */
.article .faq li br {
  display: block;
  content: "";
  margin-top: 6px;
}

/* Лёгкий hover на десктопе */
@media (hover: hover) {
  .article .faq li:hover {
    background: #ffffff;
    border-color: #d1d5db;
    box-shadow: 0 10px 22px rgba(0,0,0,0.05);
  }
}

/* Мобильная */
@media (max-width: 768px) {
  .article .faq {
    padding: 14px 12px;
    border-radius: 14px;
  }
  .article .faq li {
    padding: 12px 12px;
    border-radius: 12px;
  }
  .article .faq li > strong {
    font-size: 15px;
  }
}


/* ===== Fix "сжатых" шрифтов в форме заявки ===== */
.cta-form input,
.cta-form textarea {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;          /* было 15px */
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.2px;
  color: #111827;
}

/* placeholder */
.cta-form input::placeholder,
.cta-form textarea::placeholder {
  color: #6b7280;
  font-weight: 400;
  letter-spacing: 0.2px;
}

/* чуть приятнее фокус */
.cta-form input:focus,
.cta-form textarea:focus {
  outline: none;
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

/* ===== CTA button: "Отправить заявку" ===== */
.cta-form button,
.cta-form .btn,
.cta-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;

  padding: 14px 18px;
  border: none;
  border-radius: 14px;

  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;

  color: #fff;
  background: linear-gradient(180deg, #ff4a3d 0%, #ff2f2a 100%);
  box-shadow: 0 12px 24px rgba(255, 47, 42, 0.22);

  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

/* hover */
@media (hover: hover) {
  .cta-form button:hover,
  .cta-form .btn:hover,
  .cta-form input[type="submit"]:hover {
    filter: brightness(1.03);
    box-shadow: 0 14px 30px rgba(255, 47, 42, 0.28);
    transform: translateY(-1px);
  }
}

/* active */
.cta-form button:active,
.cta-form .btn:active,
.cta-form input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 10px 18px rgba(255, 47, 42, 0.20);
}

/* focus (доступность) */
.cta-form button:focus-visible,
.cta-form .btn:focus-visible,
.cta-form input[type="submit"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.14), 0 12px 24px rgba(255, 47, 42, 0.22);
}

/* disabled (если есть) */
.cta-form button:disabled,
.cta-form input[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ===== OVERRIDE кнопки заявки ===== */
.cta-form button,
.cta-form input[type="submit"] {
  background: #111827 !important;
  color: #ffffff !important;
  border: none !important;

  min-height: 56px !important;
  border-radius: 14px !important;

  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px !important;

  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.28) !important;
  transition: all 0.18s ease !important;
}

/* hover */
.cta-form button:hover,
.cta-form input[type="submit"]:hover {
  background: #1f2937 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.35) !important;
}


/* ===== Blocks grid ===== */

.blocks {
  list-style: none;
  padding: 0;
  margin: 30px 0;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* Карточка */
.blocks li {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

/* hover */
@media (hover: hover) {
  .blocks li:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.12);
  }
}

/* Ссылка-заголовок */
.blocks > li > a {
  display: block;
  padding: 16px 16px 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  min-height: 52px;
}

/* Картинка */
.blocks .img {
  padding: 16px;
}

.blocks .img span {
  display: block;
  border-radius: 12px;
  overflow: hidden;
}

.blocks .img img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* zoom картинки */
@media (hover: hover) {
  .blocks li:hover img {
    transform: scale(1.05);
  }
}

/* ===== Адаптив ===== */

@media (max-width: 1200px) {
  .blocks {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (max-width: 600px) {
  .blocks {
    grid-template-columns: 1fr;
  }

  .blocks .img img {
    height: 200px;
  }
}
/* ===== Blocks (services) inside article — OVERRIDE ===== */
.article .blocks{
  list-style: none !important;
  margin: 32px 0 !important;
  padding: 0 !important;

  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 26px !important;
}

/* карточка */
.article .blocks > li{
  position: relative !important;
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 20px !important;
  padding: 22px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06) !important;
  transition: transform .22s ease, box-shadow .22s ease !important;
}

/* ВАЖНО: отключаем “оранжевую точку” из .article ul li::before */
.article .blocks > li::before{
  content: none !important;
}

/* аккуратный верхний акцент */
.article .blocks > li::after{
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  height: 3px !important;
  width: 100% !important;
  background: #111827 !important;
}

/* заголовок */
.article .blocks > li > a{
  display: block !important;
  margin: 0 0 14px !important;
  padding: 0 !important;

  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  color: #111827 !important;
  text-decoration: none !important;

  min-height: 48px !important;
}

/* блок изображения */
.article .blocks .img{
  padding: 0 !important;
  margin: 0 !important;
}

.article .blocks .img span{
  display: block !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

.article .blocks .img img{
  width: 100% !important;
  height: 170px !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform .35s ease !important;
}

/* hover */
@media (hover:hover){
  .article .blocks > li:hover{
    transform: translateY(-6px) !important;
    box-shadow: 0 18px 40px rgba(0,0,0,0.12) !important;
  }
  .article .blocks > li:hover img{
    transform: scale(1.06) !important;
  }
}

/* адаптив */
@media (max-width: 1200px){
  .article .blocks{ grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 900px){
  .article .blocks{ grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px){
  .article .blocks{ grid-template-columns: 1fr !important; }
  .article .blocks .img img{ height: 200px !important; }
}


/* ===== Первый блок ===== */


.first img {
    float: right;
    max-width: 38%;          /* ограничиваем ширину */
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    margin: 0 0 15px 24px;   /* отступ слева и снизу */
}

/* Чтобы родитель не "схлопывался" */
.first::after {
    content: "";
    display: block;
    clear: both;
}

/* ===== Адаптив ===== */

@media (max-width: 900px) {
    .first img {
        display: none;
    }
}


@media (max-width: 590px) {

  .content-wrapper {
    flex-direction: column;
    gap: 0;
    padding: 0 12px;
  }

  .content-wrapper .article {
    flex: 1 1 auto;
    width: 100%;
  }

}

@media (max-width: 590px) {
  .article {
    padding: 0 0 24px 0;
  }
}


body {
  overflow-x: hidden;
}

.article {
  overflow-wrap: break-word;
  word-break: break-word;
}


.connect a {
    text-decoration: underline;
}




/* ===== REVIEWS NEW ===== */

.reviews {
  text-align: left;
}

.reviews__head h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 22px;
  margin-top: 25px;
}

.review-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  border: 1px solid #eee;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
  transition: 0.25s;
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.12);
}

.review-card__top {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

.review-card__logo {
  width: 44px;
  height: 44px;
  background: #111827;
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.review-card__title {
  font-weight: 700;
  font-size: 16px;
}

.review-card__sub {
  font-size: 13px;
  color: #666;
}

.review-card__text {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.review-card__btn {
  padding: 10px 16px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.review-card__btn:hover {
  background: #1f2937;
}

/* Modal */

.review-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.review-modal.active {
  display: block;
}

.review-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.review-modal__dialog {
  position: relative;
  width: 90%;
  max-width: 900px;
  margin: 50px auto;
  background: #fff;
  border-radius: 18px;
  padding: 20px;
}

.review-modal__close {
  position: absolute;
  right: 12px;
  top: 12px;
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
}

.review-modal__imgwrap img {
  width: 100%;
  height: auto;
  margin-top: 15px;
}

/* ===== Reviews modal: прокрутка внутри ===== */
.review-modal__dialog{
  max-height: calc(100vh - 24px);
  margin: 12px auto;
  overflow: hidden;              /* чтобы скролл был внутри imgwrap */
  display: flex;
  flex-direction: column;
}

.review-modal__title{
  flex: 0 0 auto;
}

.review-modal__imgwrap{
  flex: 1 1 auto;
  overflow: auto;                /* ВОТ СКРОЛЛ */
  -webkit-overflow-scrolling: touch;
  max-height: calc(100vh - 140px); /* запас под заголовок/кнопку закрыть */
  padding-right: 6px;            /* чтобы скролл не “прилипал” */
}

.review-modal__imgwrap img{
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

/* ===== Reviews ===== */
.reviews{ text-align:left; }
.reviews__head h2{ font-size:26px; margin:0 0 8px; color:#222; }
.reviews__head p{ margin:0; color:#666; }

.reviews__grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap:22px;
  margin-top:24px;
}

.review-card{
  background:#fff;
  border:1px solid #eee;
  border-radius:16px;
  padding:22px;
  box-shadow:0 8px 22px rgba(0,0,0,0.06);
  transition: .25s;
}
.review-card:hover{
  transform: translateY(-6px);
  box-shadow:0 18px 36px rgba(0,0,0,0.12);
}

.review-card__top{ display:flex; gap:14px; margin-bottom:14px; }
.review-card__logo{
  width:44px; height:44px; border-radius:12px;
  background:#111827; color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-weight:800;
}
.review-card__title{ font-weight:800; font-size:16px; }
.review-card__sub{ font-size:13px; color:#666; margin-top:2px; }
.review-card__text{ font-size:14px; line-height:1.6; margin:10px 0 14px; }

.review-card__btn{
  padding:10px 16px;
  border-radius:10px;
  background:#111827;
  color:#fff;
  border:none;
  cursor:pointer;
  font-weight:700;
}
.review-card__btn:hover{ background:#1f2937; }

.review-card.is-hidden{ display:none; }

.reviews__more{ text-align:center; margin-top:18px; }
.reviews__moreBtn{
  padding:12px 18px;
  border-radius:12px;
  border:1px solid #e5e7eb;
  background:#fff;
  cursor:pointer;
  font-weight:800;
}
.reviews__moreBtn:hover{ box-shadow:0 10px 22px rgba(0,0,0,0.08); transform: translateY(-1px); }

/* ===== Modal + scroll inside ===== */
.review-modal{ position:fixed; inset:0; display:none; z-index:9999; }
.review-modal.active{ display:block; }
.review-modal__backdrop{ position:absolute; inset:0; background:rgba(0,0,0,0.6); }

.review-modal__dialog{
  position:relative;
  width:90%;
  max-width:900px;
  max-height: calc(100vh - 24px);
  margin:12px auto;
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.review-modal__close{
  position:absolute;
  right:12px; top:10px;
  border:none; background:#fff;
  width:40px; height:40px;
  border-radius:12px;
  font-size:24px;
  cursor:pointer;
}

.review-modal__title{
  padding:16px 18px 10px;
  font-weight:900;
}

.review-modal__imgwrap{
  padding:0 18px 18px;
  flex: 1 1 auto;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}

.review-modal__imgwrap img{
  width:100%;
  height:auto;
  display:block;
  border-radius:12px;
  border:1px solid rgba(0,0,0,0.08);
}

/* ===== Documents block ===== */
.docs-block{
  background:#fafafa;
  padding:60px 16px;
  border-top:1px solid #eee;
  border-bottom:1px solid #eee;
}

.docs-block .container{ display:block; }

.docs__head{
  text-align:center;
  margin-bottom:26px;
}
.docs__head h2{
  font-size:26px;
  margin:0 0 8px;
  color:#222;
}
.docs__head p{
  margin:0;
  color:#666;
}

.docs__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:22px;
  margin-top:22px;
}

.doc-card{
  position:relative;
  display:block;
  background:#fff;
  border:1px solid #eee;
  border-radius:16px;
  padding:18px;
  box-shadow:0 8px 22px rgba(0,0,0,0.06);
  text-decoration:none;
  color:#111827;
  transition: transform .25s ease, box-shadow .25s ease;
}

@media (hover:hover){
  .doc-card:hover{
    transform: translateY(-6px);
    box-shadow:0 18px 36px rgba(0,0,0,0.12);
    text-decoration:none;
  }
}

.doc-card__badge{
  position:absolute;
  top:14px;
  left:14px;
  background:#111827;
  color:#fff;
  font-weight:800;
  font-size:12px;
  padding:6px 10px;
  border-radius:12px;
}

.doc-card__img{
  display:block;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,0.06);
}

.doc-card__img img{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
  transition: transform .35s ease;
}

@media (hover:hover){
  .doc-card:hover .doc-card__img img{
    transform: scale(1.04);
  }
}

.doc-card__title{
  display:block;
  margin-top:14px;
  font-weight:900;
  font-size:16px;
  line-height:1.3;
}

.doc-card__sub{
  display:block;
  margin-top:4px;
  font-size:13px;
  color:#666;
}

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

.docs__all{
  display:inline-block;
  padding:12px 18px;
  border-radius:12px;
  border:1px solid #e5e7eb;
  background:#fff;
  font-weight:800;
}
.docs__all:hover{
  text-decoration:none;
  box-shadow:0 10px 22px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

/* адаптив */
@media (max-width: 992px){
  .docs__grid{ grid-template-columns: repeat(2, 1fr); }
  .doc-card__img img{ height:200px; }
}
@media (max-width: 600px){
  .docs__grid{ grid-template-columns: 1fr; }
  .doc-card__img img{ height:220px; }
}


hr {
    border: none;
    height: 1px;
    background: #e5e7eb;
    margin: 40px 0;
}

/* Mobile submenu controls */
.mobile-menu .mobile-submenu li{
  position: relative;
}

.mobile-menu .mob-next,
.mobile-menu .mob-toggle{
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 18px;
  padding: 8px 10px;
  cursor: pointer;
  opacity: .9;
}

.mobile-menu .mob-toggle{
  font-size: 14px; /* ▾ чуть компактнее */
}

.mobile-menu li.has-sub > a{
  padding-right: 46px; /* место под кнопку ▾ */
}

.mobile-menu .mob-title{
  padding: 10px 8px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  opacity: .95;
}

.mobile-menu li.open > .mob-toggle{
  transform: translateY(-50%) rotate(180deg);
}

/* Подсветка "первый тап открыл, второй — переход" */
.mobile-menu li.mob-armed > a{
  opacity: 0.95;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* фиксируем ▾ относительно строки ссылки, а не всего li */
.mobile-menu li.has-sub > a{
  position: relative;
  padding-right: 46px; /* место под кнопку */
}

.mobile-menu .mob-toggle{
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 14px;
  padding: 8px 10px;
  cursor: pointer;
  opacity: .9;
}

/* чтобы прежнее позиционирование от li не влияло */
.mobile-menu .mobile-submenu li{
  position: static;
}

/* ===== Mobile contacts block ===== */

.mobile-contacts {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-phone,
.mobile-email {
  display: block;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.mobile-phone {
  font-size: 18px;
}

.mobile-phone:hover,
.mobile-email:hover {
  text-decoration: underline;
}

/* Блок со сканами отзывов */
.reviews-scans {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    margin: 30px 0;
}

/* Ссылка-карточка */
.reviews-scans a {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Миниатюра */
.reviews-scans img {
    display: block;
    width: 130px;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Hover-эффект */
.reviews-scans a:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.reviews-scans a:hover img {
    transform: scale(1.03);
}

/* Адаптив */
@media (max-width: 768px) {
    .reviews-scans {
        justify-content: center;
        gap: 15px;
    }

    .reviews-scans img {
        width: 110px;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .reviews-scans img {
        width: 95px;
        height: 140px;
    }
}


.docs-compact{
    display:flex;
    gap:30px;
    align-items:flex-start;
    margin-top:25px;
}

.docs-compact__img img{
    width:260px;
    border-radius:10px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.docs-compact__text{
    flex:1;
    font-size:15px;
    line-height:1.6;
}

.docs-compact__info{
    margin-top:15px;
    color:#555;
}

.docs-btn{
    display:inline-block;
    margin-top:18px;
    padding:10px 18px;
    border-radius:6px;
    background:#2c7be5;
    color:#fff;
    text-decoration:none;
    font-size:14px;
    transition:.2s;
}

.docs-btn:hover{
    background:#1f5fb7;
}

/* мобильная версия */

@media (max-width:700px){

.docs-compact{
    flex-direction:column;
}

.docs-compact__img img{
    width:100%;
    max-width:320px;
}

}


/* ===== Objects gallery reset for article ===== */

.article .objects-gallery,
.objects-gallery {
  margin: 30px 0;
}

.article .objects-gallery * {
  box-sizing: border-box;
}

.article .objects-gallery img,
.article .objects-gallery a img {
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  max-width: none;
}

.article .objects-gallery ul,
.article .objects-gallery li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.article .objects-gallery li::before {
  content: none !important;
}

.objects-gallery__head {
  max-width: 900px;
  margin: 0 0 24px;
}

.objects-gallery__head h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.25;
}

.objects-gallery__head p {
  margin: 0;
  color: #555;
  line-height: 1.65;
}

.objects-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.obj-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.obj-card__image {
  display: block;
  height: 230px;
  overflow: hidden;
  background: #f3f3f3;
}

.obj-card__image:hover {
  text-decoration: none;
}

.obj-card__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.obj-card__body {
  padding: 18px;
}

.obj-card__body h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
  color: #111827;
}

.obj-card__body p {
  margin: 0 0 16px;
  color: #444;
  line-height: 1.6;
}

.obj-card__btn {
  display: inline-block;
  padding: 11px 16px;
  border-radius: 10px;
  background: #111827;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
}

.obj-card__btn:hover {
  background: #1f2937;
  color: #fff !important;
  text-decoration: none !important;
}

.obj-hidden {
  display: none;
}

@media (max-width: 1100px) {
  .objects-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .objects-gallery__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .obj-card__image {
    height: 210px;
  }

  .obj-card__body h3 {
    font-size: 18px;
  }
}

.article .project-page,
.project-page {
  margin: 30px 0;
}

.article .project-page * {
  box-sizing: border-box;
}

.article .project-page img,
.article .project-page a img {
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.project-page__top {
  margin-bottom: 26px;
}

.project-page__top h1 {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.2;
}

.project-page__lead {
  margin: 0;
  max-width: 900px;
  font-size: 18px;
  line-height: 1.65;
  color: #4b5563;
}

.project-page__main-image {
  margin-bottom: 28px;
}

.project-page__main-image a {
  display: block;
  overflow: hidden;
  border-radius: 18px;
}

.project-page__main-image img {
  display: block;
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  border-radius: 18px;
}

.project-page__info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.project-page__info-item {
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f9fafb;
}

.project-page__label {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6b7280;
}

.project-page__value {
  color: #111827;
  line-height: 1.5;
}

.project-page__text {
  margin-bottom: 34px;
}

.project-page__text h2,
.project-page__gallery h2 {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.25;
}

.project-page__text p {
  margin: 0 0 16px;
  line-height: 1.75;
  color: #374151;
}

.project-page__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-page__thumb {
  display: block;
  height: 260px;
  overflow: hidden;
  border-radius: 16px;
  background: #f3f4f6;
}

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

.project-page__bottom {
  margin-top: 32px;
  padding: 22px;
  border-radius: 18px;
  background: #f9fafb;
}

.project-page__bottom p {
  margin: 0 0 12px;
}

.project-page__bottom p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .project-page__info,
  .project-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .project-page__top h1 {
    font-size: 28px;
  }

  .project-page__lead {
    font-size: 16px;
  }

  .project-page__info,
  .project-page__grid {
    grid-template-columns: 1fr;
  }

  .project-page__thumb {
    height: 220px;
  }
}

.article .projects-list-page,
.projects-list-page {
  margin: 30px 0;
}

.article .projects-list-page * {
  box-sizing: border-box;
}

.article .projects-list-page img,
.article .projects-list-page a img {
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.projects-list-page__top {
  margin-bottom: 28px;
}

.projects-list-page__top h1 {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.2;
}

.projects-list-page__lead {
  margin: 0;
  max-width: 920px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.65;
}

.projects-list-page__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.project-card__image {
  display: block;
  height: 240px;
  overflow: hidden;
  background: #f3f4f6;
}

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

.project-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
}

.project-card__type {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6b7280;
}

.project-card__body h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.3;
}

.project-card__body h2 a {
  color: #111827;
  text-decoration: none;
}

.project-card__body h2 a:hover {
  text-decoration: underline;
}

.project-card__body p {
  margin: 0 0 18px;
  color: #374151;
  line-height: 1.6;
}

.project-card__btn {
  display: inline-block;
  margin-top: auto;
  padding: 11px 16px;
  border-radius: 10px;
  background: #111827;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
}

.project-card__btn:hover {
  background: #1f2937;
  color: #fff !important;
}

.projects-list-page__bottom {
  margin-top: 30px;
  padding: 22px;
  border-radius: 18px;
  background: #f9fafb;
}

.projects-list-page__bottom p {
  margin: 0 0 12px;
}

.projects-list-page__bottom p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .projects-list-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .projects-list-page__top h1 {
    font-size: 28px;
  }

  .projects-list-page__lead {
    font-size: 16px;
  }

  .projects-list-page__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-card__image {
    height: 220px;
  }

  .project-card__body h2 {
    font-size: 20px;
  }
}

.objects-short{
margin:40px 0;
}

.objects-short__head{
margin-bottom:20px;
}

.objects-short__head h2{
margin:0 0 10px;
font-size:28px;
}

.objects-short__head p{
margin:0;
color:#555;
max-width:800px;
}

.objects-short__grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:18px;
margin-top:20px;
}

.objects-short-card{
display:block;
text-decoration:none;
border-radius:10px;
overflow:hidden;
background:#fff;
box-shadow:0 6px 16px rgba(0,0,0,0.08);
transition:transform .2s;
}

.objects-short-card:hover{
transform:translateY(-3px);
}

.objects-short-card img{
width:100%;
height:160px;
object-fit:cover;
display:block;
}

.objects-short-card span{
display:block;
padding:10px;
font-weight:600;
font-size:14px;
color:#222;
}

.objects-short__bottom{
margin-top:20px;
}

.objects-short__btn{
display:inline-block;
padding:10px 16px;
background:#111;
color:#fff !important;
text-decoration:none;
border-radius:6px;
font-weight:600;
}

.objects-short__btn:hover{
background:#333;
}

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

@media (max-width:500px){
.objects-short__grid{
grid-template-columns:1fr;
}
}


.article .objects-cta,
.objects-cta{
  margin:40px 0;
}

.article .objects-cta *{
  box-sizing:border-box;
}

.article .objects-cta img,
.article .objects-cta a img{
  margin:0 !important;
  box-shadow:none !important;
  border-radius:0 !important;
}

.objects-cta{
  padding:28px;
  border-radius:24px;
  background:linear-gradient(180deg,#f8fafc 0%,#eef2f7 100%);
  border:1px solid #e5e7eb;
  box-shadow:0 10px 30px rgba(15,23,42,.06);
}

.objects-cta__top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:24px;
}

.objects-cta__text{
  max-width:760px;
}

.objects-cta__label{
  display:inline-block;
  margin-bottom:10px;
  padding:6px 10px;
  border-radius:999px;
  background:#111827;
  color:#fff;
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.objects-cta__text h2{
  margin:0 0 12px;
  font-size:32px;
  line-height:1.15;
  color:#111827;
}

.objects-cta__text p{
  margin:0;
  color:#4b5563;
  line-height:1.7;
  font-size:17px;
}

.objects-cta__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 18px;
  border-radius:12px;
  background:#111827;
  color:#fff !important;
  text-decoration:none !important;
  font-weight:700;
  white-space:nowrap;
  transition:transform .2s ease, background .2s ease;
}

.objects-cta__btn:hover{
  background:#1f2937;
  transform:translateY(-1px);
}

.objects-cta__grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}

.objects-cta-card{
  position:relative;
  display:block;
  min-height:300px;
  overflow:hidden;
  border-radius:20px;
  text-decoration:none;
  background:#dfe5ec;
  box-shadow:0 8px 24px rgba(15,23,42,.08);
  text-decoration: none;
}
.objects-cta-card:hover{
  text-decoration: none !important;
}

.objects-cta-card__image{
  position:absolute;
  inset:0;
  display:block;
}

.objects-cta-card__image img{
  width:100% !important;
  height:100% !important;
  display:block;
  object-fit:cover;
  transition:transform .5s ease;
}

.objects-cta-card__overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(17,24,39,.08) 0%,rgba(17,24,39,.72) 100%);
}

.objects-cta-card__content{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  min-height:300px;
  padding:18px;
}

.objects-cta-card__type{
  display:inline-block;
  align-self:flex-start;
  margin-bottom:10px;
  padding:5px 9px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  backdrop-filter:blur(4px);
  color:#fff;
  font-size:12px;
  font-weight:700;
  line-height:1.2;
}

.objects-cta-card__title{
  display:block;
  color:#fff;
  font-size:22px;
  font-weight:700;
  line-height:1.25;
  text-shadow:0 2px 10px rgba(0,0,0,.18);
}

.objects-cta-card__more{
  display:inline-block;
  margin-top:10px;
  color:rgba(255,255,255,.92);
  font-size:14px;
  font-weight:600;
}

.objects-cta-card:hover .objects-cta-card__image img{
  transform:scale(1.06);
}

@media (max-width:1200px){
  .objects-cta__grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:800px){
  .objects-cta{
    padding:20px;
    border-radius:20px;
  }

  .objects-cta__top{
    flex-direction:column;
    align-items:flex-start;
    margin-bottom:18px;
  }

  .objects-cta__text h2{
    font-size:28px;
  }

  .objects-cta__text p{
    font-size:16px;
  }
}

@media (max-width:560px){
  .objects-cta__grid{
    grid-template-columns:1fr;
  }

  .objects-cta-card,
  .objects-cta-card__content{
    min-height:260px;
  }

  .objects-cta-card__title{
    font-size:20px;
  }
}


.hero-vent {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
  padding: 34px;
  margin: 10px 0 30px;
  background:
    radial-gradient(circle at top left, rgba(255,106,0,0.10), transparent 34%),
    linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
  overflow: hidden;
}

.hero-vent__badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
}

.hero-vent h1 {
  margin: 0 0 16px;
  font-size: 42px;
  line-height: 1.12;
  color: #111827;
}

.hero-vent__lead {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.7;
  color: #4b5563;
  max-width: 720px;
}

.hero-vent__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.hero-vent__feature {
  padding: 14px 16px;
  background: rgba(255,255,255,0.88);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.hero-vent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-vent__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none !important;
  transition: all .2s ease;
}

.hero-vent__btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #ff6a00 0%, #e85d04 100%);
  box-shadow: 0 14px 28px rgba(232, 93, 4, 0.25);
}

.hero-vent__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(232, 93, 4, 0.32);
}

.hero-vent__btn--secondary {
  color: #111827;
  background: #fff;
  border: 1px solid #d1d5db;
}

.hero-vent__btn--secondary:hover {
  background: #f9fafb;
}

.hero-vent__media {
  position: relative;
}

.hero-vent__media a {
  display: block;
  border-radius: 22px;
  overflow: hidden;
}

.hero-vent__media img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.hero-vent__note {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 14px 16px;
  background: rgba(17, 24, 39, 0.88);
  color: #fff;
  border-radius: 16px;
  backdrop-filter: blur(6px);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 992px) {
  .hero-vent {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .hero-vent h1 {
    font-size: 32px;
  }

  .hero-vent__lead {
    font-size: 16px;
  }

  .hero-vent__media img {
    height: 320px;
  }
}

@media (max-width: 640px) {
  .hero-vent__features {
    grid-template-columns: 1fr;
  }

  .hero-vent h1 {
    font-size: 28px;
  }

  .hero-vent__actions {
    flex-direction: column;
  }

  .hero-vent__btn {
    width: 100%;
  }
}


/**************/


/* ===== Первый экран статьи без grid: улучшенная плашка ===== */

.article .first{
  position: relative;
  padding: 32px;
  margin: 0 0 32px;

  background:
    radial-gradient(circle at top left, rgba(255,106,0,0.10), transparent 34%),
    linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(17,24,39,.08);

  overflow: hidden;
}

/* отключаем старую оранжевую полоску, если была */
.article .first::before{
  display: none;
}

/* основной текст */
.article .first p{
  color: #374151;
  line-height: 1.75;
  font-size: 16px;
}

/* первый абзац чуть крупнее */
.article .first p:first-of-type{
  margin-top: 0;
  font-size: 18px;
  line-height: 1.75;
  color: #4b5563;
}

/* картинка остается справа, как было */
.article .first > a.Pervofoto,
.article .first > a[data-lightbox],
.article .first > .Pervofoto{
  float: right;
  display: block;
  width: 38%;
  max-width: 420px;
  margin: 4px 0 18px 28px;

  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

/* если картинка вставлена просто img */
.article .first > img{
  float: right;
  display: block;
  width: 38%;
  max-width: 420px;
  height: 300px;
  margin: 4px 0 18px 28px;

  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

/* img внутри ссылки */
.article .first > a.Pervofoto img,
.article .first > a[data-lightbox] img,
.article .first > .Pervofoto img{
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
}

/* обнуляем старые float-стили у вложенных картинок */
.first img{
  max-width: 100%;
}

/* список делаем карточками */
.article .first ul{
  clear: both;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

/* карточки */
.article .first ul li{
  position: relative;
  margin: 0 0 14px;
  padding: 16px 18px 16px 46px;

  background: rgba(255,255,255,.88);
  border: 1px solid #d9dee5;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,.05);

  color: #1f2937;
  font-size: 15px;
  line-height: 1.6;

  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.article .first ul li:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
  border-color: #cfd6de;
}

.article .first ul li:last-child{
  margin-bottom: 0;
}

/* оранжевая галочка */
.article .first ul li::before{
  content: "";
  position: absolute;

  left: 18px;
  top: 50%;
  transform: translateY(-50%);

  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f97316;

  box-shadow: 0 0 0 4px rgba(249,115,22,.14);
}

/* если есть вложенные списки внутри li — не ломаем их */
.article .first ul li ul{
  clear: none;
  margin: 10px 0 0;
  padding-left: 18px;
  list-style: disc;
}

.article .first ul li ul li{
  margin: 6px 0 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.article .first ul li ul li::before{
  display: none;
}

/* чтобы плашка корректно обтекала float */
.article .first::after{
  content: "";
  display: block;
  clear: both;
}

/* планшеты */
@media (max-width: 1024px){
  .article .first{
    padding: 24px;
  }

  .article .first > a.Pervofoto,
  .article .first > a[data-lightbox],
  .article .first > .Pervofoto,
  .article .first > img{
    width: 42%;
    max-width: 360px;
    margin-left: 22px;
  }

  .article .first > a.Pervofoto img,
  .article .first > a[data-lightbox] img,
  .article .first > .Pervofoto img,
  .article .first > img{
    height: 250px;
  }

  .article .first p:first-of-type{
    font-size: 17px;
  }
}

/* мобильная версия */
@media (max-width: 900px){
  .article .first{
    padding: 20px;
    border-radius: 20px;
  }

  .article .first > a.Pervofoto,
  .article .first > a[data-lightbox],
  .article .first > .Pervofoto,
  .article .first > img{
    float: none;
    width: 100%;
    max-width: none;
    margin: 0 0 18px 0;
  }

  .article .first > a.Pervofoto img,
  .article .first > a[data-lightbox] img,
  .article .first > .Pervofoto img,
  .article .first > img{
    height: 240px;
  }

  .article .first p:first-of-type{
    font-size: 16px;
    line-height: 1.7;
  }

  .article .first ul{
    margin-top: 18px;
  }

  .article .first ul li{
    padding: 16px 18px 16px 42px;
    border-radius: 16px;
    font-size: 14px;
  }

.article .first ul li::before{
  content: "";
  position: absolute;

  left: 18px;
  top: 50%;
  transform: translateY(-50%);

  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f97316;

  box-shadow: 0 0 0 4px rgba(249,115,22,.14);
}
}

/* очень маленькие экраны */
@media (max-width: 480px){
  .article .first{
    padding: 16px;
    border-radius: 16px;
  }

  .article .first > a.Pervofoto img,
  .article .first > a[data-lightbox] img,
  .article .first > .Pervofoto img,
  .article .first > img{
    height: 200px;
    border-radius: 16px;
  }

  .article .first > a.Pervofoto,
  .article .first > a[data-lightbox],
  .article .first > .Pervofoto,
  .article .first > img{
    border-radius: 16px;
  }
}


/* контейнер фото справа */
.article .first a.Pervofoto,
.article .first a[data-lightbox],
.article .first > img{
  float: right;
  margin: 0 0 20px 30px;

  max-width: 320px;
  max-height: 320px;
}

/* само изображение */
.article .first a.Pervofoto img,
.article .first a[data-lightbox] img,
.article .first > img{
  display: block;

  max-width: 320px;
  max-height: 320px;

  width: auto;
  height: auto;

  border-radius: 18px;

  box-shadow: 0 16px 35px rgba(0,0,0,.12);
}


.form-message {
  padding: 28px 24px;
  border-radius: 18px;
  margin-top: 10px;
  text-align: center;
  border: 1px solid;
}

.form-message h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
}

.form-message p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.form-message--success {
  background: #f4fbf6;
  border-color: #cfe8d4;
  color: #1f5f33;
}

.form-message--error {
  background: #fff5f5;
  border-color: #ebc7c7;
  color: #8f1f1f;
}