/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #FAFAFA;
    --accent-color: #FF7A59;
    --accent-hover: #FFAA77;
    --dark-color: #1E1E2F;
    --text-color: #333333;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(255, 122, 89, 0.1);
    --glow: 0 0 20px rgba(255, 122, 89, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-bg);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px var(--accent-color); }
    50% { box-shadow: 0 0 20px var(--accent-color), 0 0 30px var(--accent-color); }
    100% { box-shadow: 0 0 5px var(--accent-color); }
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-bg) 100%);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    text-decoration: none;
    animation: slideInLeft 0.6s ease;
}

.logo svg {
    margin-right: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(255, 122, 89, 0.2));
}

.logo span {
    background: linear-gradient(45deg, var(--accent-color), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.nav-menu a:hover {
    color: var(--accent-color);
    background: rgba(255, 122, 89, 0.1);
    transform: translateY(-2px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover::after {
    width: 80%;
}

.header-contact {
    color: var(--accent-color);
    font-weight: 600;
    animation: slideInRight 0.6s ease;
}

.phone {
    padding: 0.5rem 1rem;
    border: 2px solid var(--accent-color);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.phone:hover {
    background: var(--accent-color);
    color: var(--white);
    box-shadow: var(--glow);
}

/* Main content */
.main {
    padding-top: 80px;
}

/* Anchor offset for smooth scrolling */
section[id] {
    scroll-margin-top: 100px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-bg) 0%, rgba(255, 122, 89, 0.05) 100%);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 122, 89, 0.1) 0%, transparent 70%);
    animation: glow 4s ease-in-out infinite;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    animation: fadeInUp 0.8s ease;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(45deg, var(--dark-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    animation: slideInRight 0.8s ease;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.05);
    box-shadow: var(--glow);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::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: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-color), var(--accent-hover));
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Section styles */
section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-hover));
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* About Section */
.about-section {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    animation: slideInLeft 0.8s ease;
}

.about-text h2 {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-bg) 0%, rgba(255, 122, 89, 0.05) 100%);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    margin-bottom: 1rem;
}

.feature h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.about-image {
    animation: slideInRight 0.8s ease;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* Services Section */
.services-section {
    background: linear-gradient(135deg, var(--primary-bg) 0%, rgba(255, 122, 89, 0.03) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 122, 89, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow);
}

.service-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--white);
    padding: 0.8rem;
    border-radius: 50%;
    box-shadow: var(--shadow);
    z-index: 3;
}

.service-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.service-content h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-content ul {
    list-style: none;
}

.service-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Advantages Section */
.advantages-section {
    background: var(--white);
}

.advantages-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.advantage-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-bg) 0%, rgba(255, 122, 89, 0.05) 100%);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease;
    position: relative;
    overflow: hidden;
}

.advantage-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 122, 89, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.advantage-item:hover::before {
    opacity: 1;
}

.advantage-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow);
}

.advantage-icon {
    background: var(--accent-color);
    padding: 1rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.advantage-item h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

.advantage-item p {
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    background: linear-gradient(135deg, var(--primary-bg) 0%, rgba(255, 122, 89, 0.03) 100%);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.faq-item {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease;
    position: relative;
}

.faq-item:hover {
    box-shadow: var(--glow);
}

/* Скрываем радиокнопки */
.faq-radio {
    display: none;
}

/* Стилизация вопроса как кликабельного элемента */
.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    transition: all 0.4s ease;
    border: none;
    width: 100%;
    text-align: left;
    position: relative;
    margin: 0;
}

.faq-question:hover {
    background: rgba(255, 122, 89, 0.05);
}

.faq-question h3 {
    color: var(--dark-color);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-toggle {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 122, 89, 0.1);
    flex-shrink: 0;
}

/* Поворот плюса в крестик при активации */
.faq-radio:checked + .faq-question .faq-toggle {
    transform: rotate(45deg);
    background: var(--accent-color);
    color: white;
}

/* Стилизация ответа */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--white);
}

.faq-content {
    padding: 0 1.5rem 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Показ ответа при активации радиокнопки */
.faq-radio:checked + .faq-question + .faq-answer {
    max-height: 200px;
}

.faq-radio:checked + .faq-question + .faq-answer .faq-content {
    opacity: 1;
}

/* Активное состояние вопроса */
.faq-radio:checked + .faq-question {
    background: rgba(255, 122, 89, 0.08);
    border-bottom: 2px solid var(--accent-color);
}

/* Дополнительные стили для улучшения UX */
.faq-question:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
}

/* Contact Section */
.contact-section {
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    animation: slideInLeft 0.8s ease;
}

.contact-info h2 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.contact-benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 122, 89, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(255, 122, 89, 0.15);
    transform: translateX(5px);
}

.benefit-icon {
    background: var(--accent-color);
    padding: 0.5rem;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-item h4 {
    color: var(--dark-color);
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.benefit-item p {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    margin: 0;
}

.contact-form {
    background: var(--primary-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    animation: slideInRight 0.8s ease;
}

.contact-form h3 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 122, 89, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-group a {
    color: var(--accent-color);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--glow);
    padding: 1.5rem;
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 500px;
    margin: 0 auto;
}

.cookie-content p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-accept {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-accept:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-info {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.btn-info:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 8rem 0 4rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .nav-menu {
        display: none;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-list {
        grid-template-columns: 1fr;
    }
    
    .contact-details {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* FAQ адаптивные стили */
    .faq-accordion {
        gap: 1rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .faq-content {
        padding: 0 1rem 1rem;
    }
    
    .faq-toggle {
        width: 28px;
        height: 28px;
        font-size: 1.3rem;
    }
    
    .cookie-popup {
        left: 10px;
        right: 10px;
    }
    
    .cookie-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .advantage-item {
        flex-direction: column;
        text-align: center;
    }
    
    /* FAQ мобильные стили */
    .faq-question {
        padding: 0.8rem;
    }
    
    .faq-question h3 {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .faq-content {
        padding: 0 0.8rem 0.8rem;
    }
    
    .faq-toggle {
        width: 24px;
        height: 24px;
        font-size: 1.2rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
button:focus,
input:focus,
select:focus,
a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* FAQ Accordion JavaScript functionality */
/* Old FAQ styles removed - now using pure CSS radio button approach */

/* Print styles */
@media print {
    .header,
    .footer,
    .cookie-popup {
        display: none !important;
    }
    
    .main {
        padding-top: 0;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
} 