/* =============================================
   GLOBAL STYLES & CSS VARIABLES
   ============================================= */

:root {
    --bg-primary: #F4F2F3;        /* молочно-розовый */
    --accent-coral: #FF5C57;       /* кораллово-красный */
    --text-primary: #1C1C1E;       /* глубокий графит */
    --accent-amber: #F7B733;       /* теплый янтарный */
    --header-footer: #2C3E50;      /* глубокий синий */
    --white: #FFFFFF;
    --shadow: rgba(28, 28, 30, 0.1);
    --shadow-hover: rgba(28, 28, 30, 0.15);
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animations */
@keyframes fadeIn {
    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 pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* =============================================
   HEADER STYLES
   ============================================= */

.header {
    background-color: var(--header-footer);
    box-shadow: 0 2px 10px var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-amber);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-amber);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-amber);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.contact-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border: 2px solid var(--accent-amber);
    border-radius: 25px;
    transition: var(--transition);
}

.contact-phone:hover {
    background-color: var(--accent-amber);
    color: var(--header-footer);
}

/* =============================================
   MAIN CONTENT STYLES
   ============================================= */

.main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(247, 183, 51, 0.1) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 100%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23F7B733" opacity="0.1"/></svg>') repeat;
    animation: pulse 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: slideInLeft 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.hero-highlight {
    color: var(--accent-coral);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    opacity: 0.8;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, var(--accent-coral), var(--accent-amber));
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 92, 87, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 92, 87, 0.4);
}

.hero-image {
    animation: slideInRight 1s ease-out;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* Single column hero content for thank you page */
.hero-content-single {
    display: block !important;
    grid-template-columns: none !important;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}



/* Section Styles */
.section {
    padding: 4rem 0;
    animation: fadeIn 0.8s ease-out;
}

.section:nth-child(even) {
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-primary);
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--shadow);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px var(--shadow-hover);
}

.about-image iframe {
    max-width: 100%;
    height: auto;
    min-height: 300px;
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--shadow);
    transition: var(--transition);
}

.about-image iframe:hover {
    box-shadow: 0 12px 35px var(--shadow-hover);
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-coral);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 10px;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-amber);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(45deg, var(--accent-coral), var(--accent-amber));
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-image img:hover {
    transform: scale(1.05);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--accent-coral), var(--accent-amber));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-primary);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-coral);
    margin-bottom: 1rem;
}

/* Form Styles */
.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 2rem;
    font-weight: 500;
    position: relative;
    animation: fadeIn 0.5s ease-out;
}

.alert-error {
    background-color: #fee;
    border: 2px solid #fcc;
    color: #c33;
}

.alert-success {
    background-color: #efe;
    border: 2px solid #cfc;
    color: #363;
}

.alert .close-btn {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: var(--transition);
}

.alert .close-btn:hover {
    opacity: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid transparent;
    background-color: var(--bg-primary);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-amber);
    box-shadow: 0 0 0 3px rgba(247, 183, 51, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(45deg, var(--accent-coral), var(--accent-amber));
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 92, 87, 0.3);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--accent-amber);
    font-family: serif;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    font-weight: 600;
    color: var(--accent-coral);
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 4px 15px var(--shadow-hover);
}

/* Hide checkbox */
.faq-toggle {
    display: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    background: var(--bg-primary);
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
    user-select: none;
}

.faq-question:hover {
    background: var(--accent-amber);
    color: var(--white);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    transition: var(--transition);
    color: var(--accent-coral);
}

.faq-question:hover .faq-icon {
    color: var(--white);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    background: var(--white);
}

.faq-content {
    padding: 0 1.5rem;
    transition: padding 0.4s ease-in-out;
}

/* When checkbox is checked, show answer */
.faq-toggle:checked + .faq-question + .faq-answer {
    max-height: 300px;
}

.faq-toggle:checked + .faq-question + .faq-answer .faq-content {
    padding: 1.5rem;
}

/* Rotate icon when expanded */
.faq-toggle:checked + .faq-question .faq-icon {
    transform: rotate(45deg);
}

/* Change question background when expanded */
.faq-toggle:checked + .faq-question {
    background: var(--accent-coral);
    color: var(--white);
}

.faq-toggle:checked + .faq-question .faq-icon {
    color: var(--white);
}

/* =============================================
   FOOTER STYLES
   ============================================= */

.footer {
    background-color: var(--header-footer);
    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,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-amber);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-description {
    line-height: 1.6;
    opacity: 0.8;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--accent-amber);
}

.contact-black {
    color: var(--text-primary) !important;
}

.contact-black:hover {
    color: var(--accent-amber) !important;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-amber);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* =============================================
   COOKIE BANNER STYLES
   ============================================= */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--header-footer);
    color: var(--white);
    padding: 1rem;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 1rem;
}

.cookie-content p {
    margin: 0;
    flex: 1;
}

.cookie-content a {
    color: var(--accent-amber);
}

.cookie-accept-btn {
    background: var(--accent-amber);
    color: var(--header-footer);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.cookie-accept-btn:hover {
    background: var(--accent-coral);
    color: var(--white);
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem 0;
    }

    .nav-list {
        gap: 1rem;
    }

    .contact-phone {
        display: none;
    }

    .main {
        margin-top: 120px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image img {
        max-height: 300px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-content-single {
        max-width: 100%;
        padding: 0 1rem;
    }

    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }

    .faq-toggle:checked + .faq-question + .faq-answer .faq-content {
        padding: 1rem;
    }

    .faq-content {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-image {
        height: 150px;
    }

    .section {
        padding: 2rem 0;
    }
}

/* =============================================
   RETINA DISPLAY SUPPORT
   ============================================= */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image img,
    .about-content img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.hidden {
    display: none;
} 