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

:root {
    --primary-color: #2a9d8f;
    --primary-dark: #21867a;
    --secondary-color: #e9c46a;
    --accent-color: #e76f51;
    --light-color: #f8f9fa;
    --dark-color: #264653;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 15px;
    --border-radius-sm: 10px;
}

/* Медиа-запросы для удобства */
@custom-media --tablet (max-width: 992px);
@custom-media --mobile (max-width: 768px);
@custom-media --mobile-sm (max-width: 480px);

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

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

.text-center {
    text-align: center;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
    font-family: 'Montserrat', sans-serif;
}

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

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

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

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

.section-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 50px;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Header Styles */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 2rem;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--dark-color);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.phone-link {
    background-color: var(--light-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
}

.phone-link i {
    margin-right: 5px;
}

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

.burger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.1) 0%, rgba(233, 196, 106, 0.1) 100%);
    padding: 150px 0 80px;
    margin-top: 80px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.hero .subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* Services Preview */
.services-preview {
    padding: 80px 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    will-change: transform;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(42, 157, 143, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* Features */
.features {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature {
    text-align: center;
    padding: 30px 20px;
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature:hover i {
    transform: scale(1.1);
}

.feature h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.phone-large {
    display: inline-block;
    font-size: 2rem;
    font-weight: 700;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 50px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.phone-large:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 20px;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-col p,
.footer-col a {
    margin-bottom: 10px;
    display: block;
    opacity: 0.8;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-col i {
    margin-right: 10px;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Services Page Styles */
.page-header {
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.1) 0%, rgba(233, 196, 106, 0.1) 100%);
    padding: 140px 0 60px;
    margin-top: 80px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

.services-list {
    padding: 60px 0;
}

.service-category {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
    transition: var(--transition);
}

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

.category-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(42, 157, 143, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-category:hover .category-icon {
    transform: scale(1.1);
}

.category-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.service-category h2 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-category p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.service-category ul {
    list-style-position: inside;
    margin: 15px 0;
}

.service-category li {
    margin-bottom: 8px;
    padding-left: 5px;
}

.specialists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.specialists-grid span {
    background-color: rgba(42, 157, 143, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    text-align: center;
    font-size: 0.9rem;
    transition: var(--transition);
}

.specialists-grid span:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.cta-simple {
    background-color: #f9f9f9;
    padding: 60px 0;
    text-align: center;
}

.cta-simple h2 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.cta-simple p {
    margin-bottom: 20px;
    color: var(--text-light);
}

/* Schema.org Microdata */
[itemscope] {
    display: block;
}

/* Loading animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.feature,
.service-category {
    animation: fadeInUp 0.6s ease-out;
}

/* Form styles for future use */
.callback-form {
    max-width: 400px;
    margin: 0 auto;
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.callback-form input,
.callback-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-sm);
    font-family: 'Open Sans', sans-serif;
    transition: var(--transition);
}

.callback-form input:focus,
.callback-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}

.callback-form button {
    width: 100%;
}
/* Индикаторы статуса сети */

/* Стили для офлайн режима */
body.offline .online-only {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

body.offline .online-only::before {
    content: 'Требуется интернет';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    z-index: 1;
}

/* Адаптивные улучшения для уведомлений */
@media (max-width: 768px) {
    #notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    #notification-container {
        top: 5px;
        right: 5px;
        left: 5px;
    }
    
    .notification {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* Анимация для кнопки установки PWA */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Улучшение для мобильных уведомлений */
.mobile-device .notification {
    font-size: 0.95rem;
    padding: 14px 18px;
}

.mobile-device .notification-close {
    font-size: 1.4rem;
    margin-left: 12px;
}
/* Price Page Styles */
.price-page {
    margin-top: 80px;
}

.price-list {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.price-category {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.price-category h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.price-category h2 i {
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    background-color: rgba(42, 157, 143, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--primary-color);
    transition: var(--transition);
}

.price-row:hover {
    background-color: rgba(42, 157, 143, 0.05);
    transform: translateX(5px);
}

.price-service {
    flex: 1;
    font-weight: 500;
    color: var(--dark-color);
}

.price-amount {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    min-width: 120px;
    text-align: right;
}

.price-note {
    background-color: rgba(233, 196, 106, 0.1);
    border-radius: var(--border-radius);
    padding: 20px 25px;
    margin-top: 40px;
    border-left: 4px solid var(--secondary-color);
}

.price-note p {
    margin: 0;
    color: var(--text-color);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.price-note i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 2px;
}
