* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #4a6fa5;
    --secondary: #6b8cbc;
    --accent: #ff9a76;
    --light: #f5f7fa;
    --dark: #2c3e50;
    --text: #333;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent);
}

.logo-icon {
    margin-right: 10px;
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: var(--primary);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.typewriter-container {
    margin-bottom: 1.5rem;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--dark);
    display: inline-block;
    position: relative;
    text-align: center;
    margin: 0 auto;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 111, 165, 0.3);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(74, 111, 165, 0.4);
}

.btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn:disabled:hover {
    background-color: #cccccc;
    transform: none;
    box-shadow: none;
}

.hero .btn {
    animation: shake 3s 1.5s infinite;
}

@keyframes shake {
    0%, 85%, 100% {
        transform: translateX(0);
    }
    87% {
        transform: translateX(-5px);
    }
    89% {
        transform: translateX(5px);
    }
    91% {
        transform: translateX(-5px);
    }
    93% {
        transform: translateX(5px);
    }
}

.hero .btn:hover {
    animation: shake 0.5s, glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 4px 15px rgba(74, 111, 165, 0.3), 0 0 10px rgba(74, 111, 165, 0.5);
    }
    to {
        box-shadow: 0 7px 20px rgba(74, 111, 165, 0.4), 0 0 20px rgba(74, 111, 165, 0.8), 0 0 30px rgba(74, 111, 165, 0.6);
    }
}

section {
    padding: 5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    margin: 1rem auto;
    border-radius: 2px;
}

