/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Основной цвет - для шапки и футера */
    --primary-dark: #001737;
    --base-bg: #001737;
    
    /* Градация цветов для секций (от темного к светлому) */
    --section-1: #002d5f;  /* +20% светлее основного */
    --section-2: #003366;  /* +30% светлее */
    --section-3: #004080;  /* +40% светлее */
    --section-4: #004d99;  /* +50% светлее */
    
    /* Цвета для шапки */
    --line: rgba(255, 255, 255, 0.2);
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.75);
    
    --text-white: #ffffff;
    --text-light-blue: #a8c8f0;
    --accent-gold: #4a9eff;
    --accent-blue: #4a9eff;
    --section-bg: rgba(255, 255, 255, 0.05);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Skip to main content for accessibility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header,
.header-main {
    background: var(--base-bg);
}

.header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    width: 100%;
    background: var(--base-bg) !important;
    margin: 0;
    padding: 0;
    display: block;
}

#header-placeholder {
    width: 100%;
    z-index: 1000;
    display: block;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header.scrolled .header-main {
    padding: 8px 0;
}

/* При прокрутке меняем структуру на одну строку */
.header.scrolled .header-content-wrapper {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

/* Скрываем меню при прокрутке */
.header.scrolled .header-nav {
    display: none !important;
}

/* Скрываем разделители при прокрутке */
.header.scrolled .nav-divider {
    display: none;
}

/* Логотип становится маленьким и по центру */
.header.scrolled .header-logo-center {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header.scrolled .nav-logo-img {
    height: 70px;
}

/* Адрес и телефон остаются крупными и в одной строке */
.header.scrolled .header-left-section {
    grid-column: 1;
    grid-row: 1;
    flex-direction: row;
    align-items: center;
    gap: 0;
    justify-content: flex-start;
}

.header.scrolled .header-right-section {
    grid-column: 3;
    grid-row: 1;
    flex-direction: row;
    align-items: center;
    gap: 0;
    justify-content: flex-end;
}

/* Адрес и телефон остаются крупными */
.header.scrolled .header-location {
    font-size: 16px !important;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 500;
}

.header.scrolled .header-location .location-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header.scrolled .header-phone {
    font-size: 16px !important;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 500;
}

.header.scrolled .phone-link {
    font-size: 18px !important;
    font-weight: 600;
}

.header.scrolled .phone-24h {
    display: none;
}

.header-main {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
    position: relative;
}

/* Обертка для всего контента шапки */
.header-content-wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 30px;
    position: relative;
}

/* Логотип по центру (выше) */
.header-logo-center {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

/* Левая и правая секции */
.header-left-section,
.header-right-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.3s ease;
}

.header-left-section {
    grid-column: 1;
    align-items: flex-start;
}

.header-right-section {
    grid-column: 3;
    align-items: flex-end;
}

/* Горизонтальная линия над меню */
.nav-divider {
    width: 100%;
    height: 1px;
    background: var(--line);
    margin: 12px 0 8px 0;
}

.header-left-section .nav-divider,
.header-right-section .nav-divider {
    width: 100%;
}

.header-location {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 16px;
    color: var(--text-white);
    transition: font-size 0.3s;
    margin-bottom: 0;
    font-weight: 500;
}

.location-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 16px;
    color: var(--text-white);
    transition: font-size 0.3s;
    margin-top: 0;
    text-align: right;
    font-weight: 500;
}

.phone-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

.location-link {
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.3s;
}

.location-link:hover {
    color: var(--accent-gold);
}

.logo-link {
    display: inline-block;
    text-decoration: none;
}

.header-location .icon,
.header-phone .icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.whatsapp-icon {
    width: 20px;
    height: 20px;
}

.phone-link {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: color 0.3s;
}

.phone-link:hover {
    color: var(--accent-gold);
}

.phone-24h {
    font-size: 12px;
    color: var(--text-light-blue);
    margin-top: 2px;
}

/* Navigation */
.header-nav {
    padding: 0;
    width: 100%;
    margin-top: 15px;
}

.header-nav .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
    align-items: center;
    width: 100%;
    flex: 1;
}

.header-nav-left .nav-list {
    justify-content: space-between;
    width: 100%;
}

.header-nav-right .nav-list {
    justify-content: space-between;
    width: 100%;
}

/* Пункты меню */
.header-nav .nav-list li {
    position: relative;
    flex: 1;
    text-align: center;
}

.header-nav .nav-list a {
    color: var(--muted);
    text-decoration: none;
    font-size: 18px;
    padding: 12px 20px;
    display: block;
    border-radius: 10px;
    position: relative;
    transition: all 0.3s;
    font-weight: 500;
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

.header-nav .nav-list .nav-parent {
    color: var(--muted);
    font-size: 18px;
    padding: 12px 20px;
    display: block;
    border-radius: 10px;
    position: relative;
    transition: all 0.3s;
    font-weight: 500;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    cursor: default;
}

/* Вертикальные разделители между пунктами */
.header-nav .nav-list li:not(:last-child) a::after,
.header-nav .nav-list li:not(:last-child) .nav-parent::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: var(--line);
    opacity: 0.9;
}

.nav-item.dropdown {
    position: relative;
}

.nav-item.dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-dark);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 2000;
}

.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown:focus-within .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text-white);
    text-decoration: none;
    font-size: 16px;
    text-align: center;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
}

