/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #F73B20;
    --primary-hover: #e5341a;
    --text-dark: #2d2d2d;
    --text-gray: #666;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

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

/* Header */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-selector {
    position: relative;
}

.lang-btn-current {
    padding: 8px 12px;
    border: none;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 80px;
}

.lang-btn-current:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow);
}

.lang-flag {
    font-size: 18px;
    line-height: 1;
}

.lang-text {
    font-size: 13px;
}

.lang-arrow {
    font-size: 10px;
    margin-left: auto;
    transition: var(--transition);
    color: var(--text-gray);
}

.language-selector.active .lang-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    min-width: 150px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
    animation: slideDown 0.2s ease;
}

.language-selector.active .language-dropdown {
    display: flex;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-option {
    padding: 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 50px;
}

.lang-option:hover {
    background: var(--bg-light);
    transform: scale(1.1);
}

.lang-option.active {
    background: var(--bg-light);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

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

.nav {
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
    border-radius: 2px;
}

@media (max-width: 968px) {
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        display: none;
        gap: 20px;
    }
    
    .nav.active {
        display: flex;
    }
    
    .header {
        position: relative;
    }
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-order-header {
    white-space: nowrap;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-image {
    text-align: center;
}

.hero-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    animation: float 3s ease-in-out infinite;
}

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

/* Section Titles */
.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
}

/* Catalog */
.catalog {
    padding: 80px 0;
    background: var(--bg-white);
}

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

.catalog-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.catalog-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-light);
}

.catalog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.catalog-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.catalog-card-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.catalog-card-description {
    color: var(--text-gray);
    margin-bottom: 20px;
    flex: 1;
}

.catalog-card-prices {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.catalog-size-selector {
    display: flex;
    gap: 8px;
}

.size-btn {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.size-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.size-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.catalog-selected-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.selected-price-label {
    font-size: 14px;
    color: var(--text-gray);
}

.selected-price-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    min-height: 28px;
}

.catalog-card .btn {
    width: 100%;
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.step-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

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

.step-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.step-description {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Pricing */
.pricing {
    padding: 80px 0;
    background: var(--bg-white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    transition: var(--transition);
}

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

.pricing-card-featured {
    border-color: var(--primary-color);
    position: relative;
}

.pricing-card-featured::before {
    content: 'Популярно';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-card-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.pricing-card-size {
    color: var(--text-gray);
    margin-bottom: 30px;
}

.pricing-card-prices {
    margin-bottom: 30px;
}

.pricing-old-price {
    display: block;
    font-size: 18px;
    color: var(--text-gray);
    text-decoration: line-through;
    margin-bottom: 8px;
}

.pricing-new-price {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-card .btn {
    width: 100%;
}

/* Footer */
.footer {
    background: var(--bg-light);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-contacts h4,
.footer-social h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.footer-contacts p {
    color: var(--text-gray);
    margin-bottom: 8px;
}

.footer-social-links {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border-radius: 50%;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.footer-social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
}

.footer-link {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-gray);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: 300;
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

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

.modal-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-dark);
}

/* Form */
.order-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Offer Page */
.offer-page {
    padding: 60px 0;
    max-width: 900px;
    margin: 0 auto;
}

.offer-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.offer-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.offer-section:last-of-type {
    border-bottom: none;
}

.offer-section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.offer-subsection-title {
    font-size: 20px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.offer-section p {
    margin-bottom: 15px;
    color: var(--text-gray);
    line-height: 1.8;
}

.offer-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--text-gray);
}

.offer-section li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.offer-section strong {
    color: var(--text-dark);
}

.offer-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
    text-align: center;
    color: var(--text-gray);
}

.offer-footer p {
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .mobile-menu-toggle {
        display: flex;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }

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

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

    .catalog-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .offer-title {
        font-size: 32px;
    }

    .offer-section-title {
        font-size: 24px;
    }

    .modal-content {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .header-content {
        gap: 15px;
    }

    .logo-img {
        height: 40px;
    }

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

    .hero {
        padding: 40px 0;
    }

    .catalog,
    .how-it-works,
    .pricing {
        padding: 50px 0;
    }
}

