/* Основные стили и переменные */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Rubik:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #EC6345;
    --primary-hover: #c15436;
    --secondary-color: #1D2F5A;
    --text-dark: #111111;
    --text-gray: #495057;
    --text-light: #C4C4C4;
    --bg-light: #F2F2F2;
    --bg-white: #FFFFFF;
    --border-color: #C4C4C4;
    --accent-yellow: #FFEE58;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
}

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

body {
    font-family: 'Rubik', sans-serif;
    color: var(--text-gray);
    line-height: 1.6;
    background-color: var(--bg-white);
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    background: var(--bg-white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-img {
    height: 40px;
    filter: brightness(0) saturate(100%) invert(40%) sepia(76%) saturate(1018%) hue-rotate(336deg) brightness(96%) contrast(89%);
}

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

.language-switcher {
    display: flex;
    gap: 5px;
    background: var(--bg-light);
    border-radius: 25px;
    padding: 3px;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: var(--text-dark);
}

.lang-btn.active {
    background: var(--bg-white);
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.phone {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
}

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

/* Главный баннер */
.hero {
    background: var(--secondary-color);
    color: white;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 50%;
    height: 200%;
    background: rgba(255,255,255,0.05);
    transform: rotate(45deg);
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.95;
}

.discount {
    background: rgba(255,255,255,0.2);
    padding: 2px 10px;
    border-radius: 5px;
    font-weight: 700;
}

.hero-description {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.hero-description p {
    margin-bottom: 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 1px solid transparent;
    box-shadow: 0 5px 15px rgba(236,99,69,0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(236,99,69,0.4);
}

.hero-image {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.discount-circle {
    width: 180px;
    height: 180px;
    background: rgba(255,255,255,0.15);
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.discount-text {
    font-size: 42px;
    font-weight: 700;
}

.discount-period {
    font-size: 14px;
    opacity: 0.9;
}

/* Секция преимуществ */
.features {
    padding: 50px 0;
    background: var(--bg-light);
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(236, 99, 69, 0.3);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.feature-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Секция преимуществ */
.benefits {
    padding: 50px 0;
    background: var(--bg-white);
}

.benefits-list {
    max-width: 800px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    margin-bottom: 15px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(236, 99, 69, 0.1);
    transform: translateX(10px);
}

.benefit-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 3px;
}

.benefit-text {
    flex: 1;
}

.benefit-text strong {
    display: block;
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-size: 20px;
}

.benefit-text p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

/* Галерея */
.gallery {
    padding: 50px 0;
    background: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    padding-top: 75%;
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* FAQ секция */
.faq {
    padding: 50px 0;
    background: var(--bg-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

.faq-question:hover {
    background: var(--bg-light);
}

.faq-icon {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-light);
}

.faq-item.active .faq-answer {
    padding: 20px 25px;
    max-height: 200px;
}

/* Форма заявки */
.form-section {
    padding: 50px 0;
    background: var(--bg-white);
}

.form-wrapper {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.form-section .section-title {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.form-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 16px;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 15px;
}

.size-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 5px;
}

.size-btn {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-white);
    color: var(--text-gray);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-btn:hover {
    border-color: var(--primary-color);
    background: rgba(236, 99, 69, 0.05);
    transform: translateY(-2px);
}

.size-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(236, 99, 69, 0.3);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

.btn-submit {
    width: 100%;
    font-size: 20px;
    padding: 18px;
}

/* Футер */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 30px;
}

.footer-info,
.footer-contacts,
.footer-address {
    flex: 1;
    text-align: center;
}

.footer h4 {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

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

.footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

/* Секция Как работает */
.how-it-works {
    padding: 50px 0;
    background: var(--bg-white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.step-card {
    text-align: center;
    padding: 20px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 15px;
}

.step-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.step-card p {
    color: var(--text-light);
}

.example-box {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
    color: var(--text-gray);
    border-left: 4px solid var(--primary-color);
}

/* CTA блок */
.cta-block {
    padding: 40px 0;
    background: var(--secondary-color);
    text-align: center;
    color: white;
}

.cta-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-subtitle {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.95;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Хедер на мобильных */
    .header-content {
        padding: 10px 0;
        gap: 8px;
    }

    .logo-img {
        height: 30px;
    }

    .nav {
        flex: 1;
        justify-content: flex-end;
        gap: 8px;
    }

    .language-switcher {
        padding: 2px;
        gap: 3px;
    }

    .lang-btn {
        padding: 5px 10px;
        font-size: 13px;
    }

    .phone {
        font-size: 15px;
        white-space: nowrap;
    }

    /* Hero секция */
    .hero {
        padding: 30px 0;
    }

    .hero .container {
        flex-direction: column;
        gap: 30px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 4px 12px;
    }

    .hero-title {
        font-size: 24px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-image {
        flex: 0 0 auto;
    }

    .discount-circle {
        width: 150px;
        height: 150px;
    }

    .discount-text {
        font-size: 36px;
    }

    .discount-period {
        font-size: 12px;
    }

    .btn {
        padding: 10px 25px;
        font-size: 15px;
    }

    /* Секции */
    .features,
    .benefits,
    .how-it-works,
    .gallery,
    .faq {
        padding: 40px 0;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 25px;
    }

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

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .feature-card {
        padding: 20px 15px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
    }

    .feature-icon svg {
        width: 28px;
        height: 28px;
    }

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

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

    /* Преимущества */
    .benefit-item {
        padding: 15px;
        gap: 12px;
    }

    .benefit-icon {
        font-size: 20px;
    }

    .benefit-text strong {
        font-size: 15px;
    }

    .benefit-text p {
        font-size: 13px;
    }

    /* FAQ */
    .faq-question {
        padding: 12px 15px;
        font-size: 15px;
        gap: 10px;
    }

    .faq-icon {
        font-size: 20px;
    }

    .faq-answer {
        font-size: 14px;
    }

    .faq-item.active .faq-answer {
        padding: 15px;
    }

    /* CTA */
    .cta-block {
        padding: 30px 0;
    }

    .cta-title {
        font-size: 22px;
    }

    .cta-subtitle {
        font-size: 16px;
    }

    /* Форма */
    .form-section {
        padding: 40px 0;
    }

    .form-wrapper {
        padding: 20px 15px;
    }

    .form-subtitle {
        font-size: 14px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }

    .size-buttons {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .size-btn {
        padding: 10px;
        font-size: 14px;
    }

    .form-label {
        font-size: 14px;
    }

    .btn-submit {
        font-size: 16px;
        padding: 14px;
    }

    /* Футер */
    .footer {
        padding: 30px 0 15px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

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

    .footer h4 {
        font-size: 15px;
    }

    .footer p {
        font-size: 13px;
    }

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

    /* How it works */
    .step-card {
        padding: 10px;
    }

    .step-number {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .step-card h3 {
        font-size: 18px;
    }

    .step-card p {
        font-size: 14px;
    }

    .example-box {
        padding: 15px;
        font-size: 14px;
    }

    /* Галерея */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-item {
        padding-top: 75%;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .header-content {
        gap: 6px;
    }

    .logo-img {
        height: 26px;
    }

    .nav {
        gap: 6px;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 12px;
    }

    .phone {
        font-size: 13px;
        font-weight: 500;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .discount-circle {
        width: 130px;
        height: 130px;
    }

    .discount-text {
        font-size: 32px;
    }

    .section-title {
        font-size: 20px;
    }

    .size-buttons {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .size-btn {
        padding: 8px;
        font-size: 13px;
    }

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .price-card {
        padding: 20px;
    }

    .price-size {
        font-size: 24px;
    }

    .price-value {
        font-size: 14px;
    }

    .price-amount {
        font-size: 18px;
    }
}

/* Карта */
.map-container {
    width: 100%;
    height: 500px;
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Блок цен */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.price-card {
    background: var(--bg-white);
    border: 2px solid var(--bg-light);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.price-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.price-size {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.price-value {
    font-size: 16px;
    color: var(--text-gray);
}

.price-amount {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Пользовательские маркеры на карте */
.custom-marker {
    background: none;
    border: none;
}

.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: var(--primary-color);
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.marker-pin::after {
    content: '';
    width: 14px;
    height: 14px;
    margin: 8px 0 0 8px;
    background: var(--bg-white);
    position: absolute;
    border-radius: 50%;
}

/* Всплывающие окна на карте */
.map-popup h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.map-popup p {
    font-size: 14px;
    color: var(--text-gray);
    margin: 4px 0;
}

.map-popup strong {
    color: var(--text-dark);
}

/* Адаптация для планшетов */
@media (max-width: 768px) {
    .map-container {
        height: 400px;
        margin: 30px 0;
    }

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin: 30px 0;
    }

    .price-card {
        padding: 20px 15px;
    }

    .price-size {
        font-size: 24px;
    }

    .price-value {
        font-size: 14px;
    }

    .price-amount {
        font-size: 18px;
    }
}

/* Адаптация для мобильных */
@media (max-width: 480px) {
    .map-container {
        height: 300px;
        margin: 20px 0;
        border-radius: 8px;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin: 20px 0;
    }

    .price-card {
        padding: 15px 10px;
    }

    .price-size {
        font-size: 20px;
    }

    .price-value {
        font-size: 13px;
    }

    .price-amount {
        font-size: 16px;
    }

    .marker-pin {
        width: 24px;
        height: 24px;
        margin: -12px 0 0 -12px;
    }

    .marker-pin::after {
        width: 10px;
        height: 10px;
        margin: 7px 0 0 7px;
    }
}