.logo-link-header {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo-link-header:hover {
    opacity: 0.8;
}

.nav-logo-img {
    height: 200px;
    width: auto;
    display: block;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
    transition: height 0.3s;
    object-fit: contain;
}

/* Hover */
.header-nav .nav-list a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    background-color: var(--section-1);
}

.hero .container {
    padding-left: 0;
    padding-right: 20px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: -3%;
    width: 103%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 49%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 23, 55, 0.3), rgba(0, 23, 55, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    text-align: left;
    z-index: 2;
    padding: 100px 60px 100px 50px;
    max-width: 55%;
    margin-right: 40px;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero-title {
    font-family: 'Great Vibes', cursive;
    font-size: 110px;
    font-weight: 400;
    margin-bottom: 30px;
    color: var(--text-white);
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.7);
    line-height: 1.05;
    letter-spacing: 1.5px;
    text-align: left;
    white-space: normal;
    width: 100%;
}

.hero-title-line {
    display: block;
    white-space: nowrap;
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 40px;
    font-weight: 400;
    color: var(--text-white);
    max-width: 100%;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    line-height: 1.5;
    letter-spacing: 0.8px;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    width: 100%;
}

/* Section Titles */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-white);
}

/* What to Do Section */
.what-to-do {
    padding: 80px 0;
    background-color: var(--section-2);
}

.steps-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: 20px;
    margin-bottom: 40px;
    padding: 50px 30px;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.15) 0%, rgba(0, 45, 90, 0.25) 100%);
    border-radius: 20px;
    border: 2px solid rgba(74, 158, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 40px rgba(74, 158, 255, 0.08);
    position: relative;
    overflow: visible;
    backdrop-filter: blur(10px);
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(74, 158, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.step-link-wrap {
    display: flex;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.step-link-wrap .step {
    width: 100%;
    min-height: 0;
}

.step {
    text-align: center;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: auto;
    min-height: auto;
    box-sizing: border-box;
    min-width: 0;
}

.step:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(74, 158, 255, 0.2);
}

/* Плашки со ссылкой на звонок — лёгкая подсветка по краям */
.step-call {
    border: 2px solid rgba(74, 158, 255, 0.5);
    box-shadow: 0 0 16px rgba(74, 158, 255, 0.25);
}

.step-link-wrap:hover .step-call {
    border-color: var(--accent-blue);
    box-shadow: 0 0 24px rgba(74, 158, 255, 0.4);
}

.step-number {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, rgba(74, 158, 255, 0.7) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(74, 158, 255, 0.4);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 14px auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: relative;
}

.step:hover .step-icon {
    transform: scale(1.08) translateY(-2px);
}

.step-icon svg {
    width: 50px;
    height: 50px;
}

/* Иконки блока «Умер человек» — отдельные файлы ic1–ic5.webp */
.step-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: inherit;
}

.step-text {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    max-width: 220px;
    margin: 8px auto 0;
    min-height: 65px;
    flex: 1 1 auto;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.step-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.step-link:hover {
    color: var(--text-white);
    text-decoration: underline;
}

.step-arrow {
    width: 28px;
    justify-self: center;
    align-self: center;
    color: rgba(74, 158, 255, 0.6);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-arrow svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.step-arrow:hover {
    color: var(--accent-blue);
    transform: translateX(3px);
}

.warning-box {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 87, 34, 0.2) 100%);
    border: 3px solid #ff9800;
    border-radius: 15px;
    padding: 25px 30px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4), inset 0 0 20px rgba(255, 152, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.warning-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at left center, rgba(255, 152, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.warning-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 152, 0, 0.2);
    border-radius: 50%;
    color: #ff9800;
}

.warning-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.warning-box strong {
    color: #ff9800;
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}

.warning-link {
    color: #ff9800;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
}

.warning-link:hover {
    color: #ffb74d;
    text-decoration: underline;
}

.warning-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: linear-gradient(rgba(0, 23, 55, 0.65), rgba(0, 23, 55, 0.75)), url('images/banPr.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    z-index: 1;
}

.cta-content {
    position: relative;
    text-align: center;
    z-index: 2;
    padding: 80px 20px;
    max-width: 900px;
}

.cta-text {
    font-size: 28px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    font-weight: 400;
}

.cta-hours {
    font-size: 20px;
    color: var(--text-white);
    font-weight: 500;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--section-1);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-item {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-item:hover .service-image img {
    transform: scale(1.05);
}

.service-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
    padding: 15px 10px 10px;
    color: var(--text-white);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    z-index: 2;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    background-color: var(--section-2);
}

.pricing-title {
    font-size: 32px;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.category-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 30px;
    color: var(--accent-blue);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.packages {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.package {
    background-color: rgba(0, 23, 55, 0.9);
    border: 2px solid var(--accent-blue);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
    position: relative;
    margin-bottom: 15px;
}

.package:not(:last-child) {
    border-bottom: 1px solid rgba(74, 158, 255, 0.3);
    padding-bottom: 25px;
    margin-bottom: 15px;
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.package-info-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--accent-blue);
    background: rgba(74, 158, 255, 0.2);
    color: var(--accent-blue);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.package-info-btn:hover {
    background-color: var(--accent-blue);
    color: var(--text-white);
    transform: scale(1.1);
}

.package:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}

.package-title {
    font-size: 20px;
    margin: 0;
    color: var(--text-white);
    font-weight: 600;
}

.package-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.package-description {
    font-size: 15px;
    color: var(--text-white);
    line-height: 1.6;
    flex: 1;
    min-width: 250px;
    margin: 0;
}

.package-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-blue);
    white-space: nowrap;
    flex-shrink: 0;
}

