/* Основные стили */
:root {
    --primary: #3498db;
    --primary-dark: #2980b9;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray: #95a5a6;
    --text: #333333;
}
/*СКРЫТЬ ПОЛОСУ
::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn--primary {
    background: var(--primary);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Шапка */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    height: 100%;/* Изменено: направление в строку */
}

/* Стили для логотипа */
.logo-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Контейнер для текста логотипа */
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

/* Имя (голубой цвет) */
.logo-firstname {
    font-size: 22px;
    color: var(--primary); /* Используем ваш primary цвет */
    transition: color 0.3s ease;
}

/* Фамилия */
.logo-lastname {
    font-size: 22px;
    transition: color 0.3s ease;
}

/* Эффекты при наведении */
.logo-link:hover .logo-img {
    transform: scale(1.05);
}

.logo-link:hover .logo-firstname,
.logo-link:hover .logo-lastname {
    color: var(--primary);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Остальные стили остаются без изменений */
.header__nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header__nav li {
    margin-left: 30px;
}

.header__nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.header__nav a:hover {
    color: var(--primary);
}

.header__nav a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.header__nav a:hover:after {
    width: 100%;
}

.header__contacts {
    display: flex;
    align-items: center;
}

.header__phone {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    margin-right: 15px;
    transition: color 0.3s;
}

.header__phone:hover {
    color: var(--primary);
}

.social a {
    color: var(--dark);
    margin-left: 10px;
    font-size: 18px;
    transition: color 0.3s;
}

.social a:hover {
    color: var(--primary);
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.burger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--dark);
    margin: 5px 0;
    transition: all 0.3s;
}

/* Герой */
.hero {
    padding: 0px 0 0px;
    background: radial-gradient(white 20%, var(--primary) 80%);
    margin-top: 100px;
}

.hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero__content {
    flex: 1;
    padding-right: 50px;
}

.hero__lowercase-text {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--dark-light);
    font-style: italic;
    line-height: 1.3;
    margin-bottom: 25px;
}

.hero__phone {
    display: inline-flex;
    align-items: center;
    font-size: 32px;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 12px 25px;
    border-radius: 8px;
    font-family: 'Verdana', serif;
}

.phone-icon {
    margin-right: 15px;
    font-size: 28px;
    transition: all 0.3s ease;
    transform: scaleX(-1);
    color: var(--dark);
}

/* Зеркальное отражение иконки */
.phone-icon.flipped {
    transform: scaleX(-1);
}

.hero__phone:hover {
    color: var(--primary-dark);
    background-color: rgba(52, 152, 219, 0.15);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.hero__phone:hover .phone-icon {
    transform: scaleX(-1) scale(1.1); /* Сохраняем отражение при увеличении */
    color: var(--primary-dark);
}

.gold-text {
    background: linear-gradient(45deg, 
        #fff09b 0%, 
        #ffe44d 25%, 
        #ffd700 50%, 
        #ffe448 75%, 
        #fded97 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    background-size: 200% auto;
    animation: goldShine 3s linear infinite;
    display: inline-block;
    position: relative;
}

@keyframes goldShine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Для лучшего эффекта можно добавить свечение */
.gold-text::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: inherit;
    z-index: -1;
    filter: blur(5px);
    opacity: 0.7;
    border-radius: 3px;
}
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0px;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: 20px;
    color: rgb(69, 69, 69);
    margin-bottom: 30px;
    font-weight: 500;
}

.hero__text {
    margin-bottom: 40px;
    margin-left: 5px;
}

.hero__text p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.7;
}

.hero__image {
    flex: 1;
    text-align: center;
}

.hero__image img {
    max-width: 88%;
}

/* Стили для плашки с именем */
.hero-nameplate {
    background-color: var(--primary);
    color: var(--white);
    padding: 40px 0 50px;
    margin-top: -90px; /* "Поднимаем" плашку вверх */
    position: relative;
    z-index: 1;
    
    /* Тени */
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.1),
        0 6px 6px rgba(0, 0, 0, 0.05),
        inset 0 -2px 10px rgba(0, 0, 0, 0.1);
    
    /* Эффект "приподнятости" */

}

