/* 
 * Main stylesheet for domain.com
 * Цветовая палитра:
 * - Основной фон: #f3f9ff (нежно-голубой)
 * - Основной акцент: #7b2cbf (фиолетовый металлик)
 * - Вторичный цвет: #ffbe0b (медово-желтый)
 * - Цвет текста: #202124
 * - Цвет кнопок: #ff4d6d (кораллово-розовый)
 * - Доп. элементы: #83c5be (бирюзовый)
 */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #f3f9ff;
    --color-accent: #7b2cbf;
    --color-secondary: #ffbe0b;
    --color-text: #202124;
    --color-button: #ff4d6d;
    --color-elements: #83c5be;
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 80px;
    height: 4px;
    background-color: var(--color-accent);
    transform: translateX(-50%);
    border-radius: var(--radius-sm);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-button);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn:hover {
    background-color: #e73d5c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-button);
    color: var(--color-button);
}

.btn-outline:hover {
    background-color: var(--color-button);
    color: white;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-accent);
    letter-spacing: -1px;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.menu {
    display: flex;
    margin: 0;
    padding: 0;
}

.menu li {
    margin-left: 25px;
}

.menu li a {
    color: var(--color-text);
    font-weight: 600;
    position: relative;
}

.menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.menu li a:hover::after {
    width: 100%;
}

.btn-contact {
    background-color: var(--color-button);
    color: white !important;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
}

.btn-contact:hover {
    background-color: #e73d5c;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(123, 44, 191, 0.7), rgba(131, 197, 190, 0.7)), url('img/Z8g3gb.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    margin-top: 70px;
}

.hero-content {
    max-width: 600px;
}

.text-center {
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* About Section */
.about {
    background-color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.service-image {
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 200px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--color-accent);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-bottom: 20px;
    font-size: 30px;
}

.service-card h3 {
    color: var(--color-accent);
    margin-bottom: 15px;
}

/* Features Section */
.features {
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.feature-icon {
    background-color: var(--color-secondary);
    color: var(--color-text);
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
}

.feature-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Testimonials */
.testimonials {
    background-color: #f9f9f9;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial-text {
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-name {
    font-weight: 600;
}

.author-title {
    font-size: 0.9rem;
    color: #666;
}

/* FAQ Section */
.faq {
    background-color: white;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    background-color: var(--color-bg);
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 20px;
    background-color: white;
    border: 1px solid var(--color-bg);
    border-top: none;
}

/* Contact Form */
.contact {
    background: linear-gradient(to right, rgba(123, 44, 191, 0.05), rgba(131, 197, 190, 0.05));
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    margin-right: 15px;
    color: var(--color-accent);
    font-size: 20px;
}

.contact-form {
    background-color: white;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.form-check input {
    margin-top: 6px;
    margin-right: 10px;
}

/* Form Errors Styles */
.form-errors {
    background-color: rgba(255, 77, 109, 0.1);
    border-left: 4px solid var(--color-button);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
}

.error-message {
    color: #e73d5c;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.error-message:last-child {
    margin-bottom: 0;
}

.form-control.has-error {
    border-color: var(--color-button);
    background-color: rgba(255, 77, 109, 0.05);
}

/* Footer */
.site-footer {
    background-color: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3,
.footer-contact h3,
.footer-links h3 {
    color: white;
    margin-bottom: 20px;
}

.footer-contact ul li {
    margin-bottom: 10px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
}

.footer-links a:hover {
    color: var(--color-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 9999;
    display: none; /* скрыт по умолчанию */
    justify-content: center;
    align-items: center;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease;
    transform: translateY(100%);
    opacity: 0;
}

.cookie-consent.active {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.cookie-content p {
    margin-bottom: 0;
}

.btn-accept {
    background-color: var(--color-button);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

.btn-accept:hover {
    background-color: #e73d5c;
}

/* CSS Accordian for FAQ (Pure CSS, no JS) */
.faq-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.faq-item label {
    position: relative;
    display: block;
    padding: 15px 20px;
    background-color: var(--color-bg);
    font-weight: 600;
    cursor: pointer;
}

.faq-item label::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5em;
    color: var(--color-accent);
    transition: transform 0.3s ease;
}

.faq-content {
    max-height: 0;
    transition: max-height 0.3s ease;
    overflow: hidden;
    background-color: white;
    border: 1px solid var(--color-bg);
    border-top: none;
}

.faq-item input:checked ~ .faq-content {
    max-height: 100vh;
}

.faq-item input:checked ~ label::after {
    transform: rotate(45deg);
}

.faq-content-inner {
    padding: 20px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
        cursor: pointer;
        width: 30px;
        height: 20px;
        position: relative;
    }
    
    .menu-icon span {
        display: block;
        position: absolute;
        height: 2px;
        width: 100%;
        background: var(--color-text);
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: .25s ease-in-out;
    }
    
    .menu-icon span:nth-child(1) {
        top: 0px;
    }
    
    .menu-icon span:nth-child(2) {
        top: 9px;
    }
    
    .menu-icon span:nth-child(3) {
        top: 18px;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
        top: 9px;
        transform: rotate(135deg);
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
        opacity: 0;
        left: -60px;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
        top: 9px;
        transform: rotate(-135deg);
    }
    
    .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    
    .menu-toggle:checked ~ .menu {
        max-height: 500px;
    }
    
    .menu li {
        margin: 15px 0;
        text-align: center;
    }
    
    .menu li:first-child {
        margin-top: 0;
    }
    
    /* Grid Responsive */
    .about-grid,
    .services-grid,
    .features-grid,
    .testimonial-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Medium Screen Adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid,
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section {
        padding: 70px 0;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .cookie-consent {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }
    
    .hero {
        height: auto;
        min-height: 0;
        color: black;
        background: none;
        margin-top: 0;
    }
} 