.pricing-note {
    font-size: 14px;
    color: var(--text-white);
    text-align: center;
    max-width: 900px;
    margin: 40px auto 0;
    line-height: 1.8;
    padding: 25px;
    background-color: rgba(0, 23, 55, 0.9);
    border: 2px solid var(--accent-blue);
    border-radius: 12px;
}

/* Reviews Section */
.reviews {
    position: relative;
    padding: 80px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: linear-gradient(rgba(0, 23, 55, 0.65), rgba(0, 23, 55, 0.75)), url('images/banOt.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    z-index: 1;
}

.reviews-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
}

.carousel-btn {
    background: transparent;
    border: none;
    color: var(--accent-blue);
    width: 44px;
    height: 44px;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.25s, opacity 0.25s, transform 0.2s;
    flex-shrink: 0;
}

.carousel-btn:hover {
    color: var(--text-white);
    opacity: 0.9;
    transform: scale(1.15);
}

.carousel-btn svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.review-content {
    flex: 1;
    text-align: center;
    padding: 40px;
    background-color: rgba(0, 23, 55, 0.85);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: min-height 0.5s ease;
    backdrop-filter: blur(5px);
}

.review-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-white);
    font-style: italic;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 1;
}

.review-author {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--accent-blue);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.review-source {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background-color 0.25s ease, width 0.25s ease, transform 0.2s ease;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.15);
}

.dot.active {
    background-color: var(--accent-gold);
    width: 24px;
    border-radius: 6px;
}

/* Contacts Section */
.contacts {
    padding: 80px 0;
    background-color: var(--section-1);
}

.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contacts-cta {
    text-align: center;
    font-size: 24px;
    margin-bottom: 40px;
    color: var(--accent-gold);
    font-weight: 600;
}

.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    color: var(--text-white);
}

.contact-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    color: var(--accent-gold);
}

.contact-item a {
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--accent-gold);
}

.contact-messengers {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
    align-items: flex-start;
}

.messenger-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-white);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s, transform 0.2s;
}

.messenger-link:hover {
    color: var(--accent-blue);
    transform: translateX(5px);
}

.messenger-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: none;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 0.8fr 1fr 0.9fr 1.5fr;
    gap: 24px;
    align-items: start;
}

.footer-dev {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: right;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-dev a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-dev a:hover {
    color: var(--accent-blue);
}

.footer-dev-logo {
    height: 18px;
    width: auto;
    vertical-align: middle;
    margin: 0 4px;
}

.footer-logo-column {
    display: flex;
    align-items: flex-start;
}

.footer-logo {
    max-height: 150px;
    width: auto;
    display: block;
}

.footer-contact-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-address,
.footer-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--text-light-blue);
    font-size: 14px;
}