/* При наведении усиливаем эффект */
.hero-nameplate:hover {
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.15),
        0 10px 10px rgba(0, 0, 0, 0.08),
        inset 0 -3px 15px rgba(0, 0, 0, 0.15);
}
.hero-nameplate__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-nameplate__name {
    font-size: 52px;
    margin-bottom: 10px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-nameplate__position {
    font-size: 22px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}
.nameplate-divider {
    width: 600px;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    margin-top: -10px;
    position: relative;
}
/* Обо мне */
.about {
    padding: 100px 0;
    background-color: var(--light);
 
}

.about__inner {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about__photo {
    flex: 1;
    margin-right: -200px;
}

.about__photo img {
    width: 70%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about__text {
    flex: 1;
}

.about h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--dark);
}

.position {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 20px;
}

.divider {
    width: 100px;
    height: 3px;
    background-color: var(--primary);
    margin: 20px 0;
}

.about p {
    font-family: 'Verdana', serif;
    margin-bottom: 15px;
    font-size: 20px;
    line-height: 1.7;
}

.greeting-box {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 25px 30px;
    margin: 20px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.28);
    border: 5px solid rgb(52,152,219);
    position: relative;
    overflow: hidden;
}

.greeting-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
}

.greeting-box p {
    margin: 0;
    font-size: 22px;
    line-height: 1.6;
    color: #333;
}
/* Стили для секции услуг */
.services__container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .services__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('путь/к/вашему/фону.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1; /* Полупрозрачность фона */
    z-index: 0;
}

  .service-card {
    width: 250px;
    background: white;
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
    position: relative; /* Для абсолютного позиционирования цены */
    min-height: 260px; /* Фиксированная высота карточки */
    padding-bottom: 60px; /* Место для цены */
  }

  .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  }
 .services {
    position: relative;
    padding: 80px 0;
    background: radial-gradient(
        ellipse at center,
        #ffffff 0%,          /* Белый центр */
        #ffffff 30%,         /* Плавный переход к голубому */
        #e3f2fd 70%,         /* Голубые области по бокам */
        #ffffff  100%         /* Белый на самых краях (опционально) */
    );
    background-size: 200% 100%; /* Увеличиваем ширину градиента */
    background-position: center;
}

.services .section-title {
    color: #333; /* Темный цвет для заголовка */
    position: relative;
    z-index: 2;
}

.services__container {
    position: relative;
    z-index: 2;
}

.btn-outline {
    border: 2px solid #2196F3;
    color: #2196F3;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #2196F3;
    color: white;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    color: white;
    font-size: 36px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.service-content {
    flex: 1; /* Занимаем все доступное пространство */
    display: flex;
    flex-direction: column;
  }

  .service-price-container {
    margin-top: auto; /* Прижимаем цену к низу */
    padding-top: 15px;
    position: absolute;
    bottom: 30px; /* Фиксированное положение от низа */
    left: 0;
    right: 0;
    text-align: center;
  }

.service-price {
    display: inline-block;
    background: #f8f9fa;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    color: #3498db;
  }

  #priceListBtn {
    display: block;
    margin: 40px auto 0;
    padding: 15px 40px;
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#priceListBtn:hover {
    background: var(--primary);
    color: white;
}

/* Модальное окно */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;  /* Оставляем возможность скролла */
    padding: 40px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    /* Стили для скрытия скроллбара */
    scrollbar-width: none; /* Для Firefox */
    -ms-overflow-style: none; /* Для IE и Edge */
}

/* Скрываем скроллбар для WebKit браузеров (Chrome, Safari, Opera) */
.modal-container::-webkit-scrollbar {
    display: none;
}

.modal-container h3 {
    margin-top: -10px;
    text-align: center; /* Выравниваем заголовок по центру */
    font-size: 28px;
    margin-bottom: 30px; /* Добавляем отступ до списка услуг */
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
}

