/* 
 * Основной файл стилей для domain.com
 * Адаптивный дизайн для бухгалтерских услуг
 */

:root {
    --color-primary: #5F4B8B;
    --color-accent: #FFEE93;
    --color-dark: #2B2D42;
    --color-light: #F8F8F8;
    --color-hover: #8FF7A7;
    --font-main: 'Open Sans', sans-serif;
    --font-headings: 'Montserrat', sans-serif;
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-light);
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-headings);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--color-accent);
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-hover);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.primary-btn {
    background-color: var(--color-primary);
    color: white;
}

.primary-btn:hover {
    background-color: var(--color-hover);
    color: var(--color-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.secondary-btn {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.secondary-btn:hover {
    background-color: var(--color-primary);
    color: white;
}

.cookie-btn {
    background-color: var(--color-accent);
    color: var(--color-dark);
    font-size: 14px;
    padding: 8px 16px;
}

/* Хедер */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(248, 248, 248, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header-scrolled {
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-weight: 600;
    color: var(--color-dark);
    transition: var(--transition);
    position: relative;
}

.nav-link:before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    height: 2px;
    width: 0;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.nav-link:hover:before,
.nav-link.active:before {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1002;
    width: 30px;
    height: 20px;
    position: relative;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background-color: var(--color-primary);
    position: absolute;
    left: 0;
    right: 0;
    transition: var(--transition);
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 9px;
}

.menu-toggle span:nth-child(3) {
    top: 18px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

/* Hero секция */
.hero-section {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(43, 45, 66, 0.7), rgba(43, 45, 66, 0.7)), url('../img/KzxFG7.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--color-light);
    text-align: center;
    margin-top: 0;
    padding-top: 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease;
    opacity: 0.9;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* О компании */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    order: 1;
}

.about-image {
    order: 2;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.about-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.about-image img {
    border-radius: 8px;
    transition: var(--transition);
}

/* Преимущества */
.benefits-section {
    background-color: var(--color-light);
    position: relative;
    overflow: hidden;
}

.benefits-section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background-color: white;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    margin: 0 auto 20px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(95, 75, 139, 0.1);
    transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
    background-color: rgba(143, 247, 167, 0.2);
}

/* Услуги */
.services-section {
    background-color: white;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    border: 1px solid rgba(43, 45, 66, 0.1);
    border-radius: 8px;
    padding: 30px;
    transition: var(--transition);
    overflow: hidden;
}

.service-image {
    margin: -30px -30px 20px -30px;
    overflow: hidden;
    height: 200px;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
}

.service-card ul {
    margin-top: 20px;
    padding-left: 20px;
}

.service-card ul li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
}

.service-card ul li:before {
    content: "•";
    color: var(--color-primary);
    position: absolute;
    left: 0;
    top: 0;
}

/* Процесс работы - обновленные стили с рамками */
.process-section {
    background-color: var(--color-light);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 40px 25px 30px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(95, 75, 139, 0.2);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--color-primary);
}

.step-number {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-accent);
    color: var(--color-dark);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    z-index: 1;
    border: 2px solid white;
}

.step-icon {
    margin: 20px auto;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(95, 75, 139, 0.1);
    transition: var(--transition);
}

.process-step:hover .step-icon {
    transform: scale(1.1);
    background-color: rgba(143, 247, 167, 0.2);
}

.process-step h3 {
    margin-top: 0;
    color: var(--color-primary);
}

.process-step p {
    margin-bottom: 0;
}

/* Отзывы - обновленные стили для PHP-слайдера */
.testimonials-section {
    background: linear-gradient(rgba(43, 45, 66, 0.8), rgba(43, 45, 66, 0.8)), url('../img/jzEdjG.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-light);
    text-align: center;
}

.testimonials-section h2:after {
    background-color: var(--color-hover);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 0;
}

.testimonial {
    width: 100%;
    padding: 20px;
}

.testimonial blockquote {
    font-style: italic;
    font-size: 1.2rem;
    position: relative;
    padding: 30px;
}

.testimonial blockquote:before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    left: -20px;
    top: -10px;
    opacity: 0.3;
    color: var(--color-accent);
}

.testimonial cite {
    display: block;
    margin-top: 20px;
    font-style: normal;
    font-weight: 600;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.testimonial-dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* FAQ */
.faq-section {
    background-color: white;
    position: relative;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-toggle {
    display: none;
}

.faq-question {
    display: block;
    padding: 20px;
    background-color: rgba(95, 75, 139, 0.05);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.faq-question:hover {
    background-color: rgba(95, 75, 139, 0.1);
}

.faq-question:after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-toggle:checked + .faq-question:after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: white;
}

.faq-toggle:checked + .faq-question + .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 20px;
}

/* Контакты */
.contact-section {
    background-color: var(--color-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    padding: 20px;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-map {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.map-image {
    width: 100%;
    border-radius: 8px;
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(95, 75, 139, 0.2);
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.form-group.checkbox label {
    font-weight: normal;
}

/* Футер */
.footer {
    background-color: var(--color-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.footer-logo {
    color: white;
    font-family: var(--font-headings);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-about p {
    opacity: 0.8;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-accent);
}

.footer-contact li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact li svg {
    margin-right: 10px;
    opacity: 0.8;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a, 
.footer-services a,
.footer-contact a {
    color: white;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-services a:hover,
.footer-contact a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Cookie banner */
.cookie-banner {
    display: none;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: var(--color-dark);
    color: white;
    padding: 15px;
    z-index: 1001;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.cookie-content a {
    color: var(--color-accent);
}

/* Страница благодарности */
.thanks-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 100px 0;
}

.thanks-content {
    max-width: 600px;
    margin: 0 auto;
}

.thanks-frame {
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.thanks-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background-color: rgba(143, 247, 167, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thanks-icon svg {
    width: 40px;
    height: 40px;
}

/* Юридические страницы */
.legal-section {
    padding: 120px 0 80px;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h3 {
    color: var(--color-primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content ul,
.legal-content ol {
    margin: 15px 0;
    padding-left: 20px;
}

.legal-content ul li,
.legal-content ol li {
    margin-bottom: 8px;
}

.legal-content ul {
    list-style: disc;
}

.legal-content ol {
    list-style: decimal;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
} 