.about {
    background-color: background: linear-gradient(135deg, #f5f7fa 0%, #f5f7fa 100%) !important;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-carousel {
    flex: 1;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.about-carousel.visible {
    opacity: 1;
    transform: translateX(0);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.carousel-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    z-index: 5;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.carousel-container.loaded .carousel-loading {
    display: none;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: white;
    transform: scale(1.2);
}

.services {
    background: linear-gradient(135deg, #f5f7fa 0%, #f5f7fa 100%) !important;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.contact {
    background-color: white;
}

.contact-content {
    display: flex;
    gap: 4rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .contact-form {
        max-width: 100%;
    }
}

.contact-form .btn {
    width: auto;
    min-width: 200px;
    margin: 0 auto;
    display: block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .contact-form .btn {
        width: 100%;
        padding: 1rem 2rem;
    }
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.consent-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.consent-checkbox {
    margin-right: 10px;
    margin-top: 3px;
    flex-shrink: 0;
    cursor: pointer;
}

.consent-label {
    font-size: 0.9rem;
    line-height: 1.4;
    cursor: pointer;
}

footer {
    background-color: var(--dark);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-logo {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    padding: 0.5rem 1.5rem;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.footer-logo::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;
}

.footer-logo:hover::before {
    left: 100%;
}

.footer-logo:hover {
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.footer-logo span {
    color: var(--accent);
    transition: all 0.4s ease;
}

.footer-logo:hover span {
    color: white;
    transform: scale(1.2);
}

.footer-logo-icon {
    margin-right: 12px;
    font-size: 2.2rem;
    animation: pulse 3s infinite;
}

.footer-links {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    margin: 0 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-links a:hover::after {
    width: 100%;
}

.copyright {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 992px) {
    .about-content, .contact-content {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .carousel-container {
        height: 350px;
    }

    .footer-logo {
        font-size: 1.8rem;
        padding: 0.4rem 1.2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
    }

    nav ul.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    nav li {
        margin: 1rem 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .typewriter-container {
        min-height: 120px;
    }

    .section-title {
        font-size: 2rem;
    }

    .carousel-container {
        height: 300px;
    }

    .hero .btn {
        animation: shake-mobile 3s 1.5s infinite;
    }

    .footer-logo {
        font-size: 1.6rem;
        padding: 0.3rem 1rem;
    }
}

@keyframes shake-mobile {
    0%, 85%, 100% {
        transform: translateX(0);
    }
    87% {
        transform: translateX(-3px);
    }
    89% {
        transform: translateX(3px);
    }
    91% {
        transform: translateX(-3px);
    }
    93% {
        transform: translateX(3px);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .typewriter-container {
        min-height: 100px;
    }

    .hero p {
        font-size: 1rem;
    }

    .carousel-container {
        height: 250px;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .consent-label {
        font-size: 0.85rem;
    }

    .footer-logo {
        font-size: 1.4rem;
        padding: 0.2rem 0.8rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-links a {
        margin: 0.2rem 0;
    }
}

.consent-label a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.consent-label a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

.mobile-photos {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mobile-photo-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-photo-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mobile-photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.mobile-photo-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.mobile-photos-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }

    .mobile-photo-item img {
        height: 200px;
    }

    .about-carousel {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .mobile-photo-item img {
        height: 180px;
    }

    .mobile-photo-grid {
        gap: 0.8rem;
    }
}

@media (max-width: 768px) {
    .service-card {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .about-carousel.visible {
        opacity: 1 !important;
        transform: none !important;
    }

    .floating-elements {
        display: none;
    }

    .hero .btn {
        animation: none;
    }

    .service-card:hover {
        transform: none;
    }
}

.mobile-photo-item img {
    transform: translateZ(0);
    backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.gallery-button-container {
    margin-top: 2rem;
    text-align: center;
}

.gallery-btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 111, 165, 0.3);
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.gallery-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.gallery-btn:hover::before {
    left: 100%;
}

.gallery-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 111, 165, 0.4);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    letter-spacing: 0.8px;
}

@media (max-width: 768px) {
    .gallery-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
    }
}

/*Цены*/
.price-container {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 2px solid var(--primary);
    border-radius: 10px;
    text-align: center;
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.05) 0%, rgba(74, 111, 165, 0.02) 100%);
    position: relative;
    overflow: hidden;
}

.price-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 111, 165, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-card:hover .price-container::before {
    left: 100%;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 0.3rem;
    position: relative;
}

.price-note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    position: relative;
}

.service-card:hover .price-container {
    border-color: var(--secondary);
    box-shadow: 0 4px 12px rgba(74, 111, 165, 0.15);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .price-container {
        margin-top: 1.2rem;
        padding: 0.8rem;
        border-width: 1.5px;
    }

    .price {
        font-size: 1.3rem;
    }

    .price-note {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .price-container {
        margin-top: 1rem;
        padding: 0.7rem;
    }

    .price {
        font-size: 1.2rem;
    }

    .price-note {
        font-size: 0.8rem;
    }
}

/* фон */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.1) 0%, rgba(107, 140, 188, 0.05) 100%);
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/background.jpg') center/cover no-repeat;
    animation: kenBurns 20s ease-in-out infinite alternate;
    opacity: 0.6;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Баннер со скидкой */
.discount-banner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: fadeInScale 0.5s ease-out;
}

.banner-content {
    position: relative;
}

.discount-banner h3 {
    margin: 0 0 15px 0;
    font-size: 1.5em;
    font-weight: 600;
}

.discount-banner p {
    margin: 0 0 25px 0;
    font-size: 1.2em;
    line-height: 1.4;
}

.discount-banner strong {
    color: #ffd700;
    font-size: 1.3em;
}

.banner-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1em;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 180px;
}

.cta-button:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 12px 30px;
    font-size: 1.1em;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 150px;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.banner-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.7);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.protected-message-container {
    position: relative;
}

.protected-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4a6fa5;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: 600;
    z-index: 2;
}

.message-with-promo {
    background: #f8f9fa;
    border: 2px solid #4a6fa5;
    position: relative;
}

.promo-code-section {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffd700;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}

.promo-code-section::before {
    content: '🎉 АКТИВИРОВАНА СКИДКА 50%';
    display: block;
    font-weight: bold;
    color: #856404;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.promo-code-text {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.1em;
    color: #2c3e50;
    letter-spacing: 1px;
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px dashed #856404;
    display: inline-block;
}

#message[readonly] {
    background: #f8f9fa;
    cursor: not-allowed;
    user-select: none;
}

.protected-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .discount-banner {
        padding: 20px;
        max-width: 90%;
    }

    .discount-banner h3 {
        font-size: 1.3em;
    }

    .discount-banner p {
        font-size: 1.1em;
    }

    .banner-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-button, .secondary-btn {
        width: 100%;
        min-width: auto;
    }
}

.testimonials {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #f5f7fa 100%) !important;
    position: relative;
    overflow: hidden;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.testimonial-card {
    background: #f5f7fa;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f5f7fa;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 80px;
    color: #4a6fa5;
    opacity: 0.1;
    font-family: serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a6fa5;
    font-weight: bold;
}

.client-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-info h3 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 1.1em;
}

.client-info span {
    color: #6c757d;
    font-size: 0.9em;
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    line-height: 1.6;
    color: #495057;
    font-style: italic;
    margin: 0;
}

.testimonial-rating {
    color: #ffc107;
    font-size: 1.2em;
    text-align: center;
}

.consent-notice {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 500px;
    margin: 20px auto 0;
    animation: fadeIn 0.6s ease;
}

.consent-icon {
    font-size: 1.2em;
    flex-shrink: 0;
    opacity: 0.7;
}

.consent-notice p {
    margin: 0;
    color: #6c757d;
    font-size: 0.85em;
    line-height: 1.4;
    font-style: italic;
}

.consent-notice a {
    color: #6c757d;
    text-decoration: underline;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.testimonial-card {
    animation: fadeInUp 0.6s ease forwards;
}

.testimonial-card:nth-child(1) {
    animation-delay: 0.1s;
}

.testimonial-card:nth-child(2) {
    animation-delay: 0.2s;
}

.testimonial-card:nth-child(3) {
    animation-delay: 0.3s;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-card {
        margin: 0 10px;
    }

    .consent-notice {
        flex-direction: column;
        text-align: center;
        margin: 0 20px;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        padding: 20px;
    }

    .client-avatar {
        width: 50px;
        height: 50px;
    }

    .consent-notice {
        padding: 15px;
    }
}

/*Фон внизу*/
.contact {
    padding: 5rem 0;
    position: relative;
}

@media (min-width: 769px) {
    .contact {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    }

    .contact::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('images/background2.jpg') center/cover no-repeat;
        animation: kenBurnsContact 25s ease-in-out infinite alternate;
        opacity: 0.3;
        z-index: 1;
    }

    .contact .container {
        position: relative;
        z-index: 2;
    }

    .contact-form {
        background: rgba(255, 255, 255, 0.92);
        padding: 2.5rem;
        border-radius: 15px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 768px) {
    .contact {
        background: linear-gradient(to bottom, #f8f9fa 0%, white 100%);
        padding: 4rem 0;
    }
}

.testimonials {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, rgba(248, 249, 250, 0.8), transparent);
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 768px) {
    .contact::after {
        height: 20px;
        background: linear-gradient(to bottom, rgba(248, 249, 250, 0.9), transparent);
    }
}

.testimonials::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.8));
    z-index: 1;
    pointer-events: none;
}

