/*! style.css | v1.3.2 | 2026-08-20 */
/* Основные стили */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #fff;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Навигация */
.navbar {
    background-color: var(--primary-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px; /* Фиксированная высота */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    height: 50px;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
	margin: 0 0.5rem;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
}

.hamburger:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.72);
    outline-offset: 2px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-light);
    transition: all 0.3s ease;
}

/* Hero секиця */
.hero {
    position: relative;
    margin-top: 80px; /* Высота navbar */
    height: calc(100vh - 80px); /* Резервный вариант для старых браузеров */
    height: min(calc(100svh - 80px), 50vw);
    overflow: hidden;
    isolation: isolate;
}

.hero-slider,
.hero-slider-mobile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slider-mobile {
    display: none;
    background: #182630;
}

.slide,
.slide-mobile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #182630;
    background-image: var(--hero-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active,
.slide-mobile.active {
    opacity: 1;
}

.hero-content {
	transform: translateY(clamp(20px, 6vh, 50px));
    max-width: 800px;
	margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    color: var(--text-light);
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.25rem;
}

.hero .btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: rgba(44, 62, 80, 0.52);
}

.hero .btn-outline:hover {
    background: rgba(44, 62, 80, 0.82);
}

/* Мобильная адаптация для изображений hero */
@media (max-width: 768px) {
    .hero {
        margin-top: 60px; /* Меньшая высота navbar на мобильных */
        height: calc(100vh - 60px);
        height: calc(100svh - 60px);
    }
}

/* Портретные изображения используются на телефонах и планшетах. */
@media (orientation: portrait) and (max-width: 900px) {
    .hero-slider {
        display: none;
    }

    .hero-slider-mobile {
        display: block;
    }
}