.modal-container h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 36px;
    background: none;
    border: none;
    cursor: pointer;
    color: #7f8c8d;
    transition: all 0.3s ease;
    transform-origin: center;
    line-height: 1;
    padding: 5px;
}

.modal-close:hover {
    color: var(--primary);
    transform: scale(1.2);
    opacity: 1;
}

.modal-close:focus {
    outline: none;
}

.price-list {
    margin-top: 20px; /* Добавляем отступ после заголовка */
    columns: 2;
    column-gap: 40px;
}

.price-item {
    margin-bottom: 15px;
    break-inside: avoid;
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ecf0f1;
}

.price-name {
    flex: 1;
}

.price-value {
    font-weight: 600;
    color: #3498db;
    margin-left: 20px;
}

.price-note {
    margin-top: 30px;
    font-style: italic;
    color: #7f8c8d;
    font-size: 14px;
    column-span: all;
}
/* Отзывы */
.reviews {
    position: relative;
    padding: 100px 0;
    background-color: var(--light);
    z-index: 1;
}

.reviews__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('wooden-judge-gavel-books-3d-illustration_771335-23904.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(2px); /* Уровень размытия */
    z-index: -1;
}

.reviews__background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Затемнение для лучшей читаемости текста */
}

.reviews .container {
    position: relative;
    z-index: 2;
}

.reviews h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--light);
}

.reviews__slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.review-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    margin: 0 20px;
}

.review-text {
    font-style: italic;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
}

.review-text:before,
.review-text:after {
    content: '"';
    color: var(--primary);
    font-size: 24px;
}

.review-author {
    font-weight: 600;
    color: var(--dark);
}

/* Контакты */
.contacts {
    padding: 100px 0px 40px 0px;
    background-color: var(--white);
}

.contacts h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--dark);
}

.contacts__inner {
    display: flex;
    gap: 50px;
}

.contacts__info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item i {
    color: var(--primary);
    font-size: 20px;
    width: 30px;
}

.contact-item a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}

.social-icon:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

/* Альтернативный вариант с цветными эффектами */
.social-icon {
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    filter: 
        brightness(1.1) 
        drop-shadow(0 3px 6px rgba(0,0,0,0.15));
}

.map-container {
    flex: 1;
    margin-top: -30px;
}

.map-container h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--dark);
    text-align: center;
}

.map-wrapper {
    position: relative;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    height: 400px;
}

.map-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    color: var(--primary);
    font-size: 40px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: translate(-50%, -100%) scale(1); }
    50% { transform: translate(-50%, -100%) scale(1.1); }
    100% { transform: translate(-50%, -100%) scale(1); }
}
/* Футер */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 30px 0;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__nav ul {
    display: flex;
    list-style: none;
}

.footer__nav li {
    margin-left: 20px;
}

.footer__nav a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer__nav a:hover {
    color: var(--primary);
}

/* Стиль для ссылки политики */
.privacy-link {
    color: var(--primary);
    text-decoration: underline;
    margin-left: 15px;
    transition: color 0.3s;
}

.privacy-link:hover {
    color: var(--white);
    text-decoration: none;
}

/* Стили модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.modal__content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;  /* Оставляем возможность скролла */
    color: var(--dark);
    position: relative;
    /* Стили для скрытия скроллбара */
    scrollbar-width: none; /* Для Firefox */
    -ms-overflow-style: none; /* Для IE и Edge */
}

/* Скрываем скроллбар для WebKit браузеров (Chrome, Safari) */
.modal__content::-webkit-scrollbar {
    display: none;
}

