/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Сохраненные зеленые цвета - для быстрого возврата:
       --primary-color: #81C784;
       --primary-dark: #4CAF50;
       --primary-light: #A5D6A7; */
    
    /* Мятно-зеленые цвета */
    --primary-color: #20C997;
    --primary-dark: #1A9B7A;
    --primary-light: #6DD5B8;
    
    /* Цвет бренда Фидем (из логотипа) */
    --brand-color: #218F36;
    
    --secondary-color: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-gray: #ecf0f1;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Header */
.header {
    background-color: var(--secondary-color);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    padding: 1.4rem 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 80px;
    width: auto;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-text {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--brand-color);
    line-height: 1;
}

.brand-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--brand-color);
    margin-top: 2px;
    line-height: 1;
}

.partner-info {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.partner-logo + .partner-brand {
    margin-left: -2px;
}

.partner-text {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--brand-color);
}

.partner-logo {
    height: 16px;
    width: auto;
}

.partner-brand {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
}

.navbar-menu {
    display: flex;
    align-items: center;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 500;
}

.header-contact-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.phone-number {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.phone-number:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.work-hours {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
    white-space: nowrap;
    margin-top: 2px;
}

.header-social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid var(--bg-gray);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--secondary-color);
    font-size: 1.5rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(224, 148, 51, 0.3);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(224, 148, 51, 0.5);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    overflow: hidden;
    margin-top: 80px;
    background-color: var(--secondary-color);
}

.hero-slider {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.hero-slides-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.hero-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(to right, var(--primary-color) 0%, var(--primary-dark) 40%, transparent 40%);
}



.hero-content {
    position: relative;
    z-index: 2;
    width: 40%;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-text {
    color: var(--secondary-color);
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 1;
    color: rgba(255, 255, 255, 0.95);
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-buttons .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.hero-buttons .btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    border-color: var(--secondary-color);
}

.hero-buttons .btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.hero-buttons .btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
    font-weight: 600;
}

.hero-buttons .btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.hero-image {
    position: relative;
    width: 60%;
    height: 100%;
    z-index: 1;
    flex-shrink: 0;
    background-color: var(--primary-color);
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-nav-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.hero-nav-btn.active,
.hero-nav-btn:hover {
    background-color: var(--secondary-color);
}

.hero-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 3;
}

.hero-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.hero-arrow:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Service Modal */
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Для лучшей поддержки мобильных устройств */
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overscroll-behavior: contain; /* Предотвращает скролл фона */
}

.service-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-card {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    max-height: 80dvh;
    overflow-y: auto;
    position: relative;
    z-index: 1001;
    transform: scale(0.7) translateY(50px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: auto;
}

.service-modal.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--bg-gray);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 2rem;
    flex-shrink: 0;
}

.modal-title-section {
    flex: 1;
}

.modal-title {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.modal-description {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    flex-shrink: 0;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.modal-close:hover {
    background-color: var(--bg-gray);
    color: var(--text-dark);
}

.modal-content {
    padding: 2rem;
}

.procedures-title {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.modal-content .procedures-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.8rem;
}

.modal-content .procedures-list li {
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    color: var(--text-dark);
    transition: var(--transition);
}

.modal-content .procedures-list li:hover {
    background-color: var(--primary-light);
    transform: translateX(5px);
}

.modal-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-left: 4px solid #6c757d;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.5;
}

.modal-note a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.modal-note a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--secondary-color);
    font-size: 2rem;
}