@media (min-width: 769px) {
    .testimonials::after {
        background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.9));
    }
}

/* Стили для фото в герое */
.hero-person-container {
    position: absolute;
    right: -1%;
    bottom: 0;
    height: 90%;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.hero-person {
    height: 100%;
    width: auto;
    max-width: 35vw;
    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    opacity: 0;
    animation: fadeInRight 1.5s ease-out 0.5s forwards;
    transform: translateX(120px);
    background: transparent !important;
    mix-blend-mode: normal;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
}

.hero-person-container::before {
    display: none;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(120px);
    }
    to {
        opacity: 1;
        transform: translateX(60px);
    }
}

@media (min-width: 1600px) {
    .hero-person-container {
        right: 1%;
    }

    .hero-person {
        max-width: 30vw;
    }
}

@media (max-width: 768px) {
    .hero-person-container {
        display: none;
    }
}

@media (min-width: 769px) {
    .hero-content {
        max-width: 55%;
        margin-right: auto;
        margin-left: 8%;
        text-align: left;
    }

    .typewriter-container {
        justify-content: flex-start;
    }

    .hero h1 {
        text-align: left;
    }
}

/* Центрирование текста */
@media (min-width: 769px) {
    .hero-content {
        max-width: 55%;
        margin: 0 auto;
        text-align: center;
    }

    .typewriter-container {
        justify-content: center;
    }

    .hero h1 {
        text-align: center;
    }
}

