html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-weight: 450;
}
.parallax-header {
    position: relative;
    height: 475px;
    overflow: hidden;
}
.parallax-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.background-image {
    width: 100%;
    height: 100%;
    background-image: url('/seminari/images/bag.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}
.background-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: -1;
    pointer-events: none;
}
.menu-container {
    position: absolute;
    width: 100%;
    height: 75px;
    top: 0;
    background-color: black;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.menu-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}
.desktop-menu {
    max-width: 980px;
    margin: 0 auto 0;
    padding: 10px 0;
}
.menu-list {
    list-style: none; 
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
}
.menu-item a {
    font-size: 18px;
    color: white;
    text-decoration: none;
}
.menu-item:first-child {
    margin-right: auto; /* Отталкивает остальные элементы вправо */
    transition: transform 0.3s ease; 
}

.menu-item:not(:first-child) {
    margin-left: 30px; /* Расстояние между правыми элементами */
    transition: transform 0.3s ease; 
}
.menu-item:hover {
    transform: translateY(-5px);
}
.head-container {
    position: relative;
    top: 150px;
    width: 980px;
    margin: 0 auto 0;
}
.head-title {
    position: relative;
    color: white;
    font-size: 35px;
    font-weight: 600;
    margin: 0;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
}
.head-title-mob {
    font-size: 20px;
    font-weight: 550;
    margin: 15px 0;
    position: relative;
    color: white;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
}
.org-title {
    max-width: 900px;
    color: white;
    font-size: 20px;
    font-weight: 300;
    padding: 10px 5px;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
    text-decoration: none;
}
.head-text {
    margin-top: 25px;
    margin-bottom: 10px;
    max-width: 900px;
    color: #303030;
    font-size: 18px;
    font-weight: 450;
    padding: 10px 5px;
    background: white; /* Полупрозрачный фон */
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Светлая граница */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* Мягкая тень */
    padding: 15px; /* Отступы внутри элемента */
}
.act-box {
    position: relative;
    margin-left: 15px;
    top: 15px;
    display: inline;
}
.act-button {
    position: relative;
    font-size: 18px;
    font-weight: 500;
    text-align: left;
    padding: 5px 15px;
    color: white;
    background-color: #2483dbb3;
    cursor: pointer;   
    border-radius: 25px;
    text-decoration: none;
    transition: 0.5s ease;
}
.act-button-2 {
    position: relative; 
    font-size: 18px;
    font-weight: 500;
    text-align: left;
    padding: 5px 15px;
    color: white;
    border-radius: 25px;
    margin-left: 10px;
    color: #fff;
    white-space: nowrap;
    background: rgba(80, 80, 80, 0.5);
    backdrop-filter: blur(4px);
    cursor: pointer;
    text-decoration: none;
    transition: 0.5s ease;
}

.act-button:hover {
    background-color: rgba(42, 110, 173, 0.8);
}
.act-button-2:hover {
    background: rgba(120, 120, 120, 0.5);
}

.step-box {
    position: relative;
    top: 100px;
    display: flex;
}
.step {
    position: relative;
    margin-right: 25px;
    height: 120px;
    width: 250px;
    background: rgba(255, 255, 255, 0.1); /* Полупрозрачный фон */
    backdrop-filter: blur(10px); /* Размытие фона */
    -webkit-backdrop-filter: blur(10px); /* Поддержка Safari */
    border-radius: 16px; /* Скругление углов */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Светлая граница */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* Мягкая тень */
    padding: 15px; /* Отступы внутри элемента */
    text-decoration: none;
}
.step-n {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    color: white;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
}
.step-k {
    position: relative;
    margin-top: 5px;
    font-size: 14px;
    font-weight: 300;
    color: white;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
}
.container {
    width: 920px;
    margin: 0 auto 0;
    margin-bottom: 50px;
}
.textblock {
    font-size: 16px;
    line-height: 25px;
    text-align: justify;
    color: #303030;
    margin: 15px 0;
    width: 920px;
}
h2 {
    font-size: 22px;
    font-weight: 560;
    margin: 35px 0 15px 0;
    color: #303030;
}

.centr-title {
    position: relative;
    display: block; 
    text-align: center;      /* чтобы линия была по ширине текста, а не на всю ширину блока */
    padding-bottom: 15px;
}
.centr-title::after {
    content: '';
    position: absolute;
    left: 50%;                    /* ставим начало линии в центр */
    bottom: 0;
    transform: translateX(-50%);  /* сдвигаем линию на половину её ширины влево, чтобы была по центру */
    width: 10%;                   /* или можно сделать меньше, например 60% */
    height: 2px;
    background-color: #2175C5;
}

.small-title {
    position: relative;
    display: block; 
    text-align: center;
    font-size: 16px;
    font-weight: 350;
    margin: 10px;
    color: #303030;
}

.centr-title-white {
    margin-top: 35px;
    color: white;
    position: relative;
    display: block; 
    text-align: center;      /* чтобы линия была по ширине текста, а не на всю ширину блока */
    padding-bottom: 15px;
}
.centr-title-white::after {
    content: '';
    position: absolute;
    left: 50%;                    /* ставим начало линии в центр */
    bottom: 0;
    transform: translateX(-50%);  /* сдвигаем линию на половину её ширины влево, чтобы была по центру */
    width: 10%;                   /* или можно сделать меньше, например 60% */
    height: 2px;
    background-color: white;
}
.sert-images {
    display: flex;
    justify-content: space-between;
    width: 920px;
    padding: 35px 110px;
    box-sizing: border-box;
}
.sert-image {
    position: relative;
    width: 320px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.sert-image:hover {
    transform: translateY(-10px);
}
.fa {
    display: inline-block;
    font: normal normal normal 14px / 1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
}
/* Затемнение фона */
.cert-modal {
    position: fixed;
    inset: 0;                 /* то же, что top/left/right/bottom: 0 */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;             /* выше меню, попапов и т. п. */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Класс, который будем добавлять через JS, чтобы показать окно */
.cert-modal.is-open {
    opacity: 1;
    visibility: visible;
}

/* Область затемнения (клик по ней закрывает окно) */
.cert-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: -1;
}

/* Контейнер картинки */
.cert-modal-content {
    position: relative;
    max-width: 90vw;          /* не шире 90% экрана */
    max-height: 85vh;         /* не выше 85% экрана по высоте */
    margin: 0 auto;
}

/* Сама картинка в модалке */
.cert-modal-img {
    display: block;
    max-height: 80vh;       /* высота не больше 80% экрана */
    width: auto;            /* ширина подстроится автоматически */
    height: auto;            /* важно: разрешаем высоте меняться пропорционально */
    object-fit: contain;    /* картинка не исказится, влезет целиком */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Крестик закрытия */
.cert-close-btn {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 36px;
    height: 36px;
    line-height: 28px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    background: #333;
    border: 1px solid #555;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: background 0.2s;
}
.cert-close-btn:hover {
    background: #555;
}
.cert-close-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Блокировка скролла на странице, пока модалка открыта */
body.modal-open {
    overflow: hidden;
    touch-action: none;       /* чтобы на iPhone не «гулял» экран */
}

.fixed-bg-block {
    position: relative;
    height: 650px;
    width: 100%;
    overflow: hidden;

    background-image: url('/seminari/images/bag-2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.fixed-bg-block::before {
    content: '';
    position: absolute;
    inset: 0;                 /* то же, что top/left/right/bottom: 0 */
    background: rgba(0, 0, 0, 0.4); /* чёрный с прозрачностью 40% */
    z-index: 1;                /* поверх фона, но под контентом */
}

.block-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
    text-align: center;
    padding: 0 20px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}
.fixed-bg-block-2 {
    position: relative;
    height: 780px;
    width: 100%;
    overflow: hidden;

    background-image: url('/seminari/images/bag-3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.fixed-bg-block-2::before {
    content: '';
    position: absolute;
    inset: 0;                 /* то же, что top/left/right/bottom: 0 */
    background: rgba(0, 0, 0, 0.4); /* чёрный с прозрачностью 40% */
    z-index: 1;                /* поверх фона, но под контентом */
}





/* Контейнер аккордеона */
.accordion {
    max-width: 920px;
    margin: 0 auto;
}

/* Общий стиль элемента аккордеона */
.accordion-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden; /* чтобы скругления не вылезали */
}

/* Заголовок-кнопка */
.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: #fff;
    border: none;
    outline: none;
    cursor: pointer;
    text-align: left;
    font-weight: 550;
    font-size: 16px;
    color: #333;
    transition: background 0.2s ease, color 0.2s ease;
}

.accordion-header:hover {
    background-color: #f9f9f9;
}

.accordion-header:focus-visible {
    outline: 2px solid #0077cc;
    outline-offset: 2px;
}

/* Иконка-стрелка */
.icon {
    font-size: 1.1rem;
    color: #666;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* Поворот стрелки при раскрытом состоянии */
.accordion-header[aria-expanded="true"] .icon {
    transform: rotate(180deg);
}

/* Контент внутри аккордеона */
.accordion-content {
    padding: 0 20px 16px 20px;
    /* Анимация высоты через max-height даёт плавность */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
}

.accordion-content:not([hidden]) {
    max-height: 1200px;      /* подберите значение под макс. высоту контента */
    opacity: 1;
}

/* Для Safari / старых браузеров: если hidden не сработает, подстрахуем display */
.accordion-content[hidden] {
    display: block !important;
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}
.treb {
    margin: 10px 0;
    font-size: 16px;
    line-height: 25px;
    max-width: calc(100% - 35px);
    color: #303030;
}
.treb strong {
    font-family: Inter, sans-serif;
    font-weight: 600;
    color: #4A90E2;
}
.contacts-link {
    color: #2175c5;
    font-weight: 550;
    text-decoration: none;
}
.contacts-link:hover {
    color: #1a5e9e;
}

.text-link {
    color: #2175c5;
    font-weight: 550;
    text-decoration: none;
}
.text-link:hover {
    color: #1a5e9e;
}



.p-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 920px;
    margin: 0 auto;
    height: 200px;
    text-align: left;
    line-height: 1.5;
}
.p-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
}
.p-zoom-effect {
    transition: transform 0.3s;
}
.p-zoom-effect:hover {
  transform: scale(1.1);
}
.p-info {
    position: relative;
    width: calc(100% - 80px);
    left: 35px;
}
.p-titleblock {
    margin: 10px;
    font-size: 16px;
    display: block;
    font-weight: 600;
    color: #303030;
}
.p-description {
    margin: 10px;
    max-width: 720px;
    font-size: 16px;
    display: block;
    font-weight: normal;
    color: #303030;
}


.step-2-box {
    position: relative;
    margin: 50px 0;
    display: flex;
    flex-direction: column;
}
.step-2 {
    position: relative;
    margin: 0 auto 20px;
    height: 65px;
    width: 920px;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    background: rgba(255, 255, 255, 0.1); /* Полупрозрачный фон */
    backdrop-filter: blur(10px); /* Размытие фона */
    -webkit-backdrop-filter: blur(10px); /* Поддержка Safari */
    border-radius: 16px; /* Скругление углов */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Светлая граница */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* Мягкая тень */
    padding: 15px; /* Отступы внутри элемента */
}
#anketa {
    display: none;
}