.modal__close {
    color: var(--dark);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal__close:hover {
    color: var(--primary);
    transform: scale(1.2);
    opacity: 1;
}

.modal h2 {
    margin-bottom: 20px;
    color: var(--primary);
    text-align: center;
}

.modal__text {
    line-height: 1.6;
}
/* Плавающая кнопка контактов */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.contact-btn {
    width: 60px;
    height: 60px;
    background: var(--dark);
    color: white;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.contact-dropdown {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    width: 180px;
}

.contact-dropdown a {
    display: flex;
    align-items: center;
    color: var(--dark);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s;
    font-size: 14px;
    gap: 10px;
}

.contact-dropdown a img {
    height: 20px;
    width: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.contact-dropdown a:hover {
    color: var(--primary);
}

.floating-contact:hover .contact-dropdown {
    opacity: 1;
    visibility: visible;
    bottom: 80px;
}

/* Кнопка "Наверх" */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--dark);
    color: white;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 18px;
    z-index: 998;
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: rgba(52, 152, 219, 0.3) 0px 4px 15px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-5px);
}
/* Плавающая кнопка контактов */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

/* Кнопка "Наверх" */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 90px; /* Смещаем левее контактной кнопки */
    width: 55px;
    height: 56px;
    background: var(--dark);
    color: white;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 18px;
    z-index: 998;
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Мобильные кнопки */
.mobile-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: none;
}

.mobile-call, .mobile-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.mobile-whatsapp {
    background: #25D366;
}

.mobile-call:hover, .mobile-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.2);
}

/* Общие адаптационные стили */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero h1 {
        font-size: 42px;
    }
    
    .hero-nameplate__name {
        font-size: 46px;
    }
    
    .nameplate-divider {
        width: 500px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .hero h1 {
        font-size: 42px;
        margin-top: 20px;
    }

    .hero__text{
        margin-bottom: 0px;
    }

    .hero__inner {
        flex-direction: column;
        text-align: center;
    }
    
    .hero__content {
        padding-right: 0;
    }
    
    .hero__image img {
        max-width: 70%;
        margin-top: -80px;
    }
    
    .hero-nameplate {
        margin-top: -70px;
        padding: 30px 0 40px;
    }
    
    .hero-nameplate__name {
        font-size: 40px;
    }
    
    .nameplate-divider {
        width: 400px;
    }
    
    .about__inner {
        flex-direction: column;
    }
    
    .about__photo {
        margin-right: 0;
        text-align: center;
    }
    
    .about__photo img {
        width: 60%;
    }
    
    .contacts__inner {
        flex-direction: column;
    }
    
    .map-container {
        margin-top: 40px;
    }
    
    .price-list {
        columns: 1;
    }
}

/* Дополнительная адаптация для очень маленьких экранов */
@media (max-width: 400px) {
    .contact-dropdown {
        width: 140px;
    }
    
    .contact-dropdown a {
        font-size: 11px;
    }
}