.hero-content {
    text-align: center;
}

.typewriter-container {
    justify-content: center;
}

.hero h1 {
    text-align: center;
}

/* Белый фон секций в мобильной версии */

@media (max-width: 768px) {
    .services {
        background: white !important;
    }

    .testimonials {
        background: white !important;
    }

    .contact {
        background: white !important;
        padding: 4rem 0;
    }

    .contact::before {
        display: none !important;
    }

    .contact::after {
        display: none !important;
    }

    .contact-form {
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        border: none !important;
    }
}

/* Кукис */
#cookie_note {
    display: none;
    position: fixed;
    z-index: 100;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    transform: none;
    padding: 20px;
    background-color: white;
    border-radius: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

#cookie_note p {
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    text-align: left;
    color: black;
    line-height: 1.4;
}

#cookie_note .btn-sm {
    display: block;
    margin: 0 auto;
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    background-color: #007AFF;
    color: white;
    cursor: pointer;
    -webkit-appearance: none;
}

.cookie_accept {
    width: 100%;
}

@media (max-width: 768px) {
    #cookie_note.show {
        display: block;
    }

    #cookie_note {
        padding: 15px;
    }

    #cookie_note p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    #cookie_note {
        bottom: 15px;
        left: 50%;
        right: auto;
        width: auto;
        max-width: 90%;
        transform: translateX(-50%);
        border-radius: 8px;
    }
}

@media (min-width: 769px) {
    #cookie_note.show {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        bottom: 15px;
        left: 50%;
        right: auto;
        width: auto;
        max-width: 600px;
        transform: translateX(-50%);
        border-radius: 8px;
    }

    #cookie_note p {
        margin-bottom: 0;
        flex: 1;
    }

    #cookie_note .btn-sm {
        width: auto;
        min-width: 120px;
    }

    .cookie_accept {
        width: auto;
    }
}


@media (max-width: 360px) {
    #cookie_note {
        padding: 12px;
    }

    #cookie_note p {
        font-size: 0.8rem;
    }

    #cookie_note .btn-sm {
        padding: 10px;
        font-size: 0.9rem;
    }
}

@supports (padding: max(0px)) {
    #cookie_note {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}

/* Pain Points Section */
.pain-points {
    background: background: linear-gradient(135deg, #f5f7fa 0%, #f5f7fa 100%) !important;
    padding: 80px 0;
    position: relative;
}

.pain-content {
    max-width: 1000px;
    margin: 0 auto;
}

.pain-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.pain-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pain-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pain-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 5px;
}

.pain-text h3 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.1em;
    font-weight: 600;
}

.pain-text p {
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.pain-cta {
    background: linear-gradient(135deg, #4a6fa5 0%, #2c3e50 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(74, 111, 165, 0.3);
}

.cta-content h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: white;
}

.cta-content p {
    font-size: 1.1em;
    margin-bottom: 25px;
    line-height: 1.6;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: #ff6b6b;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: white;
    color: #4a6fa5;
}

/* Responsive */
@media (max-width: 768px) {
    .pain-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .pain-item {
        padding: 15px;
    }

    .pain-cta {
        padding: 30px 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}