/* Базовые стили (замена normalize.css) */
html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    color-scheme: light;
}

body {
    margin: 0;
}

main {
    display: block;
}

h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}

pre {
    font-family: monospace, monospace;
    font-size: 1em;
}

a {
    background-color: transparent;
}

abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted;
}

b,
strong {
    font-weight: bolder;
}

code,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

small {
    font-size: 80%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

img {
    border-style: none;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

fieldset {
    padding: 0.35em 0.75em 0.625em;
}

legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
}

progress {
    vertical-align: baseline;
}

textarea {
    overflow: auto;
}

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

details {
    display: block;
}

summary {
    display: list-item;
}

template {
    display: none;
}

[hidden] {
    display: none;
}

/* Основные стили */
:root {
    --primary-color: #2E5BFF;
    --secondary-color: #00C853;
    --accent-color: #FF9100;
    --text-color: #1A1A1A;
    --text-light: #666666;
    --background-light: #F5F7FA;
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
    color-scheme: light;
    forced-color-adjust: none;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    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;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Шапка сайта */
.hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.75) 0%, rgba(96, 165, 250, 0.75) 100%),
                url('../images/home.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.svg') repeat;
    opacity: 0.05;
    pointer-events: none;
}

.nav {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: auto;
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 12px 20px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    height: 50px;
    width: auto;
}

/* Выбор города */
.city-selector {
    position: relative;
    z-index: 1002;
}

.city-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--background-light);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.city-button:hover {
    background: #E8EAF6;
}

/* Базовые стили меню */
.city-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    width: 300px;
    margin-top: 8px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}

.city-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.city-menu-content {
    padding: 16px;
}

.city-group {
    margin-bottom: 24px;
}

.city-group:last-child {
    margin-bottom: 0;
}

.city-group h3 {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.city-group a {
    display: block;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
}

.city-group a:hover {
    background: var(--background-light);
    color: var(--primary-color);
}

/* Кнопки контактов */
.contact-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.phone-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}

.phone-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.phone-button:hover::before,
.phone-button:focus::before {
    width: 300%;
    height: 300%;
}

.phone-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(46, 91, 255, 0.2);
    background: #1d4ed8;
}

.phone-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(46, 91, 255, 0.2);
}

.phone-button span {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.social-buttons {
    display: flex;
    gap: 12px;
}

.whatsapp-button, .telegram-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.whatsapp-button {
    background: #25D366;
    color: var(--white);
}

.telegram-button {
    background: #0088cc;
    color: var(--white);
}

.whatsapp-button:hover, .telegram-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Контент героя */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: 'Inter', sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 60px;
    text-align: center;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 48px;
    padding: 0 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.feature {
    background: rgba(255, 255, 255, 0.2);
    padding: 32px;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.feature:hover .feature-icon {
    transform: scale(1.1);
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 48px;
}

.primary-button, .secondary-button {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.primary-button {
    background: var(--white);
    color: #2563eb;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.secondary-button {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.primary-button:hover, .secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.primary-button:hover {
    background: #f8fafc;
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Преимущества */
.benefits {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--background-light) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-description {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.benefit-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.benefit-image-wrapper {
    position: relative;
    padding-top: 66.67%; /* Соотношение сторон 3:2 */
    overflow: hidden;
}

.benefit-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.benefit-card:hover .benefit-image-wrapper img {
    transform: scale(1.05);
}

.benefit-content {
    padding: 32px;
    position: relative;
}

.benefit-content h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.benefit-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.benefit-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.benefit-features li {
    display: flex;
    align-items: center;
    color: var(--text-color);
    font-size: 0.95rem;
}

.benefit-features li::before {
    content: '✓';
    margin-right: 8px;
    color: var(--primary-color);
    font-weight: bold;
}

.benefits-cta {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(96, 165, 250, 0.1) 100%);
    border-radius: var(--radius);
    margin-top: 40px;
}

.benefits-cta p {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-color);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-2px);
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Процесс */
.process {
    padding: 80px 0;
    background: var(--background-light);
    position: relative;
    overflow: hidden;
}

.process::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.svg') repeat;
    opacity: 0.05;
    pointer-events: none;
}

.process .section-header {
    margin-bottom: 60px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: center;
    gap: 24px;
}

.step-content {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    flex: 1;
    position: relative;
    z-index: 1;
}

.step:hover .step-content {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.step-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-light);
    border-radius: 50%;
    margin-bottom: 24px;
    transition: var(--transition);
}

.step:hover .step-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-color);
}