@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .header__nav, .header__contacts {
        display: none;
    }
    
    .header__nav.active {
        display: block;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .header__nav ul {
        flex-direction: column;
    }
    
    .header__nav li {
        margin: 10px 0;
    }
    
    .burger {
        display: block;
    }
    
    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero {
        margin-top: 80px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero__phone {
        font-size: 24px;
    }
    
    .hero-nameplate__name {
        font-size: 32px;
    }
    
    .hero-nameplate__position {
        font-size: 18px;
    }
    
    .nameplate-divider {
        width: 300px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    /* Адаптация плавающей кнопки контактов */
    .floating-contact {
        display: block !important; /* Показываем кнопку */
        bottom: 20px;
        right: 20px;
    }

    .contact-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .contact-dropdown {
        width: 160px; /* Уменьшаем ширину */
        right: 0;
        bottom: 60px;
        padding: 10px;
    }

    .contact-dropdown a {
        font-size: 12px; /* Уменьшаем шрифт */
        padding: 6px 0;
        gap: 8px;
    }

    .contact-dropdown img {
        width: 16px;
        height: 16px;
    }

    /* Скрываем мобильные кнопки, если оставляем плавающую */
    .mobile-contact {
        display: none !important;
    }
    
    .back-to-top {
        right: 80px;
        bottom: 20px;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero__lowercase-text {
        font-size: 16px;
    }
    
    .hero__phone {
        font-size: 20px;
        padding: 8px 15px;
    }
    
    .hero-nameplate {
        margin-top: -50px;
        padding: 20px 0 30px;
    }
    
    .hero-nameplate__name {
        font-size: 26px;
    }
    
    .hero-nameplate__position {
        font-size: 16px;
    }
    
    .nameplate-divider {
        width: 200px;
    }
    
    .about h2, .contacts h2, .reviews h2, .section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    .about__photo img {
        width: 80%;
    }
    
    .greeting-box p {
        font-size: 16px;
    }
    
    .service-card {
        width: 100%;
    }
    
    .review-card {
        padding: 20px;
    }
    
    .review-text {
        font-size: 16px;
    }
    
    .footer__inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer__nav ul {
        flex-direction: column;
        margin-top: 15px;
    }
    
    .footer__nav li {
        margin: 5px 0;
    }
    
    .privacy-link {
        margin: 15px 0 0;
        display: block;
    }
    
    .modal-container {
        padding: 20px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 16px;
        right: 70px;
    }
}

/* Особые адаптации для очень маленьких экранов */
@media (max-width: 400px) {
    .hero h1 {
        font-size: 24px;
    }
    
    .hero-nameplate__name {
        font-size: 22px;
    }
    
    .nameplate-divider {
        width: 150px;
    }
    
    .hero__phone {
        font-size: 18px;
    }
    
    .logo-firstname, .logo-lastname {
        font-size: 18px;
    }
    
    .logo-img {
        width: 50px;
        height: 50px;
    }
}

/* Адаптация для ландшафтной ориентации на мобильных устройствах */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding-top: 30px;
        margin-top: 70px;
    }
    
    .hero__inner {
        flex-direction: row;
    }
    
    .hero__content {
        padding-right: 20px;
        margin-bottom: 0;
    }
    
    .hero__image img {
        max-width: 50%;
    }
    
    .hero-nameplate {
        margin-top: -40px;
        padding: 15px 0;
    }
    
    .hero-nameplate__name {
        font-size: 24px;
    }
    
    .nameplate-divider {
        width: 250px;
    }
}

/* Адаптация для очень высоких экранов */
@media (min-height: 1200px) {
    .hero {
        min-height: 80vh;
        display: flex;
        align-items: center;
    }
    
    .about, .services, .reviews, .contacts {
        padding: 120px 0;
    }
}

/* Адаптация для Internet Explorer */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .hero__inner {
        display: block;
    }
    
    .hero__content, .hero__image {
        width: 100%;
        float: left;
    }
    
    .gold-text {
        color: #ffd700; /* Fallback для IE */
    }
}

/* Стили формы консультации */
.consultation {
    position: relative;
    padding: 20px;
}

/* Размытый фон */
.consultation-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #3498db;
    filter: blur(0px);
    z-index: 1;
}

.consultation-form {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: 25px auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.9em;
}

.consultation-form h2 {
    text-align: center;
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 22px;
}

.form-description {
    text-align: center;
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--dark);
    font-size: 14px;
}

input[type="text"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    transition: border-color 0.2s;
    font-family: 'Montserrat', sans-serif;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.textarea-with-counter {
  position: relative;
}

.textarea-with-counter textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
}

.textarea-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.8);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  color: #666;
}

.textarea-counter.warning {
  color: #e74c3c;
  font-weight: bold;
}

