/* Подключение шрифтов семейства Arsenal */

@font-face {
    font-family: 'Arsenal';
    src: url('../fonts/Arsenal-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Arsenal';
    src: url('../fonts/Arsenal-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Arsenal';
    src: url('../fonts/Arsenal-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Arsenal';
    src: url('../fonts/Arsenal-BoldItalic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}
html {
    scroll-behavior: smooth;
}
section, 
[id] {
    scroll-margin-top: 80px; 
}
        /* Общие стили и сброс */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Arsenal', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
        }
        body {
            color: #333;
            line-height: 1.6;
            background-color: #f9f9f9;
        }
        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        /* Шапка сайта */
header {
	background: #fff;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	position: sticky;
	top: 0;
	z-index: 1000;
}
.social1 img {
	height: 37px;
}
.social1 {
	display: flex;
	margin-left: 10px;
}
.social-wrapper {
	display: flex;
}
.header-grid {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 0;
	position: relative;
}
.logo {
	font-size: 24px;
	font-weight: bold;
	color: #0077b6;
	text-decoration: none;
	padding-left: 60px;
}
.logo img {
	width: auto;
	height: 137px;
	position: absolute;
	left: 0px;
	top: -23px;
	transition: 0.3s;
}
        nav a {
            color: #555;
            text-decoration: none;
            margin-left: 20px;
            font-weight: 500;
            transition: color 0.3s;
        }
        nav a:hover {
            color: #0077b6;
        }
        .cta-phone {
            background: #0077b6;
            color: #fff;
            padding: 10px 20px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: bold;
            transition: background 0.3s;
        }
        .cta-phone:hover {
            background: #0096c7;
        }
.h2-home {
	text-align: center;
	margin-top: 0;
	margin-bottom: 49px;
	font-size: 50px;
}
        /* Отзывы*/
.container.otziv1 {
	padding-top: 55px;
	padding-bottom: 55px;
}

.otziv2 {
	width: 100%;
	height: 800px;
	overflow: hidden;
	position: relative;
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}
        /* Отзывы конец*/
        /* Главный баннер (Hero) */
.hero {
	background: linear-gradient(135deg, #3fa4c5 0%, #5da5bd 100%);
	padding: 80px 0;
	text-align: left;
	position: relative;
}
.slidepng {
	position: absolute;
	right: 201px;
	bottom: 0;
	width: 251px;
}
.hero h1 {
	font-size: 61px;
	color: #fff;
	margin-bottom: 20px;
}
.hero p {
	font-size: 18px;
	color: #fff;
	margin-bottom: 30px;
	max-width: 600px;
	margin-left: 0;
}
        .btn-appointment {
            background: #0077b6;
            color: #fff;
            padding: 15px 30px;
            font-size: 18px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            text-decoration: none;
            font-weight: bold;
            display: inline-block;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        .btn-appointment:hover {
            background: #005f73;
        }
/* --- Промо-блок Гигиены --- */
.promo-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border: 2px solid #0077b6;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 119, 182, 0.12);
    overflow: hidden;
}

.promo-badge {
    position: absolute;
    top: 15px;
    right: -35px;
    background: #ff4757;
    color: #fff;
    font-weight: bold;
    padding: 6px 40px;
    transform: rotate(25deg);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.promo-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.promo-info h3 {
    font-size: 28px;
    color: #03045e;
    margin-bottom: 8px;
}

.promo-subtitle {
    font-size: 18px;
    font-weight: bold;
    color: #0077b6;
    margin-bottom: 20px;
}

.promo-steps {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.promo-steps li {
    font-size: 15px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
}

.promo-steps li span {
    background: #0077b6;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Блок цены */
.promo-price-block {
    background: #fff;
    border: 1px solid #bae6fd;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    min-width: 240px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.price-label {
    display: block;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 5px;
}

.price-value {
    font-size: 36px;
    font-weight: bold;
    color: #22c55e; /* Сочный зеленый акцент на цену */
    margin-bottom: 15px;
}

.promo-btn {
    width: 100%;
    text-align: center;
    padding: 12px 15px;
    font-size: 16px;
}

/* Адаптированность промо-блока для мобильных */
@media (max-width: 992px) {
    .promo-content {
        flex-direction: column;
        align-items: stretch;
    }
    .promo-price-block {
        min-width: 100%;
    }
    .promo-badge {
        top: 10px;
        right: -40px;
        font-size: 11px;
    }
}


        /* Секция Услуг */
.services {
	padding: 40px 0;
	background: #fff;
}
        .section-title {
            text-align: center;
            font-size: 32px;
            margin-bottom: 40px;
            color: #03045e;
        }
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
        }
.service-card {
	background: #f8fafc;
	padding: 230px 25px 25px 25px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
	transition: transform 0.3s, box-shadow 0.3s;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
        .service-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }
        .service-card h3 {
            margin-bottom: 10px;
            color: #0077b6;
        }

        /* Форма записи */
        .appointment-section {
            padding: 60px 0;
            background: #f1f5f9;
        }
        .form-container {
            max-width: 500px;
            margin: 0 auto;
            background: #fff;
            padding: 40px;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        }
        .form-group {
            margin-bottom: 20px;
        }
        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: 500;
        }
        .form-group input, .form-group select {
            width: 100%;
            padding: 10px;
            border: 1px solid #cbd5e1;
            border-radius: 4px;
            font-size: 16px;
        }
        .submit-btn {
            width: 100%;
            background: #0077b6;
            color: #fff;
            padding: 12px;
            border: none;
            border-radius: 4px;
            font-size: 18px;
            cursor: pointer;
            font-weight: bold;
        }
        .submit-btn:hover {
            background: #005f73;
        }

        /* Фото кабинета */
        .gallery {
            padding: 60px 0;
            background: #fff;
        }

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

        .gallery-item {
            position: relative;
            aspect-ratio: 800 / 1067;
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid #e2e8f0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
            cursor: pointer;
            transition: box-shadow 0.3s ease;
        }
        .gallery-item:hover {
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.4s ease;
        }
        .gallery-item:hover img {
            transform: scale(1.06);
        }

        .gallery-zoom-icon {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.9);
            color: #0077b6;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }
        .gallery-zoom-icon svg {
            width: 18px;
            height: 18px;
        }
        .gallery-item:hover .gallery-zoom-icon {
            opacity: 1;
        }

        /* Лайтбокс галереи */
        .gallery-lightbox {
            position: fixed;
            inset: 0;
            background: rgba(3, 4, 94, 0.92);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            padding: 20px;
            box-sizing: border-box;
        }
        .gallery-lightbox.active {
            display: flex;
        }

        .gallery-lightbox__stage {
            max-width: 90vw;
            max-height: 90vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .gallery-lightbox__stage img {
            max-width: 90vw;
            max-height: 90vh;
            object-fit: contain;
            border-radius: 8px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
            cursor: zoom-out;
            animation: galleryPop 0.25s ease;
        }
        @keyframes galleryPop {
            from { opacity: 0; transform: scale(0.92); }
            to   { opacity: 1; transform: scale(1); }
        }

        .gallery-lightbox__close,
        .gallery-lightbox__nav {
            position: absolute;
            background: rgba(255, 255, 255, 0.15);
            border: none;
            color: #fff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: background 0.2s ease;
        }
        .gallery-lightbox__close:hover,
        .gallery-lightbox__nav:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .gallery-lightbox__close {
            top: 20px;
            right: 20px;
            width: 44px;
            height: 44px;
            font-size: 26px;
            line-height: 1;
        }

        .gallery-lightbox__nav {
            top: 50%;
            transform: translateY(-50%);
            width: 50px;
            height: 50px;
            font-size: 30px;
            line-height: 1;
        }
        .gallery-lightbox__prev { left: 20px; }
        .gallery-lightbox__next { right: 20px; }

        @media (max-width: 600px) {
            .gallery-zoom-icon {
                opacity: 1;
            }
            .gallery-lightbox__close {
                top: 12px;
                right: 12px;
                width: 38px;
                height: 38px;
                font-size: 20px;
            }
            .gallery-lightbox__nav {
                width: 40px;
                height: 40px;
                font-size: 24px;
            }
            .gallery-lightbox__prev { left: 8px; }
            .gallery-lightbox__next { right: 8px; }
        }

        /* Контакты */
.contacts {
	padding: 40px 0;
	background: #f1f5f9;
}

        .contacts-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            align-items: stretch;
            margin-top: 10px;
        }

        .contacts-card {
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
            overflow: hidden;
        }

        .contacts-info {
            padding: 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .contacts-list {
            list-style: none;
            margin: 0 0 30px 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 26px;
        }

        .contacts-item {
            display: flex;
            align-items: flex-start;
            gap: 16px;
            text-align: left;
        }

        .contacts-icon {
            flex-shrink: 0;
            width: 46px;
            height: 46px;
            border-radius: 50%;
            background: #e0f2fe;
            color: #0077b6;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .contacts-icon svg {
            width: 22px;
            height: 22px;
        }

        .contacts-text {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .contacts-label {
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: #64748b;
        }

        .contacts-value {
            font-size: 17px;
            color: #1f2933;
            line-height: 1.5;
        }

        .contacts-phone-link {
            color: #1f2933;
            text-decoration: none;
            transition: color 0.2s ease;
        }
        .contacts-phone-link:hover {
            color: #0077b6;
        }

        .contacts-info .call-footer {
            align-self: flex-start;
            margin: 0;
        }

        .contacts-map {
            position: relative;
            min-height: 400px;
        }
        .contacts-map > div {
            position: absolute !important;
            inset: 0;
        }
        .ymap-frame-wrap {
            position: relative;
            overflow: hidden;
            width: 100%;
            height: 100%;
            border-radius: 10px;
        }
        .ymap-frame-wrap iframe {
            width: 100%;
            height: 100%;
            display: block;
        }

        @media (max-width: 860px) {
            .contacts-grid {
                grid-template-columns: 1fr;
            }
            .contacts-map {
                min-height: 320px;
            }
            .contacts-info {
                padding: 30px;
            }
        }

        /* Подвал */
        footer {
            background: #03045e;
            color: #fff;
            text-align: center;
            padding: 20px 0;
            font-size: 14px;
        }
.call-footer {
	background: #0077b6;
	color: #fff;
	padding: 10px 20px;
	border-radius: 5px;
	text-decoration: none;
	font-weight: bold;
	transition: background 0.3s;
	margin-top: 10px;
	margin-bottom: 10px;
	display: inline-block;
}
.zapisat {
	background: #00b6ad;
	color: #fff;
	padding: 10px 20px;
	border-radius: 5px;
	xx`x	
	font-weight: bold;
	transition: background 0.3s;
}
/* Базовые стили для элементов, которые должны появляться */
.fade-in {
    opacity: 0;
    transform: translateY(40px); /* Смещение вниз на 40px */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* Плавность анимации */
    will-change: opacity, transform;
}

/* Состояние, когда элемент появился на экране */
.fade-in.visible {
    opacity: 1;
    transform: translateY(0); /* Возвращаем на исходное место */
}
/* Задержки для поочередного появления элементов */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Стили, которые применятся ПРИ СКРОЛЛЕ */
header.scrolled .logo img {
	height: 75px;
	top: 0;
	transition: 0.3s;
}
/* Выравнивание содержимого в баннере */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px; /* Отступ между текстом и картинкой */
}

/* Левая колонка с текстом */
.hero-content {
    flex: 1;
    text-align: left; /* Текст выравнивается по левому краю */
}

/* Правая колонка с фото */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* Настройки самого изображения */
.hero-img {
	max-width: 537px;
	height: auto;
	object-fit: cover;
	border-radius: 8px;
}
/* Услуги дополнение */
.imgservices {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
	object-position: center;
	position: absolute;
	left: 0;
	top: 0;
}

/* Плашка с ценой в карточке услуги */
.service-price {
	display: inline-flex;
	align-items: baseline;
	align-self: flex-start;
	gap: 6px;
	margin-top: auto;
	padding-top: 5px;
	padding-left: 16px;
	padding-right: 16px;
	padding-bottom: 8px;
	background: #f0fdf4;
	border: 1px solid #86efac;
	border-radius: 20px;
}
.service-price .service-price-label {
	font-size: 13px;
	color: #64748b;
	font-weight: normal;
}
.service-price .service-price-value {
	font-size: 17px;
	color: #16a34a;
	font-weight: bold;
}
.mar12 {
	margin-bottom: 20px;
}
.link-services img {
	width: 100%;
	height: auto;
}
.link-services {
	display: block;
	position: absolute;
	right: 20px;
	bottom: 21px;
	width: 40px;
	border-radius: 13px;
	padding-top: 5px;
	padding-bottom: 2px;
	padding-right: 3px;
	padding-left: 3px;
	background: linear-gradient(135deg, #2b7e9a 0%, #457788 100%);
}
.service-card:hover .link-services {
	animation: pulse 1s infinite;
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
/* ============ СТИЛИ МОДАЛЬНОГО ОКНА ПРАЙСА ============ */
.price-modal-overlay{
  --pm-accent:#1f8a86;
  --pm-accent-light:#e6f4f3;
  --pm-text:#1f2933;
  --pm-muted:#6b7785;
  --pm-border:#e3e8ea;
 
  position:fixed;
  inset:0;
  background:rgba(15, 30, 32, .55);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:20px;
  box-sizing:border-box;
}
.price-modal-overlay.active{
  display:flex;
}
 
.price-modal{
  background:#fff;
  width:100%;
  max-width:720px;
  max-height:85vh;
  border-radius:16px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
  font-family:'Segoe UI', Arial, sans-serif;
  color:var(--pm-text);
  animation:pmPop .25s ease;
}
@keyframes pmPop{
  from{ opacity:0; transform:translateY(10px) scale(.98); }
  to{ opacity:1; transform:translateY(0) scale(1); }
}
 
.price-modal__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 24px;
  border-bottom:1px solid var(--pm-border);
  flex-shrink:0;
}
.price-modal__header h2{
  margin:0;
  font-size:20px;
  font-weight:700;
}
.price-modal__close{
  background:var(--pm-accent-light);
  border:none;
  width:36px;
  height:36px;
  border-radius:50%;
  font-size:22px;
  line-height:1;
  color:var(--pm-accent);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .2s ease, transform .2s ease;
  flex-shrink:0;
}
.price-modal__close:hover{
  background:var(--pm-accent);
  color:#fff;
  transform:rotate(90deg);
}
 
.price-modal__search{
  padding:14px 24px;
  border-bottom:1px solid var(--pm-border);
  flex-shrink:0;
}
.price-modal__search input{
  width:100%;
  box-sizing:border-box;
  padding:10px 14px;
  border:1px solid var(--pm-border);
  border-radius:10px;
  font-size:15px;
  outline:none;
  transition:border-color .2s ease;
}
.price-modal__search input:focus{
  border-color:var(--pm-accent);
}
 
.price-modal__body{
  overflow-y:auto;
  padding:8px 0 20px;
  flex:1;
}
 
/* --- категория (аккордеон) --- */
.pm-category{
  border-bottom:1px solid var(--pm-border);
}
.pm-category__title{
  width:100%;
  background:none;
  border:none;
  text-align:left;
  padding:14px 24px;
  font-size:16px;
  font-weight:600;
  color:var(--pm-text);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.pm-category__title:hover{
  background:var(--pm-accent-light);
}
.pm-category__count{
  font-size:13px;
  font-weight:400;
  color:var(--pm-muted);
  margin-right:auto;
  margin-left:10px;
}
.pm-category__arrow{
  flex-shrink:0;
  width:20px;
  height:20px;
  transition:transform .25s ease;
  color:var(--pm-accent);
}
.pm-category.open .pm-category__arrow{
  transform:rotate(180deg);
}
 
.pm-category__list{
  max-height:0;
  overflow:hidden;
  transition:max-height .3s ease;
}
.pm-category.open .pm-category__list{
  /* высота проставляется инлайн скриптом под контент */
}
 
.pm-item{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  padding:10px 24px;
}
.pm-item:hover{
  background:var(--pm-accent-light);
}
.pm-item__name{
  font-size:14.5px;
  line-height:1.4;
  color:var(--pm-text);
}
.pm-item__price{
  flex-shrink:0;
  font-weight:700;
  color:var(--pm-accent);
  font-size:14.5px;
  white-space:nowrap;
}
 
.pm-no-results{
  text-align:center;
  color:var(--pm-muted);
  padding:40px 20px;
  font-size:15px;
  display:none;
}
 
/* --- скроллбар для аккуратности (не критично) --- */
.price-modal__body::-webkit-scrollbar{ width:8px; }
.price-modal__body::-webkit-scrollbar-thumb{ background:var(--pm-border); border-radius:8px; }
 
/* --- мобильная адаптация: во всё окно --- */
@media (max-width: 600px){
  .price-modal-overlay{ padding:0; }
  .price-modal{
    max-width:none;
    width:100%;
    height:100%;
    max-height:none;
    border-radius:0;
  }
  .price-modal__header{ padding:16px 16px; }
  .price-modal__search{ padding:12px 16px; }
  .pm-category__title{ padding:12px 16px; font-size:15px; }
  .pm-item{ padding:9px 16px; }
  .pm-item__name{ font-size:14px; }
  .pm-item__price{ font-size:14px; }
}
 
body.pm-lock{
  overflow:hidden;
}
.read-all {
	display: block;
	margin-right: auto;
	margin-left: auto;
	max-width: 250px;
	background-color: #0077b6;
	color: #fff;
	font-weight: bold;
	text-decoration: navajowhite;
	text-align: center;
	padding: 15px 0;
	border-radius: 5px;
	margin-top: 20px;
}
/* Мобильная адаптивность (экраны меньше 768px) */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column; /* На смартфонах фото встанет под текстом */
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-image {
        justify-content: center;
    }
}
        /* Адаптивность */
        @media (max-width: 768px) {
            .header-grid {
                flex-direction: column;
                gap: 15px;
            }
            nav a {
                margin: 0 10px;
            }
            .hero h1 {
                font-size: 30px;
            }
.text-center {
	text-align: center;
}
header {
	position: relative;
}
.logo img {
	width: auto;
	height: 160px;
	position: absolute;
	left: 50%;
	top: 0;
	transition: 0.3s;
	margin-left: -80px;
}
nav {
	margin-top: 140px;
}
.hero-img {
	max-width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: 8px;
}
        }
/* Совместимость с админ-панелью WordPress (чтобы липкая шапка не наезжала на админ-бар) */
body.admin-bar header {
	top: 32px;
}
@media screen and (max-width: 782px) {
	body.admin-bar header {
		top: 46px;
	}
}

/* ===================== Сертификаты и лицензии ===================== */
.certificates {
    padding: 60px 0;
    background: #f8fafc;
}

.certificates-subtitle {
    text-align: center;
    color: #64748b;
    margin-top: -20px;
    margin-bottom: 32px;
    font-size: 15px;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.certificate-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.certificate-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.certificate-card--image {
    cursor: pointer;
}

.certificate-card__image {
    position: relative;
    aspect-ratio: 800 / 1173;
    overflow: hidden;
    background: #f1f5f9;
}
.certificate-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.certificate-card--image:hover .certificate-card__image img {
    transform: scale(1.05);
}
.certificate-card--image .gallery-zoom-icon {
    top: 12px;
    right: 12px;
}
.certificate-card--image:hover .gallery-zoom-icon {
    opacity: 1;
}

.certificate-card__title {
    padding: 16px 18px;
    font-weight: 600;
    color: #1f2933;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
}

.certificate-card--doc {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.certificate-card__doc-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0077b6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.certificate-card__doc-icon svg {
    width: 28px;
    height: 28px;
}

.certificate-card--doc .certificate-card__title {
    padding: 0 0 10px 0;
}

.certificate-card__text {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}
.certificate-card__text p {
    margin: 0 0 6px 0;
}
.certificate-card__text p:last-child {
    margin-bottom: 0;
}

/* Реквизиты в блоке контактов */
.contacts-requisites {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
}
.contacts-requisites p {
    margin: 0 0 4px 0;
}
.contacts-requisites__name {
    color: #1f2933;
    font-weight: 600;
}

/* ===================== Кнопка "наверх" ===================== */
.scroll-top-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0077b6;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 119, 182, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
    z-index: 900;
}
.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top-btn:hover {
    background: #005f8a;
}
.scroll-top-btn svg {
    width: 22px;
    height: 22px;
}
@media screen and (max-width: 782px) {
    .scroll-top-btn {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }
}
nav {
	position: relative;
	z-index: 1;
}