.step p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.step-arrow {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
}

.step:hover .step-arrow {
    color: var(--primary-color);
    transform: translateX(5px);
}

.step:last-child .step-arrow {
    display: none;
}

@media (max-width: 1200px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .step:nth-child(2) .step-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .process {
        padding: 60px 0;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .step-content {
        padding: 24px;
    }
    
    .step:nth-child(1) .step-arrow,
    .step:nth-child(2) .step-arrow,
    .step:nth-child(3) .step-arrow {
        display: flex;
        transform: rotate(90deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .step-content,
    .step-icon,
    .step-arrow {
        transition: none;
    }
}

/* Стили для FAQ */
.faq {
    padding: 80px 0;
    background: var(--background-light);
    position: relative;
    overflow: visible;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.faq-item {
    border-bottom: 1px solid var(--background-light);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(46, 91, 255, 0.05);
}

.faq-question::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-left: 16px;
    flex-shrink: 0;
}

.faq-item.active .faq-question {
    background: rgba(46, 91, 255, 0.05);
}

.faq-item.active .faq-question::after {
    transform: rotate(-135deg);
}

.faq-answer {
    height: 0;
    overflow: hidden;
    padding: 0 20px;
    opacity: 0;
    transition: height 0.3s ease-out, opacity 0.2s ease-out, padding 0.3s ease-out;
}

.faq-item.active .faq-answer {
    height: auto;
    opacity: 1;
    padding: 0 20px 20px;
}

@media (max-width: 768px) {
    .faq {
        padding: 60px 0;
    }
    
    .faq-list {
        margin: 0 16px;
    }
    
    .faq-question {
        padding: 16px;
        font-size: 15px;
    }
    
    .faq-answer {
        padding: 0 16px;
        font-size: 14px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 16px 16px;
    }
}

/* Стили для слайдера отзывов */
.testimonials-slider {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 800px;
}

.testimonial-card {
    display: none;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 1rem;
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial-card.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.testimonial-content {
    position: relative;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 24px;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 60px;
    color: var(--primary-color);
    opacity: 0.2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-color);
}

.author-date {
    font-size: 14px;
    color: var(--text-light);
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.prev-testimonial,
.next-testimonial {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
}

.prev-testimonial:hover,
.next-testimonial:hover {
    color: var(--primary-color);
}

.testimonials-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-light);
    opacity: 0.5;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    opacity: 1;
    background: var(--primary-color);
}

/* Медиа-запросы для FAQ и слайдера */
@media (max-width: 768px) {
    .faq-question {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    .faq-answer {
        font-size: 0.85rem;
    }

    .testimonial-card {
        padding: 1.5rem;
        margin: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-question::after,
    .faq-answer,
    .testimonial-card {
        transition: none;
    }
}

/* Форма */
.contact-form {
    padding: 4rem 0;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)),
                url('../images/home.webp');
    background-size: cover;
    background-position: center;
    color: white;
}

#callback-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#callback-form input {
    padding: 1rem;
    border: none;
    border-radius: 5px;
    background: rgba(255,255,255,0.1);
    color: white;
}

#callback-form input::placeholder {
    color: rgba(255,255,255,0.7);
}

