:root {
    --primary-color: #00B2B2;    /* Turquoise from logo */
    --secondary-color: #1B365D;  /* Navy blue from logo */
    --light-gray: #f8f9fa;
    --text-color: #2c3e50;
    --shadow-color: rgba(44, 62, 80, 0.1);
}

/* Стили для страницы услуги */
body {
    background: var(--light-gray);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    color: var(--text-color);
}
.service-details {
    max-width: 800px;
    margin: 20px auto;
    padding: 25px;
    background-color: #fff;
    box-shadow: 0 4px 20px var(--shadow-color);
    border-radius: 12px;
    opacity: 0; /* Начальная прозрачность для анимации */
    transform: translateY(20px); /* Начальное смещение для анимации */
    animation: fadeInUp 0.8s ease-out forwards; /* Анимация появления */
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-details h1 {
    color: var(--secondary-color);
    margin: 0 0 20px 0;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.service-details h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.service-details img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards; /* Задержка анимации */
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.service-details .short-description {
    color: var(--secondary-color);
    line-height: 1.6;
    font-size: 1.1rem;
    margin: 20px 0;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}
.service-details .long-description {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1rem;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.useful-links-section {
    max-width: 800px;
    margin: 20px auto;
    padding: 25px;
    background-color: #fff;
    box-shadow: 0 4px 20px var(--shadow-color);
    border-radius: 12px;
    opacity: 0; /* Начальная прозрачность для анимации */
    transform: translateY(20px); /* Начальное смещение для анимации */
    animation: fadeInUp 0.8s ease-out 0.3s forwards; /* Анимация появления с задержкой */
}
.useful-links-section h2 {
    color: var(--secondary-color);
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}
.useful-links-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}
.useful-links-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}
.useful-links-section li {
    margin: 0;
    padding: 0;
    border: none;
}
.useful-links-section a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 15px;
    background: var(--light-gray);
    border-radius: 8px;
    transition: all 0.3s ease;
}
.useful-links-section a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--shadow-color);
}
.link-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
}
.link-desc {
    margin-top: 6px;
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Стили для шапки (скопированы из index.css) */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px var(--shadow-color);
    border-radius: 0 0 12px 12px;
    margin-bottom: 40px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    flex-grow: 0;
}

.logo-img {
    max-width: 55px;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(30, 41, 59, 0.1));
    flex-shrink: 0;
}

.logo-desc {
    font-size: 1rem;
    color: #607d8b;
    font-weight: 400;
    font-family: 'Roboto', Arial, sans-serif;
    letter-spacing: 0.02em;
    line-height: 1.4;
    white-space: nowrap;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    flex-basis: auto;
}

.header-menu {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-shrink: 0;
    flex-grow: 1;
    justify-content: center;
}

.header-menu a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 10px;
    position: relative;
    transition: all 0.3s ease;
}

.header-menu a:hover,
.header-menu a:focus {
    color: var(--primary-color);
}

.header-menu a:active {
    color: #0056b3;
    transform: scale(0.98);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-shrink: 0;
    flex-grow: 0;
}

.contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.phone, .email {
    font-size: 1rem;
    color: #555;
    font-weight: 500;
    line-height: 1.3;
}

.small {
    font-size: 0.9rem;
    color: #888;
    font-weight: 400;
}

.header-btn {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 178, 178, 0.2);
}

.header-btn:active {
    background-color: #c0c0c0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(1px);
}

/* Service Back Home Button */
.service-back-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem !important;
    padding: 12px 32px !important;
    min-width: 160px !important;
    min-height: 44px !important;
    max-width: 100%;
    border-radius: 8px !important;
    letter-spacing: 0.04em !important;
    text-align: center !important;
    box-sizing: border-box;
    white-space: normal;
    word-break: break-word;
}

@media (max-width: 768px) {
    .service-back-home {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        font-size: 1rem !important;
        padding: 14px 0 !important;
        min-height: 44px !important;
        margin-bottom: 20px !important;
    }
}

@media (max-width: 480px) {
    .service-details {
        margin: 8px;
        padding: 10px;
    }
    .service-details h1 {
        font-size: 1.3rem;
        padding-bottom: 8px;
    }
    .service-details .short-description {
        font-size: 1rem;
        padding: 10px;
    }
    .service-details .long-description {
        font-size: 0.98rem;
        padding-top: 10px;
    }
    .useful-links-section {
        margin: 8px;
        padding: 10px;
    }
    .useful-links-section h2 {
        font-size: 1.1rem;
    }
    .service-back-home {
        font-size: 1rem !important;
        padding: 16px 0 !important;
        width: 100% !important;
        min-height: 48px !important;
        margin-bottom: 20px !important;
    }
}

.service-details, .useful-links-section {
    font-size: 1.13rem;
    line-height: 1.7;
} 