.step-2-n {
    position: relative;
    text-align: center;
    width: 100px;
    font-size: 16px;
    font-weight: 400;
    color: white;
    line-height: 1.5;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
}
.step-2-k {
    position: relative;
    width: 800px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: white;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
}
.step-2 {
    position: relative;
    margin: 0 auto 20px;
    height: 65px;
    width: 920px;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    background: rgba(255, 255, 255, 0.1); /* Полупрозрачный фон */
    backdrop-filter: blur(10px); /* Размытие фона */
    -webkit-backdrop-filter: blur(10px); /* Поддержка Safari */
    border-radius: 16px; /* Скругление углов */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Светлая граница */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* Мягкая тень */
    padding: 15px; /* Отступы внутри элемента */
}

.step-2-n {
    position: relative;
    text-align: center;
    width: 100px;
    font-size: 16px;
    font-weight: 400;
    color: white;
    line-height: 1.5;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
}
.step-2-k {
    position: relative;
    width: 800px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: white;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
}

.anketa {
    position: relative;
    margin: 0 auto 20px;
    height: 50px;
    width: 380px;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-decoration: none;
}
.anketa-n {
    font-size: 35px;
    font-weight: 300;
    color: white;
    text-align: center;
    width: 180px;
    transition: 0.5s ease;
}
.anketa-k {
    position: relative;
    width: 800px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: white;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
}
.link-none {
    text-decoration: none;
    align-items: center;
    margin: 0 auto 0;
    width: 380px;
}
.text-link-white {
    color: #ffffff;
    font-weight: 400;
    text-decoration: none;
}