/* Footer */
footer {
    background: linear-gradient(to right, #1a1a1a, #2d2d2d);
    color: #fff;
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info {
    max-width: 300px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(1);
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.footer-contacts h4,
.footer-social h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.footer-contacts h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-phone {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 28px;
}

.footer-phone::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: url('../images/icons/phone.svg') no-repeat center;
    filter: invert(1);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-phone:hover {
    color: var(--primary);
}

.footer-phone:hover::before {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-info {
        max-width: 100%;
    }

    .footer-logo {
        margin: 0 auto 20px;
    }

    .footer-contacts h4::after,
    .footer-social h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-phone {
        padding-left: 0;
    }

    .footer-phone::before {
        display: none;
    }

    .social-links {
        justify-content: center;
    }
}

/* Галерея */
.gallery {
    padding: 100px 0;
    background: var(--background-light);
    position: relative;
    overflow: hidden;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.gallery .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 0 auto;
    max-width: 1400px;
    padding: 0 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Медиа запросы для галереи */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-item.wide {
        grid-column: span 3;
    }
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item.wide {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .gallery {
        padding: 60px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .gallery-item.wide {
        grid-column: span 1;
    }
}

/* Поддержка отключенной анимации */
@media (prefers-reduced-motion: reduce) {
    .gallery-item,
    .gallery-item img {
        transition: none !important;
    }
}

/* Отзывы */
.testimonials {
    padding: 80px 0;
    background: var(--white);
    overflow: hidden;
}

.testimonials h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 48px;
}

.testimonials-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    flex: 0 0 100%;
    width: 100%;
    background: var(--background-light);
    border-radius: var(--radius);
    padding: 32px;
    margin: 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    opacity: 0.7;
    transform: scale(0.95);
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
}

.testimonial-content {
    position: relative;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 24px;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 60px;
    color: var(--primary-color);
    opacity: 0.2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-color);
}

.author-date {
    font-size: 14px;
    color: var(--text-light);
}

.testimonials-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
}

.prev-testimonial,
.next-testimonial {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-testimonial:hover,
.next-testimonial:hover {
    background: var(--primary-color);
    color: var(--white);
}

.testimonials-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-light);
    opacity: 0.3;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    opacity: 1;
    background: var(--primary-color);
}

/* Медиа запросы */

