/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-blue: #3c6cf2;
    --secondary-blue: #3b82f6;
    --light-blue: #dbeafe;
    --orange: #f97316;
    --light-orange: #fed7aa;
    --white: #ffffff;
    --gray: #f3f4f6;
    --dark-gray: #6b7280;
}

body {
    background-color: var(--gray);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.contact-container {
    padding: 0 20px;
}

/* Шапка */
header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo-header {
    margin-bottom: 10px;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.logo-header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.logo-header p {
    text-align: center;
    width: 69%;
    font-size: 1.6rem;
    font-weight: bold;
    margin-top: 10px;
}

.logo-header i {
    color: var(--orange);
    margin-right: 10px;
}

nav ul {
    display: flex;
    list-style: none;
    margin-top: 15px;
    flex-wrap: wrap;
}

nav li {
    margin-right: 25px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    position: relative;
}

nav a:hover {
    color: var(--light-orange);
    transform: translateY(-2px);
}

nav a.active {
    color: var(--light-orange);
    font-weight: 600;
}

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

nav i {
    margin-right: 8px;
}

/* Основной контент */
main {
    padding: 30px 0;
    flex: 1;
}

.hero {
    background: linear-gradient(135deg, var(--light-blue), var(--white));
    border-radius: 15px;
    padding: 50px 40px;
    text-align: center;
    margin-bottom: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-left: 8px solid var(--orange);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--orange), var(--secondary-blue), var(--orange));
}

.hero h2 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 2.2rem;
    position: relative;
    z-index: 1;
}

.hero p {
    color: var(--dark-gray);
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 1;
}

/* Кнопки */
.btn-primary {
    display: inline-block;
    background-color: var(--orange);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background-color: #ea580c;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}

/* Карточки */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 4px solid var(--secondary-blue);
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::after {
    opacity: 1;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card i {
    font-size: 3rem;
    color: var(--secondary-blue);
    margin-bottom: 20px;
    display: inline-block;
}

.card h3 {
    color: var(--primary-blue);
    margin-bottom: 12px;
    font-size: 1.4rem;
}

/* Услуги */
.services h2 {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 40px;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--secondary-blue));
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.service-item {
    background-color: var(--white);
    padding: 25px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--orange);
    transition: all 0.3s ease;
    height: 100%;
    align-content: center;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.service-item h3 {
    color: var(--primary-blue);
    /* margin-bottom: 15px; */
    display: flex;
    align-items: center;
    font-size: 1.3rem;
}

.service-item i {
    margin-right: 12px;
    color: var(--orange);
    font-size: 1.2rem;
}

/* Статистика */
.statistics {
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 15px;
    color: white;
}

.statistics h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: white;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--orange);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Подвал */
.site-footer {
    background: linear-gradient(135deg, var(--primary-blue), #1e40af);
    color: var(--white);
    padding: 40px 0 30px;
    margin-top: auto;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--orange), var(--secondary-blue), var(--orange));
}

.footer-content {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-logo-column {
    flex: 0 0 auto; 
    width: 300px; 
    display: flex;
    align-items: flex-start;
}

.footer-logo-column img {
    height: 80px;
    opacity: 0.9;
    max-width: 100%;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: var(--light-orange);
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--orange);
}

.footer-section p {
    margin-bottom: 12px;
    opacity: 0.9;
    line-height: 1.6;
}

.footer-section i {
    margin-right: 12px;
    color: var(--orange);
    width: 20px;
    text-align: center;
}

/* Формы */
.form-container {
    max-width: 1120px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--orange), var(--secondary-blue));
}

.form-container h2 {
    color: var(--primary-blue);
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-blue);
    font-size: 2rem;
    position: relative;
}

.form-container h2 i {
    margin-right: 15px;
    color: var(--orange);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--light-blue);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Календарь */