.price-grid {
    display: inline-grid;
    grid-template-columns: repeat(auto-fill, 290px);
    grid-auto-rows: 240px;
    gap: 25px;
    padding: 0;
    max-width: 100%;
    margin: 20px 0;
}
.price-block {
    width: 290px;
    height: 240px;
    background-color: rgb(250, 250, 250);
    box-sizing: border-box;
    position: relative;
    box-shadow: 3px 5px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #cecece;
    border-radius: 10px;
    padding: 15px;
    transition: transform 0.3s;
}
.price-block:hover {
    transform: translateY(-10px);
}
.price-title {
    margin: 10px;
    font-size: 16px;
    display: block;
    font-weight: 600;
    color: #303030;
}
.price-cost {
    margin: 15px 10px 5px 10px;
    font-size: 16px;
    display: block;
    font-weight: 600;
    color: #2175c5;
}
.price-description {
    margin: 5px 10px;
    font-size: 14px;
    display: block;
    font-weight: 400;
    color: #303030;
}

.contacts-container {
    display: flex;
    gap: 10px;
    box-sizing: border-box;
}
.left-block {
    flex: 50%;
    display: flex;
    gap: 10px;
    align-items: center;
}
.left-mid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 135px;
}
.right-blocks {
    flex: 50%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.c-title {
    font-size: 16px;
    display: block;
    font-weight: 600;
    color: rgb(48, 48, 48);
    margin: 5px 0;
}
.c-box {
    width: 100%;
    color: #2175c5;
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 20px;
    text-align: left;
    margin-left: 15px;
    text-decoration: none;
}
.c-link {
    font-size: 16px;
    display: block;
    font-weight: 600;
    color: #2175c5;
    margin: 10px;
    text-decoration: none;
}
.c-box-2 {
    width: 100%;
    color: #2175c5;
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 20px;
    text-align: left;
    text-decoration: none;
}
.adres {
    font-size: 16px;
    display: block;
    font-weight: 450;
    color: #303030;
    margin: 5px 0;
    line-height: 25px;
    text-decoration: none;
}

.mob-menu-back {
    background-color: #2175c5;
}

.mob-menu-back a {
    text-decoration: none;
}
.mobile-menu {
  max-width: 100% !important;
}
.dropdown-menu-mob {
  position: absolute; /* Выводим из потока документа */
  top: 100%; /* Располагаем под родительским элементом */
  left: 0;
  line-height: 20px !important;
  display: inline-block;
  min-width: 100%;
  background-color: #2175c5;
  white-space: normal;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Тень для объёма */
  opacity: 0; /* Изначально прозрачное */
  visibility: hidden; /* Скрыто */
  transform: translateY(-10px); /* Небольшой сдвиг для эффекта появления */
  transition: all 0.3s ease;
  z-index: 10000;
  margin-top: 5px;
}

.dropdown-mob {
  width: 100%;
  position: relative;
  display: inline-block;
  text-align: right;
}
.burger-toggle {
    color: white;
    margin-right: 15px;
    font-size: 35px;
    text-align: left;
    line-height: 50px;
}  
.dropdown-menu-mob a {
  display: block;
  width: 100% !important;
  line-height: 20px !important;
  padding: 15px;
  margin: 0 !important;
  box-sizing: border-box;
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.2s ease; 
  white-space: normal;
  text-align: left;
  border-radius: 0;
}
.dropdown-menu-mob a:hover {
  width: 100% !important;
  line-height: 20px !important;
  padding: 15px;
  margin: 0 !important;
  box-sizing: border-box;
  color: white;
  text-decoration: none;
  font-size: 16px;
  background-color: #1e5181;
  transition: background-color 0.2s ease; 
  white-space: normal;
  text-align: left;
  border-radius: 0;
}
.submenu {
  display: none; /* Изначально скрыто */
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out;
}

.submenu.active {
  display: block; /* Показываем при активном классе */
  max-height: 500px; /* Достаточно для большинства подпунктов */
}
.menu-item-with-submenu a {
  display: flex;
  align-items: center;
  gap: 8px; /* Расстояние между текстом и стрелкой */
  width: 100%; /* Занимает всю ширину родителя */
}

.cert-slider {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.cert-track {
  display: flex;
  gap: 25px;
  scroll-snap-type: x mandatory; /* удобная привязка свайпов */
  overflow-x: auto;
  padding: 0 12px;
  -webkit-overflow-scrolling: touch; /* плавный скролл на iOS */
}

.cert-slide {
  width: calc(100vw - 48px); /* -48px: по 24px отступы по бокам */
  height: auto;
  aspect-ratio: 605 / 868; /* сохраняет пропорции 605×868 */
  object-fit: contain;
  display: block;
  scroll-snap-align: center;
}

/* Адаптив для планшетов/больших экранов */
@media (min-width: 768px) {
  .cert-slide {
    width: calc(50% - 16px); /* два в ряд с gap */
  }
}

.cert-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #ccc;
  color: #333;
  padding: 12px 14px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.cert-btn.prev { left: 12px; }
.cert-btn.next { right: 12px; }

.news-slider-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
#newsSlider {
  display: flex;
  gap: 25px;
  overflow-x: auto;     
  scroll-behavior: auto;    /* обязательно для скролла */
  scrollbar-width: none;   /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  width: 920px;
}

#newsSlider::-webkit-scrollbar {
  display: none;
}