/* Большие десктопы */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Средние десктопы */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-item.wide {
        grid-column: span 3;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* Планшеты */
@media (max-width: 992px) {
    .container {
        max-width: 960px;
        padding: 0 24px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 36px;
        padding: 0 20px;
    }

    .nav .container {
        height: 70px;
    }

    .logo {
        height: 45px;
    }

    .social-buttons {
        display: none;
    }

    .contact-buttons {
        gap: 12px;
    }

    .whatsapp-button span, 
    .telegram-button span {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item.wide {
        grid-column: span 2;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Малые планшеты */
@media (max-width: 768px) {
    .container {
        max-width: 720px;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
    }

    .nav .container {
        height: 60px;
        padding: 8px 16px;
        justify-content: space-between;
        gap: 12px;
    }

    .nav-left {
        gap: 12px;
    }

    .logo {
        height: 40px;
    }

    .contact-buttons {
        display: flex;
        gap: 8px;
        margin-left: auto;
    }

    .social-buttons {
        display: none;
    }

    .phone-button {
        padding: 8px 12px;
        font-size: 0.9rem;
        background: var(--primary-color);
        border-radius: var(--radius);
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }
    
    .phone-button span {
        display: none;
    }
    
    .phone-button svg {
        width: 24px;
        height: 24px;
        margin: 0;
    }

    .phone-button::after {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .phone-button:active::after {
        opacity: 1;
    }

    .city-button {
        padding: 6px 12px;
        font-size: 14px;
    }

    .city-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    }

    .city-menu.active {
        transform: translateY(0);
        height: auto;
        max-height: 80vh;
    }

    .city-menu-content {
        padding: 20px 16px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
        height: auto;
        max-height: calc(80vh - 40px);
    }

    .city-menu-content::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: #E0E0E0;
        border-radius: 2px;
    }

    .city-group {
        margin-top: 20px;
    }

    .city-group:first-child {
        margin-top: 24px; /* Отступ после "ручки" свайпа */
    }

    .city-group a {
        margin: 4px 0;
        background: var(--background-light);
        border-radius: 12px;
        font-size: 16px;
    }

    .city-group a:active {
        background: #E8EAF6;
        transform: scale(0.98);
    }

    .hero {
        padding-top: 80px;
    }

    .hero h1 {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature {
        padding: 24px;
    }

    .benefits-grid,
    .process-steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cta-buttons {
        flex-direction: column;
        padding: 0 20px;
    }

    .primary-button, 
    .secondary-button {
        width: 100%;
        justify-content: center;
    }

    .testimonial-card {
        padding: 24px;
    }

    .testimonial-text {
        font-size: 16px;
    }

    .author-avatar {
        width: 48px;
        height: 48px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .mobile-phone {
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
        white-space: nowrap;
    }

    .mobile-phone svg {
        width: 16px;
        height: 16px;
        margin-right: 4px;
    }
}

/* Мобильные */
@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 28px;
        padding: 0 16px;
    }

    .nav .container {
        height: 56px;
        padding: 8px 12px;
    }

    .logo {
        height: 36px;
    }

    .nav-left {
        gap: 8px;
    }

    .phone-button {
        padding: 8px;
        min-width: 40px;
        min-height: 40px;
    }

    .phone-button svg {
        width: 20px;
        height: 20px;
    }

    .city-button {
        padding: 4px 8px;
        font-size: 13px;
    }

    .city-menu {
        top: 56px;
    }

    .hero {
        padding-top: 76px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery-item.wide {
        grid-column: span 1;
    }

    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    }
    
    .gallery-overlay span {
        transform: translateY(0);
    }

    .feature {
        padding: 20px;
    }

    .feature h3 {
        font-size: 18px;
    }

    .feature p {
        font-size: 14px;
    }

    .testimonial-card {
        padding: 20px;
    }

    .testimonial-text {
        font-size: 14px;
    }

    .testimonial-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .testimonials-nav {
        gap: 16px;
    }

    .prev-testimonial,
    .next-testimonial {
        width: 36px;
        height: 36px;
    }

    .footer-content {
        text-align: left;
    }

    .social-links {
        justify-content: flex-start;
    }

    .footer-bottom {
        font-size: 14px;
    }
}

/* Поддержка высоких экранов */
@media (min-height: 800px) {
    .hero {
        min-height: 80vh;
        display: flex;
        align-items: center;
    }
}

/* Поддержка маленьких экранов */
@media (max-height: 600px) {
    .hero {
        padding: 80px 0 40px;
    }

    .hero-features {
        gap: 16px;
    }

    .feature {
        padding: 16px;
    }
}

/* Поддержка высокой контрастности */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000FF;
        --text-color: #000000;
        --text-light: #333333;
        --background-light: #FFFFFF;
    }

    .hero,
    .benefits,
    .process,
    .gallery,
    .testimonials,
    footer {
        background: #FFFFFF;
    }

    .feature,
    .benefit-card,
    .step-content,
    .testimonial-card {
        border: 2px solid #000000;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
    .city-menu {
        max-height: 90vh;
    }

    .city-group a {
        padding: 10px 12px;
        font-size: 15px;
    }
}

/* Для iPhone SE и других маленьких экранов */
@media (max-width: 380px) {
    .city-menu.active {
        max-height: 100vh;
    }

    .city-menu-content {
        max-height: calc(100vh - 40px);
        padding: 16px 12px;
    }

    .city-group a {
        padding: 10px 12px;
        font-size: 15px;
    }
}

/* Мобильная кнопка быстрого звонка */
.mobile-call-button {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--primary-color);
    color: var(--white);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(46, 91, 255, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    align-items: center;
    justify-content: center;
}

.mobile-call-button svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.mobile-call-button:hover,
.mobile-call-button:focus {
    background: #1a4bff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 91, 255, 0.4);
}

.mobile-call-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .mobile-call-button {
        display: flex;
    }
    
    /* Добавляем отступ для контента, чтобы кнопка не перекрывала важную информацию */
    body {
        padding-bottom: 80px;
    }
}

.step-content[onclick] {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-content[onclick]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 91, 255, 0.2);
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeIn 0.6s ease-out forwards;
}

@media (hover: none) {
    .phone-button:hover {
        transform: none;
        box-shadow: none;
    }
    
    .phone-button:active {
        background: #1d4ed8;
    }
}

/* Стили для печати */
@media print {
    .nav,
    .hero-features,
    .cta-buttons,
    .social-buttons,
    .gallery,
    .testimonials,
    .process,
    .faq {
        display: none !important;
    }

    .hero {
        background: none;
        color: #000;
        padding: 20px 0;
    }

    .hero h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .benefits {
        padding: 20px 0;
        background: none;
    }

    .benefits-grid {
        display: block;
    }

    .benefit-card {
        margin-bottom: 20px;
        page-break-inside: avoid;
    }

    .footer {
        border-top: 1px solid #000;
        padding: 20px 0;
    }

    .footer-content {
        display: block;
    }

    .footer-phone::before,
    .social-links {
        display: none;
    }

    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
}

/* Оптимизация для устройств без поддержки hover */
@media (hover: none) {
    .feature:hover,
    .benefit-card:hover,
    .gallery-item:hover,
    .step:hover .step-content,
    .step:hover .step-icon,
    .step:hover .step-arrow {
        transform: none;
    }
}

.step-content[onclick]:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(46, 91, 255, 0.1);
} 