.calendar-container {
    margin: 30px 0;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.time-slot {
    background-color: var(--light-blue);
    border: 2px solid var(--secondary-blue);
    border-radius: 8px;
    padding: 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.time-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}

.time-slot:hover::before {
    left: 100%;
}

.time-slot:hover {
    background-color: var(--secondary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

.time-slot.selected {
    background-color: var(--orange);
    color: var(--white);
    border-color: var(--orange);
    transform: scale(1.05);
}

.time-slot.unavailable {
    background-color: #e5e7eb;
    color: var(--dark-gray);
    cursor: not-allowed;
    border-color: #d1d5db;
}

.time-slot.unavailable:hover {
    background-color: #e5e7eb;
    color: var(--dark-gray);
    transform: none;
    box-shadow: none;
}

.time-slot.past-time {
    background-color: #fee2e2;
    color: #991b1b;
    cursor: not-allowed;
    border-color: #fca5a5;
}

.time-slot.past-time:hover {
    background-color: #fee2e2;
    color: #991b1b;
    transform: none;
    box-shadow: none;
}

/* Контакты */
.contact-info {
    margin-top: 20px;
}

.contact-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border-left: 4px solid var(--secondary-blue);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.contact-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    height: 400px;
}

.contact-form {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--light-blue);
}

/* QR-коды в футере */
.footer-logo-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.qr-container {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 5px;
}

.qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.qr-placeholder {
    width: 110px;
    height: 110px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.qr-code-placeholder {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.qr-code-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 110px;
    word-break: break-word;
    line-height: 1.2;
}

.qr-link:hover {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: underline;
}

/* =============================== */
/* МОБИЛЬНАЯ ВЕРСИЯ ТОЛЬКО НА ТЕЛЕФОНАХ */
/* =============================== */

@media (max-width: 768px) {
    /* Контейнеры */
    .container {
        padding: 0 15px;
    }
    
    .contact-container {
        padding: 0 15px;
    }
    
    /* Шапка для мобильных */
    .logo-container {
        flex-direction: column;
        text-align: center;
        padding: 0 10px;
        margin-bottom: 15px;
    }
    
    .logo-container img {
        height: 50px;
        margin-bottom: 10px;
    }
    
    .logo-header p {
        width: 100%;
        font-size: 1.2rem;
        margin-top: 5px;
    }
    
    /* Навигация для мобильных */
    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 5px;
        margin-top: 10px;
    }
    
    nav li {
        width: 100%;
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    nav a {
        padding: 12px 15px;
        border-radius: 8px;
        background-color: rgba(255, 255, 255, 0.1);
        margin: 2px 0;
    }
    
    nav a.active::after {
        width: 4px;
        height: 100%;
        left: 0;
        top: 0;
    }
    
    /* Герой для мобильных */
    .hero {
        padding: 30px 20px;
        margin-bottom: 30px;
        border-left-width: 6px;
    }
    
    .hero h2 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Кнопки для мобильных */
    .btn-primary {
        padding: 14px 30px;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .btn-primary:hover {
        transform: translateY(-2px) scale(1.03);
    }
    
    /* Карточки для мобильных */
    .info-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        padding: 25px 20px;
        border-radius: 12px;
    }
    
    .card i {
        font-size: 2.5rem;
    }
    
    .card:hover {
        transform: translateY(-5px) scale(1.02);
    }
    
    /* Услуги для мобильных */
    .services h2 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-item {
        padding: 22px 18px;
    }
    
    .service-item h3 {
        font-size: 1.2rem;
    }
    
    /* Формы для мобильных */
    .form-container {
        padding: 25px 20px;
    }
    
    .form-container h2 {
        font-size: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 15px;
    }
    
    /* Календарь для мобильных */
    .calendar-container {
        margin: 20px 0;
    }
    
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .time-slot {
        padding: 15px;
        font-size: 0.95rem;
    }
    
    /* Контакты для мобильных */
    .contact-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .map-container {
        height: 300px;
        border-radius: 12px;
    }
    
    /* Подвал для мобильных */
    .site-footer {
        padding: 30px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-logo-column {
        width: 100%;
        align-items: center;
        text-align: center;
    }
    
    .footer-logo-column img {
        height: 60px;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        font-size: 0.95rem;
    }
    
    /* QR-коды для мобильных */
    .qr-container {
        justify-content: center;
        gap: 25px;
    }
}

/* Для очень маленьких телефонов */
@media (max-width: 480px) {
    .time-slots {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .time-slot {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .map-container {
        height: 250px;
    }
    
    .qr-container {
        flex-direction: row;
        gap: 15px;
        align-items: center;
        margin-left: 10%;
        margin-right: 10%;
    }
    
    .qr-item {
        width: 100%;
    }
    
    .qr-placeholder {
        width: 90px;
        height: 90px;
    }
    
    .qr-code-placeholder {
        width: 80px;
        height: 80px;
    }
}

/* Для планшетов (таблицы) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .info-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .footer-content {
        grid-template-columns: auto 1fr;
        gap: 30px;
    }
}

/* Стили для анимаций */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.logo-animation {
    animation: float 3s ease-in-out infinite;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.pulse-hover:hover {
    animation: pulse 0.5s ease-in-out;
}

/* Отключение сложных hover-эффектов на мобильных */
@media (hover: none) and (pointer: coarse) {
    .card:hover,
    .service-item:hover,
    .contact-card:hover,
    .time-slot:hover,
    .btn-primary:hover {
        transform: none;
    }
    
    .btn-primary:hover::before,
    .time-slot:hover::before {
        left: -100%;
    }
}