/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2b5e3b;        /* глубокий зеленый */
    --primary-light: #3f7a52;
    --primary-soft: rgba(43, 94, 59, 0.08);
    --secondary: #6c5b7b;      /* мягкий фиолетовый */
    --accent: #d4a5a5;          /* приглушенный розовый */
    --light: #f8f7f4;
    --light-gray: #edebe8;
    --gray: #7e7e7e;
    --dark: #2a2a2a;
    --white: #ffffff;
    --shadow-sm: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
    --radius-md: 20px;
    --radius-sm: 14px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.5;
    background-color: var(--white);
}

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

section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light);
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.5rem; }

.section-title {
    text-align: center;
    margin-bottom: 16px;
    color: var(--dark);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.2rem;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 20px -8px var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -8px var(--primary);
}

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

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

.btn-large {
    padding: 18px 42px;
    font-size: 1.1rem;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    gap: 8px;
}

.logo i {
    font-size: 2rem;
}

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

.phone {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 1.1rem;
    gap: 8px;
}

.phone i {
    color: var(--primary);
}

.btn-call {
    background-color: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 500;
}

/* ========== HERO ========== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)), 
                url('https://petsritual.ru/images/hero-bg.avif');
    background-size: cover;
    background-position: center;
    margin-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(43,94,59,0.05) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-title {
    margin-bottom: 24px;
    color: var(--dark);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--gray);
    max-width: 600px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(4px);
    padding: 8px 18px;
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.8);
}

.feature i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* ========== SERVICES ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

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

.service-card h3 {
    margin-bottom: 16px;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

.service-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 20px;
}

/* ========== PROCESS ========== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-top: 20px;
}

.step {
    text-align: center;
}

.step-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px var(--primary);
    opacity: 0.3;
    margin-bottom: 16px;
}

.step h3 {
    margin-bottom: 12px;
}

.step p {
    color: var(--gray);
}

/* ========== WHY ========== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.why-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid transparent;
}

.why-card:hover {
    border-color: var(--primary);
    background: white;
    box-shadow: var(--shadow-sm);
}

.why-card i {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.why-card h3 {
    margin-bottom: 16px;
}

.why-card p {
    color: var(--gray);
}

/* ========== FAQ ========== */
.faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--light-gray);
}

.faq-question {
    width: 100%;
    padding: 24px 0;
    text-align: left;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    transition: transform 0.3s;
    color: var(--primary);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding: 0 0 24px;
    color: var(--gray);
}

/* ========== CTA ========== */
.cta {
    background: linear-gradient(135deg, var(--light) 0%, #e2e6e9 100%);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--gray);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cta-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.cta-info p {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gray);
}

.cta-info i {
    color: var(--primary);
}

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

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

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo i {
    color: var(--white);
}

.footer-tagline {
    margin-top: 12px;
    color: var(--gray);
    font-weight: 400;
    font-size: 0.95rem;
}

.footer-contacts h3,
.footer-info h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-contacts a,
.footer-info a {
    display: block;
    color: var(--gray);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--gray);
}

/* ========== MODALS ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    display: none;
    z-index: 1999;
}

.overlay.active {
    display: block;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    max-width: 500px;
    width: 100%;
    position: relative;
    z-index: 2001;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.modal h3 {
    margin-bottom: 8px;
    text-align: center;
}

.modal p {
    text-align: center;
    margin-bottom: 30px;
    color: var(--gray);
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 16px 18px;
    margin-bottom: 20px;
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.modal-form textarea {
    height: 100px;
    resize: vertical;
}

.form-note {
    font-size: 0.8rem;
    margin-top: 15px;
    text-align: center;
    color: var(--gray);
}

.docs-list p {
    text-align: left;
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.docs-list p:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    section { padding: 70px 0; }
    
    .nav-contacts {
        gap: 15px;
    }
    
    .phone span {
        display: none;
    }
    
    .phone i {
        font-size: 1.4rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .feature {
        width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-info {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .footer-content {
        gap: 30px;
    }
}