.service-title {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--secondary-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-features {
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.feature p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Payment Section */
.payment {
    padding: 5rem 0;
    background-color: var(--secondary-color);
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.payment-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.payment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.payment-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.payment-title {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.payment-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact .contact-info {
    display: flex;
    flex-direction: column;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.contact-details h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-details p {
    margin-bottom: 0.25rem;
}

.contact-details a {
    color: var(--primary-color);
    font-weight: 500;
}

.map-container {
    background-color: var(--bg-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 400px;
}

#map {
    width: 100%;
    height: 100%;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--secondary-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 30px;
    width: auto;
}

.footer-brand h3 {
    color: var(--secondary-color);
    margin: 0;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.partner-logo-small {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.partner-logo-small img {
    height: 25px;
    width: auto;
}

.partner-logo-small span {
    font-size: 0.8rem;
    color: #bdc3c7;
}

.partner-info-footer {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 1rem;
}

.partner-info-footer .partner-text {
    font-size: 0.85rem;
    font-weight: 400;
    color: #bdc3c7;
}

.partner-info-footer .partner-logo {
    height: 16px;
    width: auto;
}

.partner-info-footer .partner-brand {
    font-size: 0.85rem;
    font-weight: 600;
    color: #bdc3c7;
    text-transform: uppercase;
}

.partner-info-footer .partner-logo + .partner-brand {
    margin-left: -2px;
}

.partners-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.partner-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.partner-item img {
    height: 25px;
    width: auto;
}

.partner-item span {
    font-size: 0.8rem;
    color: #bdc3c7;
}

.partners-insurance {
    margin-top: 0.5rem;
}

.partners-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ecf0f1;
    margin-bottom: 0.5rem;
}

.insurance-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insurance-list li {
    font-size: 0.85rem;
    color: #bdc3c7;
    margin-bottom: 0.3rem;
    padding-left: 0;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .phone-number {
        font-size: 0.85rem;
    }
    
    .work-hours {
        font-size: 0.7rem;
    }
}

@media (max-width: 900px) {
    .header-contact-info {
        flex-direction: column;
        gap: 4px;
    }
    
    .phone-numbers {
        flex-direction: row;
        gap: 0;
    }
    
    .phone-number {
        font-size: 0.8rem;
    }
    
    .phone-number:not(:last-child)::after {
        content: ", ";
        margin-right: 4px;
        color: var(--text-light);
    }
    
    .work-hours {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .navbar-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--secondary-color);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }
    
    .navbar-menu.active {
        left: 0;
    }
    
    .navbar-nav {
        flex-direction: column;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 0;
        border-bottom: 1px solid var(--bg-gray);
        width: 100%;
    }
    
    .logo {
        height: 55px;
    }
    
    .brand-text {
        font-size: 1.6rem;
    }
    
    .brand-subtitle {
        font-size: 0.8rem;
    }
    
    .partner-info {
        margin-top: 2px;
    }
    
    .partner-text {
        font-size: 0.7rem;
    }
    
    .partner-logo {
        height: 14px;
    }
    
    .partner-brand {
        font-size: 0.7rem;
    }
    
    .header-contact {
        display: none;
    }

    .header-social {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        height: 80vh;
        margin-top: 80px;
    }
    
    .hero-slide {
        flex-direction: column;
        text-align: center;
        padding: 0;
        background: none;
    }
    
    .hero-slide::before {
        display: none;
    }
    
    .hero-content {
        width: 100%;
        padding: 1.5rem 1.5rem 2rem;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 45%;
    }
    
    .hero-image {
        position: relative;
        width: 100%;
        height: 55%;
        order: -1;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    /* Modal Mobile Styles */
    .modal-card {
        width: 95%;
        max-height: 85vh;
        max-height: 85dvh;
        margin: auto;
        transform: scale(0.8) translateY(30px);
        transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .service-modal.active .modal-card {
        transform: scale(1) translateY(0);
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .modal-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin: 0 auto;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .modal-content .procedures-list {
        gap: 0.6rem;
    }
    
    .modal-content .procedures-list li {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 50px;
    }
    
    .brand-text {
        font-size: 1.4rem;
    }
    
    .brand-subtitle {
        font-size: 0.75rem;
    }
    
    .partner-text {
        font-size: 0.65rem;
    }
    
    .partner-logo {
        height: 12px;
    }
    
    .partner-brand {
        font-size: 0.65rem;
    }
    
    .hero {
        height: 70vh;
    }
    
    .hero-content {
        min-height: 50%;
        padding: 1rem 1rem 1.5rem;
    }
    
    .hero-image {
        height: 50%;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Animations - плавные эффекты появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для элементов до анимации */
.service-card:not(.fade-in-up),
.feature:not(.fade-in-up),
.contact-item:not(.fade-in-up),
.section-header:not(.fade-in-up),
.about-text:not(.fade-in-up),
.stats-item:not(.fade-in-up) {
    opacity: 0;
    transform: translateY(20px);
    transition: none;
}

/* После анимации элементы остаются видимыми */
.fade-in-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Smooth scrolling offset for fixed header */
section {
    scroll-margin-top: 100px;
}
