/* 
* Основные стили для сайта бухгалтерских услуг
* Цветовая палитра:
* - Индиго (#4B0082) - заголовки и акценты
* - Ярко-желтый (#FFD700) - кнопки и выделения
* - Темно-серый (#2E2E2E) - фон
* - Светло-бежевый (#FAF3E0) - подложки секций
* - Белый (#FFFFFF) - текст на темных блоках
*/

/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Стили для якорей - добавляем отступ сверху и смещаем вверх */
section[id] {
    scroll-margin-top: 80px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #4B0082;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFD700;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #4B0082;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #FFD700;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: #FFD700;
    color: #2E2E2E;
}

.btn-primary:hover {
    background-color: #e5c100;
    color: #2E2E2E;
}

.btn-secondary {
    background-color: #4B0082;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #390062;
    color: #fff;
}

/* Cookie баннер */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(46, 46, 46, 0.95);
    color: #fff;
    padding: 15px;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin: 0;
    padding-right: 20px;
}

.cookie-content a {
    color: #FFD700;
}

.cookie-content button {
    white-space: nowrap;
}

/* Шапка сайта */
.site-header {
    background-color: #2E2E2E;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    color: #fff;
    font-weight: 500;
    padding: 5px 10px;
}

.nav-menu a:hover {
    color: #FFD700;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.bar {
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Hero секция */
.hero {
    background-color: #4B0082;
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.hero h1 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 3rem;
}

.hero .subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero .container {
    max-width: 800px;
}

/* О нас */
section.about {
    padding: 80px 0;
    background-color: #FAF3E0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Услуги */
.services {
    padding: 80px 0;
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: #FAF3E0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    padding: 20px 20px 10px;
}

.service-card p {
    padding: 0 20px 20px;
}

.service-card .btn {
    margin: 0 20px 20px;
}

/* Преимущества */
.advantages {
    padding: 80px 0;
    background-color: #2E2E2E;
    color: #fff;
}

.advantages h2 {
    color: #fff;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.advantage-item {
    text-align: center;
    padding: 30px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    margin-bottom: 20px;
}

.advantage-item h3 {
    color: #FFD700;
    margin-bottom: 15px;
}

/* Отзывы */
.testimonials {
    padding: 80px 0;
    background-color: #FAF3E0;
}

.testimonials-slider {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.testimonial {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    flex: 1;
    min-width: 300px;
}

.testimonial-content {
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content p {
    font-style: italic;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    color: #FFD700;
    font-size: 2rem;
    font-weight: bold;
}

.author-name {
    font-weight: bold;
    color: #4B0082;
    margin-bottom: 5px;
}

.author-business {
    color: #777;
    font-size: 0.9rem;
}

/* Цены */
.pricing {
    padding: 80px 0;
    background-color: #fff;
}

.pricing-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
}

.pricing-card {
    background-color: #FAF3E0;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    background-color: #4B0082;
    color: #fff;
    transform: scale(1.05);
    z-index: 1;
}

.pricing-card.featured h3 {
    color: #FFD700;
}

.pricing-features {
    margin: 25px 0;
    text-align: left;
}

.pricing-features li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.pricing-features li::before {
    content: '✓';
    color: #FFD700;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.pricing-note {
    margin-bottom: 25px;
    font-size: 0.9rem;
    font-style: italic;
}

/* Контактная форма */
.contact-form {
    padding: 80px 0;
    background-color: #2E2E2E;
    color: #fff;
}

.contact-form h2,
.contact-form .form-intro {
    color: #fff;
    text-align: center;
}

.form-intro {
    max-width: 700px;
    margin: 0 auto 40px;
}

form {
    max-width: 700px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
}

input[type="text"],
input[type="tel"],
select {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.9);
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox input {
    margin-top: 6px;
}

.checkbox label {
    margin-bottom: 0;
}

.checkbox a {
    color: #FFD700;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

/* Контакты */
.contact-info {
    padding: 80px 0;
    background-color: #FAF3E0;
}

.contact-content {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    align-items: flex-start;
}

.contact-details {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-icon {
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-text h3 {
    margin-bottom: 5px;
}

.contact-map {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-map img,
.contact-map iframe {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

/* Подвал сайта */
.site-footer {
    background-color: #2E2E2E;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

/* Убираем жёлтый фон у раздела "about" в подвале */
.footer-section.about {
    background-color: transparent;
}

.footer-section h3 {
    color: #FFD700;
    margin-bottom: 20px;
}

.contact-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-list li svg {
    margin-right: 10px;
}

/* Исправление видимости ссылок в контактах подвала */
.contact-list li a {
    color: #fff;
}

.contact-list li a:hover {
    color: #FFD700;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #FFD700;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Страница благодарности */
.thanks-page {
    padding: 100px 0;
    text-align: center;
    background-color: #FAF3E0;
}

.thanks-content {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.thanks-icon {
    margin-bottom: 30px;
}

.contact-time {
    font-style: italic;
    margin: 20px 0 30px;
    color: #777;
}

/* Страница ошибки */
.error-page {
    padding: 100px 0;
    text-align: center;
    background-color: #FAF3E0;
}

.error-content {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.error-icon {
    margin-bottom: 30px;
}

.contact-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.contact-option {
    display: flex;
    align-items: center;
}

.contact-option svg {
    margin-right: 10px;
}

/* Адаптивная верстка */
@media (max-width: 992px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .pricing-card {
        max-width: none;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-map {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: #2E2E2E;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        height: calc(100vh - 70px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .services-grid, 
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-slider {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-content button {
        margin-top: 15px;
    }
    
    .contact-options {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    section {
        padding: 60px 0;
    }
    
    .about-image,
    .contact-map {
        height: 250px;
    }
    
    .thanks-content,
    .error-content {
        padding: 30px 20px;
    }
}

/* Анимации */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

section {
    animation: fadeIn 0.8s ease;
}

/* Стили для страниц политик */
.policy-page {
    padding: 60px 0;
    background-color: #FAF3E0;
}

.policy-page h1 {
    margin-bottom: 30px;
    text-align: center;
}

.policy-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.last-update {
    text-align: right;
    font-style: italic;
    color: #777;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.policy-section {
    margin-bottom: 40px;
}

.policy-section h2 {
    font-size: 1.8rem;
    text-align: left;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.policy-section h2::after {
    left: 0;
    transform: none;
    width: 60px;
}

.policy-section h3 {
    font-size: 1.4rem;
    margin: 25px 0 15px;
}

.policy-section ul,
.policy-section ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.policy-section ul li,
.policy-section ol li {
    margin-bottom: 8px;
    list-style: disc outside;
}

.policy-section ol li {
    list-style: decimal outside;
}

.policy-section address {
    font-style: normal;
    margin-top: 15px;
    padding: 15px;
    background-color: #FAF3E0;
    border-radius: 5px;
    display: inline-block;
}

/* Таблица для политики cookies */
.cookies-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.cookies-table th,
.cookies-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
}

.cookies-table th {
    background-color: #4B0082;
    color: #fff;
    font-weight: bold;
}

.cookies-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.cookies-table tr:hover {
    background-color: #f1f1f1;
}

@media (max-width: 768px) {
    .policy-content {
        padding: 25px 20px;
    }
    
    .policy-section h2 {
        font-size: 1.5rem;
    }
    
    .policy-section h3 {
        font-size: 1.2rem;
    }
    
    .cookies-table {
        display: block;
        overflow-x: auto;
    }
} 