/* Адаптация изображений */
@media (max-width: 768px) {
    .hero-content {
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
}

/* Слайдер шести шагов*/
.steps-slider {
    position: relative;
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 150%; /* Соотношение 1024x1536 (1536/1024=1.5) */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider-image.active {
    opacity: 1;
}

.slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-dot.active {
    background: var(--secondary-color);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .slider-container {
        padding-bottom: 150%; /* Сохраняем пропорции */
    }
    
    .slider-image {
        object-fit: contain; /* Показываем всё изображение */
    }
    
    .steps-content {
        grid-template-columns: 1fr;
    }
    
    .steps-slider {
        order: -1; /* Перемещаем слайдер вверх */
        margin-bottom: 2rem;
    }
}


/* Раздел стилей */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* Раздел метод */
.method-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.method-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.method-list {
    margin-top: 1.5rem;
    list-style: none;
}

.method-list li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.method-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.method-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Раздел «Легальные яды» */
.drugs {
    background-color: #f9f9f9;
}

.drugs-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.drugs-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.drugs-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.drugs-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

/* Раздел миссии */
.mission {
    background-color: var(--light-color);
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.mission-text blockquote {
    position: relative;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--dark-color);
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.mission-text blockquote p {
    margin-bottom: 1.5rem;
    font-style: italic;
}

.mission-text blockquote footer {
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
    font-style: normal;
}

.mission-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .mission-content {
        grid-template-columns: 1fr;
    }
    
    .mission-image {
        order: -1;
    }
    
    .mission-text blockquote {
        padding: 1.5rem;
        font-size: 1.1rem;
    }
}


/* Раздел контакты */
.section.contacts {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* Контактная информация (левая часть) */
.contacts-info {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contacts-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-invitation {
    max-width: 36rem;
}

.contacts-info .contact-invitation p {
    display: block;
    margin: 0 0 1rem;
    color: #455966;
    line-height: 1.65;
}

.contacts-info .contact-invitation .contact-lead {
    color: var(--primary-color);
    font-size: 1.08rem;
    font-weight: 600;
}

.contacts-info p,
.contacts-info [itemprop="contactPoint"] {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.contacts-info a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contacts-info a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.contacts-info .fas, 
.contacts-info .fab {
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

/* Форма обратной связи (правая часть) */
.contacts-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

#contact-form {
    scroll-margin-top: 92px;
}

.contacts-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.contacts-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    color: var(--secondary-color);
    font-weight: 700;
    text-align: center;
}

.contact-icon.max-icon {
    width: auto;
    min-width: 32px;
    font-size: 0.7rem;
    letter-spacing: -0.04em;
}

.contacts-form input:not([type="checkbox"]):not([type="radio"]):focus,
.contacts-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.14);
}

.contacts-form textarea {
    height: 150px;
    resize: vertical;
}

.contacts-form form {
    display: grid;
    gap: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-field {
    display: grid;
    gap: 0.42rem;
}

.form-field > label,
.reply-choice legend {
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.35;
}

.form-field.is-required .conditional-required::after {
    content: "*";
}

.form-hint {
    margin: 0;
    color: #66757f;
    font-size: 0.86rem;
    line-height: 1.45;
}

.reply-choice {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.reply-choice legend {
    margin-bottom: 0.6rem;
}

.reply-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.reply-option {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.reply-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.reply-option-content {
    display: grid;
    min-height: 88px;
    align-content: center;
    gap: 0.25rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid #d5dde2;
    border-radius: 10px;
    background: #fff;
    color: #40515d;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.reply-option-content strong {
    color: var(--primary-color);
    font-size: 0.96rem;
}

.reply-option-content small {
    color: #687985;
    line-height: 1.35;
}

.reply-option input:checked + .reply-option-content {
    border-color: var(--secondary-color);
    background: #f0f8fd;
    box-shadow: inset 0 0 0 1px var(--secondary-color);
}

.reply-option input:focus-visible + .reply-option-content {
    outline: 3px solid rgba(52, 152, 219, 0.25);
    outline-offset: 2px;
}

.captcha-shell {
    width: 100%;
    max-width: 100%;
    min-height: 100px;
    overflow-x: auto;
    padding-bottom: 2px;
}

#captcha-container {
    max-width: 100%;
}

.policy-consent {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.78rem;
    padding: 0.9rem 1rem;
    border: 1px solid #d8e3e8;
    border-radius: 10px;
    background: #f7fafb;
    cursor: pointer;
    line-height: 1.45;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.policy-consent:hover {
    border-color: #b8cbd6;
    background: #f2f8fb;
}

.policy-consent input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.policy-check {
    position: relative;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border: 2px solid #8fa4b0;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.policy-consent input:checked + .policy-check {
    border-color: var(--secondary-color);
    background: var(--secondary-color);
}

.policy-consent input:checked + .policy-check::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.policy-consent input:focus-visible + .policy-check {
    outline: 3px solid rgba(52, 152, 219, 0.25);
    outline-offset: 2px;
}

.policy-text {
    min-width: 0;
    font-size: 0.92rem;
}

.policy-text a,
.cookie-notice a {
    color: #176fa8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contacts-form button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 500;
    transition: background 0.3s ease;
}

.contacts-form button[type="submit"]:hover {
    background: var(--accent-color);
}

.contacts-form button[type="submit"]:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.form-response {
    min-height: 1.4em;
    margin-top: 10px;
    line-height: 1.45;
    white-space: pre-line;
}

.form-response.success {
    color: #237a57;
}

.form-response.error {
    color: #a72f3d;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .contacts-content {
        grid-template-columns: 1fr;
    }
    
    .contacts-info,
    .contacts-form {
        padding: 1.5rem;
    }
    
    .contacts-info a {
        margin-top: 0.3rem;
    }
    
    [itemprop="contactPoint"] {
        flex-direction: column;
        align-items: flex-start;
    }
    
    [itemprop="contactType"] {
        margin-bottom: 0.3rem;
        width: 100%;
    }

    .form-grid,
    .reply-options {
        grid-template-columns: 1fr;
    }

    .reply-option-content {
        min-height: 74px;
    }

    #contact-form {
        scroll-margin-top: 72px;
    }
}



/* Стили для фото профиля */
.profile-photo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-photo {
    width: 100%;
    max-width: 300px; /* Ширина */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    aspect-ratio: 300/352; /* Новые пропорции */
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Адаптация размеров */
@media (max-width: 992px) {
    .profile-photo {
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .profile-photo {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .profile-photo {
        max-width: 160px;
    }
}
@media (max-width: 768px) {
    .profile-photo-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .profile-name {
        text-align: center;
    }
}

@media (min-width: 992px) {
    .profile-name {
        text-align: left;
    }
}

.profile-name {
    transition: transform 0.3s ease, color 0.3s ease;
}

.profile-photo-container:hover .profile-name {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Вертикальное расположение на мобильных */
@media (max-width: 768px) {
    .contacts-info {
        align-items: center;
        text-align: center;
    }
    .profile-photo-container {
        margin: 0 auto 1.5rem;
    }
}

/* Горизонтальное расположение на десктопах */
@media (min-width: 992px) {
    .contacts-info {
        align-items: flex-start;
        text-align: left;
    }
}


/* Стили для имени */
.profile-name {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .profile-name {
        font-size: 1rem;
        margin-top: 0.8rem;
    }
}

/* Микроразметка для имени */
[itemprop="name"] {
    display: block;
    text-align: inherit;
}



/* Футер */
.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
}

/* Стили кнопок */
.btn {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Адаптивные стили  */
@media (max-width: 992px) {
    .method-content,
    .contacts-content {
        grid-template-columns: 1fr;
    }
    
    .method-image {
        order: -1;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        padding: 2rem 0;
        transition: 0.3s;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
        margin: 0.15rem 0;
        text-align: center;
    }

    .nav-menu .nav-link {
        display: block;
        margin: 0;
        padding: 0.8rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        width: 100%;
        padding-right: 1rem;
        padding-left: 1rem;
    }
}

/* Анимация */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 1s ease-out;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Steps Section */
.steps {
    background-color: var(--light-color);
}

.steps-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.steps-list {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.steps-list li {
    margin-bottom: 1rem;
    font-weight: 500;
    position: relative;
}

.steps-list li::marker {
    color: var(--secondary-color);
    font-weight: bold;
}

.steps-note {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-style: italic;
    position: relative;
    border-left: 4px solid var(--accent-color);
}
.steps-note p.author {
	
	text-align: right;
}
.steps-note a {
	color: black;
	text-decoration: none;
	
}	
.steps-note a:hover {
	border-bottom: 1px dashed blue;
	
}

.steps-note::before {
    content: '"';
    font-size: 4rem;
    color: var(--secondary-color);
    opacity: 0.2;
    position: absolute;
    top: -1rem;
    left: 0.5rem;
}

.steps-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
    .steps-content {
        grid-template-columns: 1fr;
    }
    
    .steps-image {
        order: -1;
    }
}
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    overflow: auto;
    padding: 4vh 1rem;
    background-color: rgba(21, 32, 41, 0.68);
}

.modal-content {
    position: relative;
    width: min(100%, 940px);
    max-height: 92vh;
    margin: 0 auto;
    overflow-y: auto;
    border-radius: 14px;
    background-color: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.close {
    position: sticky;
    z-index: 2;
    float: right;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    margin: 12px 12px -54px 0;
    border: 0;
    border-radius: 50%;
    background: #eef3f6;
    color: #34495e;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.close:hover,
.close:focus-visible {
    background: #dfe9ee;
    color: #a72f3d;
}

.modal-open {
    overflow: hidden;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.legal-loading {
    padding: 3rem;
    text-align: center;
}

.legal-page {
    min-height: 100vh;
    background: #f2f6f7;
    padding: 2rem 1rem;
}

.legal-document {
    width: min(100%, 940px);
    margin: 0 auto;
    padding: 2.3rem clamp(1.1rem, 4vw, 3.5rem);
    border-radius: 14px;
    background: #fff;
    color: #283842;
    box-shadow: 0 12px 34px rgba(34, 55, 68, 0.09);
}

.modal-content .legal-document {
    width: 100%;
    box-shadow: none;
}

.legal-document h1 {
    margin: 0 3rem 0.65rem 0;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    line-height: 1.2;
}

.legal-document h2 {
    margin: 2rem 0 0.7rem;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.35;
    scroll-margin-top: 1rem;
}

.legal-document h3 {
    margin: 1.2rem 0 0.45rem;
    color: #34495e;
    font-size: 1.05rem;
}

.legal-document p,
.legal-document li {
    line-height: 1.65;
}

.legal-document p {
    margin: 0.65rem 0;
}

.legal-document ul,
.legal-document ol {
    margin: 0.55rem 0 0.9rem;
    padding-left: 1.35rem;
}

.legal-document a {
    color: #176fa8;
    overflow-wrap: anywhere;
}

.legal-document .legal-meta {
    margin-bottom: 1.4rem;
    color: #687985;
}

.legal-document .legal-note {
    margin: 1rem 0;
    padding: 0.9rem 1rem;
    border-left: 4px solid var(--secondary-color);
    border-radius: 6px;
    background: #f0f8fd;
}

.legal-document .legal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 2rem;
}

.legal-document .legal-button {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    background: var(--secondary-color);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.cookie-notice {
    position: fixed;
    z-index: 9000;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    width: min(calc(100% - 2rem), 1080px);
    margin: 0 auto;
    padding: 1rem 1.1rem;
    border: 1px solid #d6e1e6;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    color: #34495e;
    box-shadow: 0 14px 42px rgba(24, 43, 55, 0.2);
    backdrop-filter: blur(8px);
}

.cookie-notice[hidden] {
    display: none !important;
}

.cookie-notice-text {
    max-width: 720px;
    font-size: 0.93rem;
    line-height: 1.5;
}

.cookie-notice-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.6rem;
}

.cookie-button {
    min-height: 42px;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    cursor: pointer;
    font: 700 0.86rem var(--font-main);
}

.cookie-button.primary {
    background: var(--secondary-color);
    color: #fff;
}

.cookie-button.secondary {
    background: #fff;
    color: #176fa8;
}

.mobile-reply-bar {
    display: none;
}

@media (max-width: 760px) {
    .modal {
        padding: 0;
    }

    .modal-content {
        min-height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .legal-page {
        padding: 0;
    }

    .legal-document {
        border-radius: 0;
        padding: 1.5rem 1rem 2.5rem;
    }

    .cookie-notice {
        align-items: stretch;
        flex-direction: column;
        gap: 0.85rem;
        padding: 0.9rem;
    }

    .cookie-notice-actions,
    .cookie-button {
        width: 100%;
    }

    .cookie-notice-actions {
        flex-direction: column-reverse;
    }

    .mobile-reply-bar {
        position: fixed;
        z-index: 8500;
        right: 0.75rem;
        bottom: max(0.75rem, env(safe-area-inset-bottom));
        left: 0.75rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem;
        padding: 0.4rem;
        border: 1px solid rgba(255, 255, 255, 0.78);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 12px 30px rgba(28, 76, 107, 0.32);
        backdrop-filter: blur(10px);
        opacity: 0;
        pointer-events: none;
        transform: translateY(calc(100% + 2rem));
        transition: opacity 0.22s ease, transform 0.22s ease;
    }

    .mobile-reply-bar.is-visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .mobile-reply-action {
        min-width: 0;
        min-height: 52px;
        padding: 0.7rem 0.55rem;
        border: 0;
        border-radius: 12px;
        color: #fff;
        cursor: pointer;
        font: 800 0.86rem/1.25 var(--font-main);
        text-align: center;
        transition: filter 0.2s ease, transform 0.2s ease;
    }

    .mobile-reply-action.phone {
        background: var(--secondary-color);
    }

    .mobile-reply-action.email {
        background: var(--primary-color);
    }

    .mobile-reply-action:active {
        transform: translateY(1px);
    }

    .mobile-reply-action:hover {
        filter: brightness(1.08);
    }

    .mobile-reply-action:focus-visible {
        outline: 3px solid rgba(52, 152, 219, 0.35);
        outline-offset: 2px;
    }
}

@media (max-width: 360px) {
    .mobile-reply-action {
        font-size: 0.78rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-reply-bar,
    .mobile-reply-action {
        transition: none;
    }
}