.footer-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.footer-address a,
.footer-phone a {
    color: var(--text-light-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-address a:hover,
.footer-phone a:hover {
    color: var(--text-white);
}

.footer-messengers {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.footer-messenger-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light-blue);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-messenger-link:hover {
    color: var(--accent-blue);
}

.footer-messenger-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    object-fit: contain;
}

.footer-rating {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.footer-rating iframe {
    border: none;
    border-radius: 4px;
}

.rating-text {
    color: var(--text-light-blue);
    font-size: 12px;
    margin-top: 5px;
}


.footer-column-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-white);
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links-columns {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 10px 20px;
}

.footer-links-columns .footer-links {
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-light-blue);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        min-height: 500px;
        justify-content: flex-end;
    }
    
    .hero .container {
        padding-left: 0;
        padding-right: 15px;
    }
    
    .hero-content {
        max-width: 70%;
        text-align: right;
        padding: 40px 20px 40px 15px;
        margin-right: 0;
        margin-left: auto;
        align-items: flex-end;
    }
    
    .hero-background::before {
        background: linear-gradient(to right, rgba(0, 23, 55, 0.2), rgba(0, 23, 55, 0.8));
    }
    
    .hero-title {
        font-size: 56px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .pricing-categories {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-logo-column {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

/* Адаптив: на узких экранах */
@media (max-width: 980px) {
    .header-top-row {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .header-location,
    .header-phone {
        align-items: flex-start;
        text-align: left;
    }
    
    .header-phone {
        align-self: flex-end;
        align-items: flex-end;
        text-align: right;
    }
    
    .nav-list.nav-split {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .nav-logo {
        grid-column: 1 / -1;
        order: -1;
        margin-bottom: 10px;
    }
    
    .nav-list.nav-split > li:not(.nav-logo) a::after {
        display: none;
    }
    
    .steps-container {
        gap: 15px;
        padding: 40px 25px;
    }
    
    .step {
        padding: 18px 12px;
    }
    
    .step-icon {
        width: 90px;
        height: 90px;
    }
    
    .step-arrow svg {
        width: 24px;
        height: 24px;
    }
}

/* Мобильная версия шапки */
.header-mobile {
    display: none;
}

.mobile-menu-toggle {
    display: none;
}

.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    /* Скрываем десктопную версию */
    .header-content-wrapper {
        display: none !important;
    }
    
    /* Показываем мобильную версию */
    .header-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 0;
        gap: 15px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        position: relative;
    }
    
    .mobile-menu-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background: var(--text-white);
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .mobile-logo {
        flex: 1;
        display: flex;
        justify-content: center;
    }
    
    .mobile-logo .nav-logo-img {
        height: 60px;
        max-width: 150px;
    }
    
    .header-phone-mobile {
        display: flex;
        align-items: center;
    }
    
    .header-phone-mobile .phone-link {
        font-size: 16px;
        font-weight: 600;
        color: var(--text-white);
        text-decoration: none;
        white-space: nowrap;
    }
    
    /* Мобильное меню */
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--base-bg);
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }
    
    .mobile-menu.active {
        left: 0;
    }
    
    .mobile-menu-list {
        list-style: none;
        margin: 0;
        padding: 20px 0;
    }
    
    .mobile-menu-list > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-menu-list > li > a,
    .mobile-dropdown-toggle {
        display: block;
        padding: 15px 20px;
        color: var(--text-white);
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        transition: background 0.3s;
    }
    
    .mobile-menu-list > li > a:hover,
    .mobile-dropdown-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .mobile-dropdown-toggle {
        position: relative;
        cursor: pointer;
    }
    
    .mobile-dropdown-toggle::after {
        content: '▼';
        position: absolute;
        right: 20px;
        font-size: 12px;
        transition: transform 0.3s;
    }
    
    .mobile-dropdown.active .mobile-dropdown-toggle::after {
        transform: rotate(180deg);
    }
    
    .mobile-dropdown-menu {
        list-style: none;
        margin: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: rgba(0, 0, 0, 0.2);
    }
    
    .mobile-dropdown.active .mobile-dropdown-menu {
        max-height: 300px;
    }
    
    .mobile-dropdown-menu li a {
        display: block;
        padding: 12px 20px 12px 40px;
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        font-size: 14px;
        transition: background 0.3s;
    }
    
    .mobile-dropdown-menu li a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .mobile-menu-contacts {
        padding: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 20px;
    }
    
    .mobile-location {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 15px;
        color: var(--text-white);
    }
    
    .mobile-location .icon {
        flex-shrink: 0;
    }
    
    .mobile-location .location-link {
        color: var(--text-white);
        text-decoration: none;
        font-size: 14px;
        line-height: 1.5;
    }
    
    .mobile-phone-info {
        color: rgba(255, 255, 255, 0.8);
        font-size: 12px;
    }
    
    /* Overlay при открытом меню */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    /* Липкая шапка на мобильных */
    .header.scrolled .header-mobile {
        padding: 8px 0;
    }
    
    .header.scrolled .mobile-logo .nav-logo-img {
        height: 50px;
    }
    
    .header.scrolled .header-phone-mobile .phone-link {
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }
    
    .pricing-categories {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        min-height: 350px;
    }
    
    .hero-content {
        max-width: 65%;
        padding: 30px 15px 30px 10px;
        text-align: right;
        margin-right: 0;
        margin-left: auto;
        align-items: flex-end;
    }
    
    .hero .container {
        padding-left: 0;
        padding-right: 12px;
    }
    
    .hero-title {
        font-size: 36px;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-top: 15px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .what-to-do {
        padding: 50px 0;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        padding: 25px 15px;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .step {
        padding: 20px 12px;
        height: auto;
        min-height: auto;
    }
    
    .step-number {
        top: 12px;
        right: 12px;
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .step-icon {
        width: 80px;
        height: 80px;
        margin: 5px auto 15px;
    }
    
    .step-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin: 5px 0;
        justify-self: center;
    }
    
    .step-arrow svg {
        width: 20px;
        height: 20px;
    }
    
    .step-text {
        max-width: 100%;
        min-height: auto;
        font-size: 14px;
        margin-top: 8px;
    }
    
    .warning-box {
        padding: 20px 15px;
        margin-top: 30px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .warning-icon {
        width: 35px;
        height: 35px;
    }
    
    .warning-box strong {
        font-size: 16px;
    }
    
    .warning-text {
        font-size: 14px;
    }
    
    .cta-section {
        padding: 50px 15px;
    }
    
    .cta-content h2 {
        font-size: 24px;
    }
    
    .cta-content p {
        font-size: 16px;
        margin-top: 15px;
    }
    
    .services {
        padding: 50px 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .service-item {
        min-height: 120px;
    }
    
    .service-label {
        font-size: 13px;
        padding: 8px;
    }
    
    .pricing {
        padding: 50px 0;
    }
    
    .pricing-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .pricing-categories {
        gap: 20px;
    }
    
    .package {
        padding: 20px 15px;
    }
    
    .package-title {
        font-size: 20px;
    }
    
    .package-content {
        flex-direction: column;
        gap: 15px;
        margin-top: 15px;
    }
    
    .package-description {
        font-size: 14px;
    }
    
    .package-price {
        font-size: 24px;
    }
    
    .reviews {
        padding: 50px 0;
    }
    
    .review-content {
        padding: 25px 20px;
        margin: 0 15px;
    }
    
    .review-text {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .review-author {
        font-size: 14px;
        margin-top: 15px;
    }
    
    .reviews-carousel {
        position: relative;
        padding: 0 8px;
    }
    
    /* Стрелки по бокам блока отзыва, не уходят вниз */
    .reviews-carousel .carousel-btn-prev,
    .reviews-carousel .carousel-btn-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
        width: 40px;
        height: 40px;
    }
    
    .reviews-carousel .carousel-btn-prev {
        left: 0;
    }
    
    .reviews-carousel .carousel-btn-next {
        right: 0;
    }
    
    .reviews-carousel .carousel-btn:hover {
        transform: translateY(-50%) scale(1.1);
    }
    
    /* Чтобы текст не заходил под стрелки */
    .reviews-carousel .review-content {
        padding-left: 44px;
        padding-right: 44px;
    }
    
    .carousel-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .contacts {
        padding: 40px 0;
    }
    
    .contacts-cta {
        margin-bottom: 24px;
        font-size: 20px;
    }
    
    .contacts-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contacts .map-container iframe {
        height: 300px;
    }
    
    .contacts-info {
        gap: 12px;
    }
    
    .contact-item {
        padding: 8px 0;
        margin-bottom: 0;
        gap: 10px;
        font-size: 16px;
    }
    
    .contact-item h3 {
        font-size: 18px;
    }
    
    .contact-item p,
    .contact-item a {
        font-size: 16px;
    }
    
    .contact-messengers {
        gap: 10px;
        margin-top: 4px;
    }
    
    .messenger-link {
        font-size: 15px;
    }

    .info-grid,
    .info-columns {
        grid-template-columns: 1fr;
    }

    .info-card-body {
        grid-template-columns: 1fr;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-dev {
        margin-top: 20px;
        font-size: 12px;
        text-align: center;
    }
    
    .footer-logo-column {
        display: flex;
        justify-content: center;
    }
    
    .footer-column-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    .footer-links-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .hero {
        min-height: 300px;
        justify-content: flex-end;
    }
    
    .hero .container {
        padding-left: 0;
        padding-right: 12px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-background::before {
        background: linear-gradient(to right, rgba(0, 23, 55, 0.2), rgba(0, 23, 55, 0.85));
    }
    
    .section-title {
        font-size: 22px;
        margin-bottom: 25px;
    }
    
    .what-to-do {
        padding: 30px 0;
    }
    
    .steps-container {
        padding: 15px 8px;
        gap: 8px;
    }
    
    .step {
        padding: 10px 6px;
        height: auto;
        min-height: auto;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
        margin: 3px auto 8px;
    }
    
    .step-icon svg {
        width: 25px;
        height: 25px;
    }
    
    .step-text {
        font-size: 11px;
        line-height: 1.3;
        margin-top: 4px;
    }
    
    .step-number {
        width: 20px;
        height: 20px;
        font-size: 11px;
        top: 6px;
        right: 6px;
    }
    
    .step-arrow {
        margin: 3px 0;
    }
    
    .step-arrow svg {
        width: 16px;
        height: 16px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .service-item {
        min-height: 100px;
    }
    
    .service-label {
        font-size: 12px;
        padding: 8px 4px;
    }
    
    .pricing-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .pricing-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .category-title {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .packages {
        gap: 8px;
    }
    
    .package {
        padding: 10px 8px;
        margin-bottom: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    
    .package-header {
        display: flex;
        align-items: center;
        margin-bottom: 0;
        flex: 1;
    }
    
    .package-info-btn {
        display: none;
    }
    
    .package-title {
        font-size: 13px;
        margin: 0;
    }
    
    .package-content {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 0;
        margin-top: 0;
        flex-shrink: 0;
    }
    
    .package-description {
        display: none;
    }
    
    .package-price {
        font-size: 14px;
        margin: 0;
        white-space: nowrap;
    }
    
    .pricing-note {
        font-size: 11px;
        padding: 12px 8px;
        margin-top: 20px;
        line-height: 1.4;
    }
    
    .review-content {
        padding: 20px 15px;
        margin: 0 10px;
    }
    
    .review-text {
        font-size: 14px;
    }
    
    .contacts {
        padding: 28px 0;
    }
    
    .contacts-cta {
        margin-bottom: 14px;
        font-size: 18px;
    }
    
    .contacts-wrapper {
        gap: 14px;
    }
    
    .contacts-info {
        gap: 6px;
    }
    
    .contact-item {
        padding: 4px 0;
        gap: 8px;
        font-size: 14px;
    }
    
    .contact-item p,
    .contact-item a {
        font-size: 14px;
    }
    
    .contact-icon {
        width: 18px;
        height: 18px;
    }
    
    .contact-messengers {
        gap: 6px;
        margin-top: 2px;
    }
    
    .messenger-link {
        font-size: 14px;
        gap: 8px;
    }
    
    .messenger-icon {
        width: 18px;
        height: 18px;
    }
    
    .contacts .map-container iframe {
        height: 220px;
    }

    .footer-links-columns {
        grid-template-columns: 1fr;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--primary-dark);
    margin: auto;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s;
}

.modal-content-large {
    max-width: 900px;
}

.modal-close {
    color: var(--text-white);
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--accent-gold);
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-white);
    padding-right: 40px;
}

.modal-body {
    color: var(--text-light-blue);
    line-height: 1.8;
}

.modal-body h3 {
    color: var(--accent-gold);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 20px;
}

.modal-body ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.modal-body li {
    margin-bottom: 10px;
}

.service-detail-btn {
    display: inline-block;
    padding: 14px 36px;
    background-color: var(--accent-blue);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    border: 2px solid var(--accent-blue);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(74, 158, 255, 0.3);
}

.service-detail-btn:hover {
    background-color: transparent;
    color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(74, 158, 255, 0.5);
}

.service-detail-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(74, 158, 255, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.page-content {
    padding: 0;
    min-height: auto;
    background-color: var(--section-1);
}

.page-section {
    background-color: var(--section-1);
    padding: 40px 0;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-white);
}

/* Подложка под заглавие услуги — картинка за названием (h1), параллакс */
.page-title-banner {
    position: relative;
    min-height: 200px;
    margin: 0 0 32px 0;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-title-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 23, 55, 0.88) 0%, rgba(0, 23, 55, 0.75) 100%);
    border-radius: 12px;
    z-index: 0;
}

.page-title-banner .page-title {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .page-title-banner {
        min-height: 160px;
        margin-bottom: 24px;
        background-attachment: scroll;
    }
    
    .page-title-banner .page-title {
        font-size: 28px;
    }
}

.page-text {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light-blue);
    line-height: 1.8;
    font-size: 16px;
}

.page-text.morgue-content {
    max-width: 1000px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    margin-bottom: 40px;
}

.info-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.info-card {
    background: rgba(0, 23, 55, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.info-title {
    font-size: 20px;
    color: var(--text-white);
    margin-bottom: 16px;
    font-weight: 600;
}

.info-card-body {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 20px;
    align-items: start;
}

.info-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.info-meta li {
    color: var(--text-light-blue);
    line-height: 1.7;
}

.info-meta li {
    display: grid;
    grid-template-columns: minmax(140px, 160px) 1fr;
    gap: 12px;
    align-items: start;
}

.info-meta-vertical li {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-meta-label {
    color: var(--text-white);
    font-weight: 600;
    white-space: nowrap;
}

.info-meta-vertical .info-meta-label {
    white-space: normal;
    margin-bottom: 4px;
}

.info-meta-value {
    color: var(--text-light-blue);
    min-width: 0;
}

.info-meta-line {
    display: block;
}

.nowrap {
    white-space: nowrap;
}

.info-map {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.info-map iframe {
    display: block;
    width: 100%;
    height: 280px;
    border: 0;
}

.info-callout {
    border: 2px solid var(--accent-blue);
    background: rgba(0, 23, 55, 0.8);
}

.callout-title {
    font-size: 18px;
    color: var(--text-white);
    margin-bottom: 12px;
    font-weight: 600;
}

.callout-phone {
    display: inline-block;
    font-size: 22px;
    font-weight: 600;
    color: var(--accent-blue);
    text-decoration: none;
    margin-bottom: 8px;
}

.callout-phone:hover {
    color: var(--text-white);
}

.callout-text {
    color: var(--text-light-blue);
    font-style: italic;
}

.info-block {
    margin-bottom: 32px;
}

.info-block h2 {
    font-size: 22px;
    color: var(--text-white);
    margin-bottom: 16px;
    font-weight: 600;
}

/* Отступ для якорей, чтобы не скрывались под липкой шапкой */
.info-block[id] {
    scroll-margin-top: 100px;
    padding-top: 20px;
}

.info-anchors {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.info-anchor-link {
    display: inline-block;
    padding: 10px 16px;
    background-color: rgba(74, 158, 255, 0.1);
    border: 1px solid var(--accent-blue);
    border-radius: 8px;
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.info-anchor-link:hover {
    background-color: var(--accent-blue);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

/* Documents form styles */
.documents-form-container {
    margin-top: 32px;
    padding: 24px;
    background-color: rgba(0, 23, 55, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(74, 158, 255, 0.2);
}

.documents-form {
    margin-top: 20px;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
}

.form-group label {
    display: block;
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
    width: 100%;
}

.form-group select {
    display: block;
    width: 100%;
    max-width: 400px;
    padding: 10px 14px;
    background-color: rgba(0, 23, 55, 0.6);
    border: 1px solid var(--accent-blue);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-group select:hover {
    border-color: var(--accent-blue);
    background-color: rgba(0, 23, 55, 0.8);
}

.form-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.2);
}

.form-group select option {
    background-color: var(--primary-dark);
    color: var(--text-white);
}

.form-submit-btn {
    padding: 12px 32px;
    background-color: var(--accent-blue);
    color: var(--text-white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.form-submit-btn:hover {
    background-color: #3a8eef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.4);
}

.form-submit-btn:active {
    transform: translateY(0);
}

.documents-result {
    margin-top: 24px;
    padding: 20px;
    background-color: rgba(0, 23, 55, 0.5);
    border-radius: 8px;
    border: 1px solid var(--accent-blue);
}

.result-title {
    color: var(--text-white);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.documents-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.documents-list li {
    padding: 10px 0;
    padding-left: 24px;
    color: var(--text-light-blue);
    font-size: 15px;
    line-height: 1.6;
    position: relative;
}

.documents-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-size: 20px;
    line-height: 1;
}

.documents-list li:not(:last-child) {
    border-bottom: 1px solid rgba(74, 158, 255, 0.1);
}

/* Форма уже в колонку, медиа-запрос не нужен */

.info-subtitle {
    font-size: 18px;
    color: var(--accent-blue);
    margin-bottom: 12px;
    font-weight: 600;
}

.info-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.info-list {
    padding-left: 18px;
    margin: 0;
}

.info-list li {
    margin-bottom: 10px;
    color: var(--text-light-blue);
}

.info-list.compact li {
    margin-bottom: 6px;
}

/* Блок «текст + фото» на странице Консультация */
.service-intro-with-photo {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.service-intro-text {
    flex: 1;
    min-width: 0;
}

.service-intro-with-photo .service-intro-text p {
    font-size: 17px;
    line-height: 1.75;
}

.service-intro-photo {
    flex-shrink: 0;
    width: 220px;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.service-intro-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center bottom;
    border-radius: 12px;
}

.service-consult-list {
    margin-bottom: 24px;
}

.service-consult-cta {
    margin-top: 24px;
    font-size: 17px;
    font-weight: 500;
}

/* Ряды фото на странице «Изготовление портретов» */
.portret-photos-row {
    display: grid;
    gap: 20px;
    margin: 24px 0;
}

.portret-photos-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.portret-photos-row-2 {
    grid-template-columns: repeat(2, 1fr);
}

.portret-photo-item {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 23, 55, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.portret-photo-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Блоки «камень» на странице Памятники под ключ */
.pam-stone-block {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(74, 158, 255, 0.25);
}

.pam-stone-block:first-of-type {
    margin-top: 40px;
    padding-top: 0;
    border-top: none;
}

.pam-stone-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-white);
    margin: 0 0 12px 0;
}

.pam-stone-desc {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-light-blue);
    margin: 0 0 20px 0;
    max-width: 720px;
}

@media (max-width: 768px) {
    .portret-photos-row-3 {
        grid-template-columns: 1fr;
    }
    
    .portret-photos-row-2 {
        grid-template-columns: 1fr;
    }
    
    .portret-photos-row {
        margin: 20px 0;
    }
}

@media (max-width: 768px) {
    .service-intro-with-photo {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 28px;
    }
    
    .service-intro-photo {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        aspect-ratio: 1;
    }
    
    .service-intro-with-photo .service-intro-text p {
        font-size: 16px;
    }
    
    .service-consult-cta {
        font-size: 16px;
    }
}

.info-note {
    margin-top: 20px;
    padding: 16px 20px;
    border-left: 3px solid var(--accent-blue);
    background: rgba(0, 23, 55, 0.6);
    color: var(--text-light-blue);
}

/* Service Pages Styles */
.service-content {
    max-width: 900px;
    margin: 0 auto;
}

.service-image-container {
    text-align: center;
    margin-bottom: 40px;
}

.service-page-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.service-text-content {
    color: var(--text-light-blue);
    line-height: 1.8;
}


.service-intro {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-white);
    font-weight: 500;
}

/* Галерея для прощального зала */
.service-gallery {
    margin: 40px 0;
}

.service-gallery .info-subtitle {
    margin-bottom: 32px;
    text-align: center;
}

.gallery-section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
}

.gallery-photos {
    margin-bottom: 50px;
}

.gallery-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-photo {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background-color: rgba(0, 23, 55, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 3 / 4;
}

.gallery-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(74, 158, 255, 0.4);
}

.gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.gallery-videos-section {
    margin-top: 50px;
}

.gallery-videos-section.gallery-videos-first {
    margin-top: 0;
}

/* Гармоничное размещение видео (прощальный зал) */
.gallery-videos-harmonious {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 560px;
    margin: 0 auto;
}

.gallery-videos-harmonious .gallery-video {
    aspect-ratio: 9 / 16;
}

.gallery-videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Карусель фотографий (прощальный зал) */
.gallery-photos-carousel-wrap {
    margin-top: 50px;
}

.gallery-photos-carousel {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    max-width: 720px;
    margin: 0 auto;
}

.gallery-photo-carousel-frame {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    background-color: rgba(0, 23, 55, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    touch-action: pan-y pinch-zoom;
    cursor: grab;
    user-select: none;
}

.gallery-photo-carousel-frame:active {
    cursor: grabbing;
}

.gallery-photo-carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-photo-carousel-track .gallery-photo-square {
    flex: 0 0 100%;
    min-width: 100%;
    aspect-ratio: 1;
}

.gallery-photo-carousel-track .gallery-photo-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* Вертикальные (портретные) фото в карусели — страница венков */
.gallery-photos-carousel-portrait .gallery-photos-carousel {
    max-width: 580px;
}

.gallery-photos-carousel-portrait .gallery-photo-carousel-track .gallery-photo-square {
    aspect-ratio: 3 / 4;
}

/* Стрелки поверх фотографий по бокам, без кругляшей */
.gallery-photos-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.95);
    transition: color 0.25s ease, opacity 0.25s ease, transform 0.2s ease;
}

.gallery-photos-carousel .carousel-btn-prev {
    left: 12px;
}

.gallery-photos-carousel .carousel-btn-next {
    right: 12px;
}

.gallery-photos-carousel .carousel-btn:hover {
    color: #fff;
    opacity: 1;
    transform: translateY(-50%) scale(1.15);
}

.gallery-photos-carousel .carousel-btn svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}

.hall-photos-dots,
.gallery-photos-carousel-wrap .carousel-dots {
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background-color: rgba(0, 23, 55, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(74, 158, 255, 0.4);
}

.gallery-video {
    aspect-ratio: 9 / 16;
}

.gallery-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.service-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.service-step {
    background-color: rgba(0, 23, 55, 0.4);
    padding: 24px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-blue);
}

.service-step h2 {
    margin-bottom: 16px;
}

.service-step p {
    margin-bottom: 12px;
}

.service-step ul {
    margin-top: 12px;
}

.service-conclusion {
    margin-top: 40px;
    padding: 24px;
    background-color: rgba(74, 158, 255, 0.1);
    border-radius: 8px;
    border: 1px solid var(--accent-blue);
}

.service-conclusion h2 {
    margin-bottom: 16px;
}

.service-conclusion p {
    margin-bottom: 12px;
}

.service-conclusion ol {
    margin-top: 16px;
    padding-left: 20px;
}

.service-conclusion ol li {
    margin-bottom: 12px;
}

/* Churches List Styles */
.churches-list {
    display: flex;
    flex-direction: column;
    gap: 36px;
    margin-top: 30px;
}

.church-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: rgba(0, 23, 55, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(74, 158, 255, 0.3);
    overflow: hidden;
}

.church-header {
    display: flex;
    gap: 24px;
    padding: 24px;
    align-items: flex-start;
}

.church-image {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
}

.church-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.church-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 4px;
}

.church-name {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    color: var(--text-white);
}

.church-name a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.church-name a:hover {
    color: var(--text-white);
    text-decoration: underline;
}

.church-hours,
.church-phone,
.church-map {
    font-size: 15px;
    color: var(--text-light-blue);
    margin: 0;
    line-height: 1.5;
}

.church-phone a,
.church-map a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.church-phone a:hover,
.church-map a:hover {
    color: var(--text-white);
    text-decoration: underline;
}

.church-map-container {
    width: 100%;
    height: 220px;
    min-height: 200px;
    border-radius: 0;
    overflow: hidden;
    border-top: 1px solid rgba(74, 158, 255, 0.2);
}

.church-map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

@media (max-width: 768px) {
    .church-header {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .church-image {
        width: 100%;
        height: 200px;
        max-width: 100%;
    }
    
    .church-info {
        padding-top: 0;
    }
    
    .church-name {
        font-size: 18px;
    }
    
    .church-hours,
    .church-phone,
    .church-map {
        font-size: 14px;
    }
    
    .church-map-container {
        height: 200px;
        min-height: 180px;
    }
    
    .service-step {
        padding: 20px;
    }
    
    .service-conclusion {
        padding: 20px;
    }
    
    .gallery-photos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-item {
        border-radius: 8px;
    }
    
    .gallery-item img,
    .gallery-video-element {
        border-radius: 8px;
    }
    
    .gallery-section-title {
        font-size: 20px;
    }
    
    .gallery-photos {
        margin-bottom: 40px;
    }
    
    .gallery-videos-section {
        margin-top: 40px;
    }
    
    /* Два верхних видео прощального зала — рядом на мобильной, меньше места при скролле */
    .gallery-videos-harmonious {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        gap: 12px;
    }
    
    .gallery-photos-carousel {
        gap: 12px;
        max-width: 100%;
    }
    
    .gallery-photos-carousel-portrait .gallery-photos-carousel {
        max-width: 100%;
    }
    
    .gallery-photos-carousel .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .gallery-photos-carousel .carousel-btn-prev {
        left: 8px;
    }
    
    .gallery-photos-carousel .carousel-btn-next {
        right: 8px;
    }
    
    .gallery-photos-carousel .carousel-btn svg {
        width: 26px;
        height: 26px;
    }
    
    .hall-photos-dots,
    .gallery-photos-carousel-wrap .carousel-dots {
        margin-top: 15px;
    }
    
    .churches-list {
        gap: 28px;
        margin-top: 20px;
    }
    
    .church-header {
        padding: 16px;
        gap: 12px;
    }
    
    .church-image {
        height: 180px;
    }
    
    .church-name {
        font-size: 16px;
    }
    
    .church-hours,
    .church-phone,
    .church-map {
        font-size: 13px;
    }
    
    .church-map-container {
        height: 180px;
        min-height: 160px;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    background: rgba(0, 23, 55, 0.5);
    padding: 12px 0;
    border-bottom: 1px solid rgba(74, 158, 255, 0.2);
}

.breadcrumbs .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--text-white);
    text-decoration: underline;
}

.breadcrumbs-sep {
    color: rgba(255, 255, 255, 0.5);
    user-select: none;
}

.breadcrumbs-current {
    color: var(--text-white);
    font-weight: 500;
}

@media (max-width: 768px) {
    .breadcrumbs {
        padding: 10px 0;
    }
    .breadcrumbs .container {
        font-size: 13px;
    }
}

/* CTA block after content (service pages) */
.page-cta {
    padding: 50px 0;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.15) 0%, rgba(0, 45, 90, 0.25) 100%);
    border-top: 1px solid rgba(74, 158, 255, 0.3);
}

.page-cta .container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.page-cta-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 16px;
}

.page-cta-text {
    font-size: 16px;
    color: var(--text-light-blue);
    margin-bottom: 20px;
    line-height: 1.5;
}

.page-cta-phone {
    display: inline-block;
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
}

.page-cta-phone:hover {
    color: var(--text-white);
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .page-cta {
        padding: 35px 0;
    }
    .page-cta-title {
        font-size: 18px;
    }
    .page-cta-phone {
        font-size: 20px;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    min-width: 60px;
    height: 50px;
    padding: 8px 12px;
    background-color: var(--accent-blue);
    color: var(--text-white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.4);
    transform: translateY(20px);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: #3a8eef;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 158, 255, 0.6);
}

.scroll-to-top svg {
    transform: rotate(0deg);
    width: 18px;
    height: 18px;
}

.scroll-to-top-text {
    line-height: 1;
    font-size: 10px;
    letter-spacing: 0.5px;
}

.scroll-to-top svg {
    transform: rotate(0deg);
    width: 18px;
    height: 18px;
}

.scroll-to-top-text {
    line-height: 1;
    font-size: 10px;
    letter-spacing: 0.5px;
}

.page-text p {
    margin-bottom: 20px;
}

.page-text a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.page-text a:hover {
    color: var(--text-white);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contacts-wrapper {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .info-card-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .info-map {
        order: -1;
    }
    
    .info-map iframe {
        height: 250px;
    }
    
    .info-meta-label {
        min-width: 120px;
    }
    
    .info-columns {
        grid-template-columns: 1fr;
    }
}