/* Стили для выбора способа связи */
.contact-methods {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.radio-label {
    position: relative;
    display: inline-block;
}

.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-label .method-btn {
    display: inline-block;
    padding: 6px 12px;
    border: 1.5px solid var(--primary);
    border-radius: 16px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: transparent;
}

.radio-label input[type="radio"]:checked + .method-btn {
    background-color: var(--primary);
    color: white;
    padding: 6px 12px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    font-size: 13px;
    line-height: 1.3;
    margin-top: 15px;
}

.checkbox-group input[type="checkbox"] {
    position: relative;
    width: 22px;
    height: 18px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid var(--primary);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    margin-right: 8px;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: var(--primary);
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 14px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.privacy-linkk {
    color: var(--primary);
    text-decoration: underline;
    font-size: inherit;
}

.consent-link {
    color: var(--primary);
    text-decoration: underline;
    font-size: inherit;
}

.teht {
    font-size: 12px;
}

.privacy-link:hover {
    text-decoration: none;
}
.submit-btn {
    width: 100%;
    padding: 10px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.success-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  text-align: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 90%;
  max-width: 400px;
  box-sizing: border-box;
  overflow: hidden;
}

.success-notification.show {
  opacity: 1;
  visibility: visible;
  animation: fadeInUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #2ecc71;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.success-icon svg {
  width: 36px;
  height: 36px;
}

.success-title {
  font-size: 22px;
  color: #2c3e50;
  margin: 0 0 10px;
  font-weight: 600;
}

.success-message {
  font-size: 16px;
  color: #7f8c8d;
  margin: 0;
  line-height: 1.5;
}

.close-notification {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #bdc3c7;
  transition: color 0.3s;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-notification:hover {
  color: #e74c3c;
  background: #f5f5f5;
}

.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: #2ecc71;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 4s linear;
}

.success-notification.show .progress-bar {
  transform: scaleX(1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes checkmarkAnim {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.success-icon svg {
  animation: checkmarkAnim 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Затемнение фона */
.notification-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.notification-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Стили для уведомления об ошибке */
.error-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  text-align: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 90%;
  max-width: 400px;
  box-sizing: border-box;
  overflow: hidden;
}

.error-notification.show {
  opacity: 1;
  visibility: visible;
  animation: fadeInUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.error-icon {
  width: 80px;
  height: 80px;
  background: #e74c3c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.error-icon svg {
  width: 36px;
  height: 36px;
}

.error-title {
  font-size: 22px;
  color: #2c3e50;
  margin: 0 0 10px;
  font-weight: 600;
}

.error-message {
  font-size: 16px;
  color: #7f8c8d;
  margin: 0;
  line-height: 1.5;
}

.error-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: #e74c3c;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 4s linear;
}

.error-notification.show .error-progress-bar {
  transform: scaleX(1);
}

.form-group.with-counter {
    position: relative;
    display: inline-block;
    width: 100%;
}

.form-group.with-counter input {
    padding-right: 50px; /* Место для счетчика */
    width: 100%;
    box-sizing: border-box;
}

.char-counter {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #95a5a6;
    background: rgba(255,255,255,0.7);
    padding: 0 5px;
    border-radius: 3px;
    pointer-events: none;
}

.phone-input-container {
  display: flex;
  align-items: center;
}

.country-selector {
  position: relative;
  margin-right: 10px;
  cursor: pointer;
}

.selected-country {
  display: flex;
  align-items: center;
  padding: 12px 12px;
  background: #f5f5f5;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.flag-icon {
  margin-right: 0; /* Убрали отступ справа от флага */
}

.dropdown-arrow {
  font-size: 10px;
  color: #666;
  margin-left: 8px;
}

.country-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 300px;
  max-height: 300px;
  overflow-y: auto;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
}

.country-dropdown.show {
  display: block;
}

.search-box {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.search-box input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.country-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.country-item {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  cursor: pointer;
}

.country-item:hover {
  background-color: #f5f5f5;
}

.country-name {
  flex-grow: 1;
}

.country-item .country-code {
  margin-left: 10px;
  color: #666;
}

.phone-input-wrapper {
  display: flex;
  align-items: center;
  flex-grow: 1;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.phone-prefix {
  padding: 10px;
  background: #f5f5f5;
  border-right: 1px solid #ddd;
  font-weight: bold;
}

#userPhone {
  flex-grow: 1;
  padding: 10px;
  border: none;
  outline: none;
}

.invalid-field {
    border-color: #ff3860 !important;
    box-shadow: 0 0 0 2px rgba(255, 56, 96, 0.2);
}


@media (max-width: 768px) {
    .consultation-form {
        padding: 15px;
        margin: 15px auto;
    }
    
    .contact-methods {
        flex-wrap: wrap;
    }
    
    .radio-label .method-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
}