.news-card {
  flex: 0 0 auto;
  width: 150px;
  min-width: 150px;
}

.scroll-btn.prev {
    font-size: 32px;
    color: #242424;
    border: none;
    background-color: white;
    cursor: pointer;
}
.scroll-btn.next {
    font-size: 32px;
    color: #242424;
    border: none;
    background-color: white;
    cursor: pointer;
}
.client-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 15px;
}

/* Скрыть стрелки, если слайдов мало или не нужны */
.cert-slider:has(.cert-slide:nth-child(n+3)) .cert-btn { display: block; }
.cert-slider:not(:has(.cert-slide:nth-child(n+3))) .cert-btn { display: none; }



@media (max-width: 900px) {
    .background-image {
        background-attachment: scroll;
        background-size: cover;
    }
    .desktop-menu {
    	display: none;
    }
    nav {
  	    max-width: 100% !important;
  	    min-width: 100% !important;
  	    border-radius: 0 !important;
        margin: 0 auto 0 !important;
        z-index: 10000 !important;
    }   
    .menu-container {
        display: none;
    } 
    .head-container {
        position: relative;
        top: 10px;
        width: calc(100% - 40px);
        margin: 0 auto 10px;
    }
    .org-title {
        position: relative;
        max-width: 100%;
        font-size: 18px;
        font-weight: 300;
        padding: 0;
        margin-bottom: 20px;
    }
    .head-title {
        display: none;
    }
    .head-text {
        margin-top: 15px;
        margin-bottom: 10px;
        max-width: 100%;
        font-size: 14px;
        font-weight: 400;
        padding: 10px;
    }
    .act-box {
        top: 15px;
        margin-left: 0;     
        display: flex;
        flex-direction: column;
    }
    .act-button {
        position: relative;
        width: auto;
        margin: 0;        
    }
    .act-button-2 {
        margin-left: 0 !important;
        margin: 10px 0 0;     
    }

    .step-box {
        display: none;
    }
    .parallax-header {
        height: 480px;
    }
    .container {
        width: calc(100% - 40px);
        margin: 0 auto 10px;
        margin-bottom: 50px;
    }   
    .textblock {
        font-size: 14px;
        line-height: 25px;
        text-align: justify;
        color: #303030;
        margin: 15px 0;
        width: 100%;
    }     
    .accordion-header {
        cursor: pointer;
        text-align: left;
        font-weight: 550;
        font-size: 16x;
        padding: 15px;
    }    
    .sert-images {
        display: none;
    }    
    .p-container {
        display: flex;
        align-items: start;
        flex-direction: column;
        position: relative;
        width: 100%;
        height: auto;
        text-align: left;
    }
    .p-image {
        margin: 0 auto 0;
    }

    .p-image img {
        margin: 20px 0;
    }
    .p-info {
        position: relative;
        width: 100%;
        left: 0;
    }
    .p-titleblock {
        margin: 10px 0;
        font-size: 16px;
    }
    .p-description {
        margin: 10px 0;
    }
    .step-2 {
        width: calc(100% - 30px);
        height: auto;
        padding: 15px;
        padding-left: 0;
    }
    .step-2-box {
        margin: 25px 0;
    }    
    .block-content {
        padding: 0 5px;
    }
    .fixed-bg-block-2 {
        height: auto;

    }    
    .step-2-k {
        width: 100%;
        font-size: 14px;
        font-weight: 400;
    }
    .step-2-n {
        position: relative;
        text-align: center;
        width: 50px;
        font-size: 16px;
    }    
    .anketa {
        position: relative;
        margin: 0 auto 20px;
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: center;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        width: calc(100% - 30px);
        height: auto;
        padding: 15px;
        padding-left: 0;
    }
    .anketa-k {
        width: 100%;
        font-size: 14px;
        font-weight: 400;
    }    
    .anketa-n {
        font-size: 16px;
        font-weight: 300;
        color: white;
        text-align: center;
        width: 50px;
        transition: 0.5s ease;
    }    
    #cost {
        text-align: center;
    }
    .price-grid {
        text-align: left;
    }   
    .contacts-container {
        display: block;
        gap: 10px;
        box-sizing: border-box;
    }    
    .left-block {
        flex: 100%;
        display: flex;
        gap: 10px;
        align-items: center;
    }
    .left-mid {
        display: flex;
        flex-direction: column;
        gap: 10px;
        height: 135px;
    }
    .right-blocks {
        flex: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    } 
    .link-none {
        width: 100%;
    }       
    .sert-images {
        display: none;
    } 
    .cert-modal {
        display: none;
    }
    .fixed-bg-block {
        background-attachment: scroll;
        height: auto;
        min-height: 350px;        
    }
    .fixed-bg-block-2 {
        background-attachment: scroll;
        height: auto;
        min-height: 350px;        
    }
    .act-button {
        width: auto;            /* по содержимому */
        max-width: none;        /* отменяем любые жёсткие ограничения */
        flex-shrink: 0;         /* не сжимать кнопку */
        align-self: flex-start; /* прижимаем к левому краю, не растягиваем по ширине родителя */
    }       
       
    h2 {
        font-size: 20px;
        font-weight: 560;
        color: rgb(48, 48, 48);
        margin: 20px 0px 15px;
    }    
    .fixed-bg-block {
        height: auto;
    }
    .treb {
    	font-size: 14px;
    	line-height: 25px;
    	max-width: calc(100% - 35px);
    	color: rgb(48, 48, 48);
    	margin: 10px 0px;
    }
    .adres {
    	font-size: 14px;
    }
    .c-title {
    	font-size: 14px;
    }




    .price-grid {
    display: grid;                 /* лучше grid, чем inline-grid для адаптивности */
    grid-template-columns: 1fr;   /* на мобильном — одна колонка на всю ширину */
    gap: 25px;
    padding: 0;
    max-width: calc(100% - 20px);
    margin: 20px 10px;
    width: 100%;                   /* чтобы не сжимался неожиданно */
    box-sizing: border-box;
    }
    #anketa {
    display: flex;
    }
    .anketa {
    	display: none;
    }



    /* Адаптив: на планшетах и выше — несколько колонок */
    @media (min-width: 768px) {
    .price-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    }

    .price-block {
    width: 100%;                   /* занимает всю ячейку грида */
    height: auto;                  /* не фиксируй высоту — пусть блок растёт по контенту */
    min-height: 240px;             /* если нужна минимальная высота */
    background-color: rgb(250, 250, 250);
    box-sizing: border-box;
    position: relative;
    box-shadow: 3px 5px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #cecece;
    border-radius: 10px;
    padding: 15px;
    transition: transform 0.3s;
    } 
}

@media (min-width: 900px) {
    .mob-menu-back {
    	display: none;
	}
    .mob-menu-container {
        display: none;
    } 
    .head-title-mob {
        display: none;
    }
    .cert-slider {
        display: none;
    }
}
