/* ===== Современный дизайн АльфаВет (животный мир) ===== */
:root {
    --primary: #27AE60;
    --primary-dark: #1E8449;
    --accent: #F39C12;
    --accent-hover: #D68910;
    --text: #2C3E50;
    --text-light: #7F8C8D;
    --bg-grey: #F4F6F7;
    --white: #FFFFFF;
    --shadow: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

/* ===== Анимированный закреплённый фон ===== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #E8F6F3 0%, #D4EFDF 50%, #FEF9E7 100%);
    overflow: hidden;
    pointer-events: none;
}

.animated-bg::before,
.animated-bg::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(39,174,96,0.05);
    border-radius: 50%;
    animation: float 12s infinite ease-in-out;
}

.animated-bg::before {
    top: 20%;
    left: -100px;
    animation-delay: -4s;
}

.animated-bg::after {
    bottom: 20%;
    right: -100px;
    animation-delay: -8s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-40px) scale(1.1); }
}

/* Плавающие иконки животных (лапки) */
.animated-bg i {
    position: absolute;
    font-size: 40px;
    color: rgba(39,174,96,0.1);
    animation: pawFloat 8s infinite ease-in-out;
}

.animated-bg i:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.animated-bg i:nth-child(2) { top: 30%; left: 80%; animation-delay: 2s; }
.animated-bg i:nth-child(3) { top: 70%; left: 15%; animation-delay: 4s; }
.animated-bg i:nth-child(4) { top: 80%; left: 90%; animation-delay: 6s; }
.animated-bg i:nth-child(5) { top: 40%; left: 40%; animation-delay: 1s; }

@keyframes pawFloat {
    0%, 100% { transform: translateY(0) rotate(-10deg); opacity: 0.5; }
    50% { transform: translateY(-30px) rotate(10deg); opacity: 1; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ===== Шапка ===== */
.header {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.logo__img {
    height: 44px;
}

.header__contact {
    text-align: right;
}

.header__phone {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

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

.header__schedule {
    font-size: 14px;
    color: var(--text-light);
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary);
}

.nav__list {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav__list a {
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
}

.nav__list a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .header__inner {
        flex-wrap: wrap;
    }

    .nav {
        order: 4;
        width: 100%;
    }

    .nav__list {
        display: none;
        flex-direction: column;
        background: var(--white);
        padding: 16px;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }

    .nav__list.open {
        display: flex;
    }

    .nav__toggle {
        display: block;
    }
}

/* ===== Баннер / Hero ===== */
.hero {
    background: linear-gradient(135deg, rgba(39,174,96,0.9), rgba(46,204,113,0.85));
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    border-radius: var(--radius);
    margin: 30px 0;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero__subtitle {
    font-size: 24px;
    margin-bottom: 20px;
}

.hero__schedule {
    margin-bottom: 30px;
    font-size: 18px;
}

/* ===== Кнопки ===== */
.btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(243,156,18,0.4);
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243,156,18,0.5);
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 26px;
    font-size: 14px;
}

.btn--outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}

/* ===== Секции ===== */
.section {
    padding: 60px 20px;
}

.section--grey {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.section__title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--text);
    font-weight: 800;
}

/* ===== Услуги ===== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-card__icon {
    font-size: 56px;
    color: var(--primary);
    margin-bottom: 20px;
    display: inline-block;
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.service-card__title {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 700;
}

.service-card__desc {
    color: var(--text-light);
    margin-bottom: 16px;
}

.service-card__price {
    display: block;
    font-weight: 800;
    color: var(--accent);
    font-size: 20px;
    margin-bottom: 16px;
}

/* ===== Врачи ===== */
.doctors__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.doctor-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s;
}

.doctor-card:hover {
    transform: translateY(-8px);
}

.doctor-card__photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 4px solid var(--primary);
}

.doctor-card__no-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #ccc;
    margin: 0 auto 20px;
    border: 4px solid var(--primary);
}

.doctor-card__name {
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: 700;
}

.doctor-card__specialty {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.doctor-card__bio {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 12px;
}

.doctor-card__experience {
    font-size: 14px;
    color: var(--text-light);
}

/* ===== Галерея ===== */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery__item {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.gallery__item:hover {
    transform: scale(1.03);
}

.gallery__item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* ===== Новости ===== */
.news__list {
    display: grid;
    gap: 30px;
}

.news-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.news-card__image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.news-card__title {
    font-size: 24px;
    margin-bottom: 8px;
}

.news-card__date {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 12px;
}

.news-card__excerpt {
    margin-bottom: 16px;
}

.news-detail__image {
    max-width: 100%;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.news-detail__content {
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ===== Контакты ===== */
.contacts__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contacts__info {
    font-size: 18px;
    line-height: 2;
}

.contacts__info i {
    color: var(--primary);
    margin-right: 10px;
}

/* ===== Виджет VK ===== */
.vk-widget {
    margin: 40px auto;
    max-width: 600px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    text-align: center;
}

.vk-widget__title {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
}

.vk-widget iframe {
    width: 100%;
    border: none;
    border-radius: var(--radius);
}

/* ===== Форма записи ===== */
.appointment-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.appointment-form
cat >> /var/www/alfavet.nkvopros.ru/www/assets/css/style.css <<'EOF'

.appointment-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.appointment-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 16px;
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
    border-color: var(--primary);
    outline: none;
}

/* Алерты */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Подвал */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding-top: 40px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer h4 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer a {
    color: rgba(255,255,255,0.8);
    transition: color 0.2s;
}

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

.footer__bottom {
    background: rgba(0,0,0,0.2);
    text-align: center;
    padding: 20px 20px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .contacts__grid {
        grid-template-columns: 1fr;
    }
    .footer__inner {
        grid-template-columns: 1fr;
    }
}
