* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
}

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

/* Header */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
}

.main-nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: #2563eb;
}

.btn-primary {
    background-color: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.hero-container h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-container p {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.btn-hero {
    display: inline-block;
    background-color: #2563eb;
    color: #fff;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Advantages Section */
.advantages-section {
    padding: 50px 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

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

.advantage-card h3 {
    color: #2563eb;
    font-size: 1.1rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* Documents Section & Grid Cards */
.documents-section {
    padding: 60px 0;
}

.documents-section.alt-bg {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.documents-section h2 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 10px;
}

.section-desc {
    color: #64748b;
    margin-bottom: 30px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* Container for Image */
.card-image-wrap {
    width: 100%;
    height: 220px;
    background-color: #f1f5f9;
    overflow: hidden;
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Card Content */
.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #64748b;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Card Footer */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.btn-order {
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-order:hover {
    background-color: #1d4ed8;
}

/* Footer */
.site-footer {
    background-color: #0f172a;
    color: #64748b;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

/* FAQ Section Styles */
.faq-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.faq-section h2 {
    text-align: center;
    font-size: 28px;
    color: #1a252f;
    margin-bottom: 35px;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    transition: all 0.2s ease-in-out;
}

.faq-item[open] {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: #cbd5e1;
}

.faq-question {
    font-weight: 600;
    font-size: 17px;
    color: #2c3e50;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 25px;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #25d366;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
    content: '−';
    color: #e74c3c;
}

.faq-answer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #edf2f7;
    color: #4a5568;
    line-height: 1.6;
    font-size: 15px;
}

.faq-answer p {
    margin: 0;
}

/* How It Works Section */
.how-it-works-section {
    padding: 70px 0;
    background-color: #f8fafc;
}

.how-it-works-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 8px;
}

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

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

.step-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px 20px 25px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.step-number {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #cbd5e1;
}

.step-icon {
    width: 64px;
    height: 64px;
    background-color: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #2563eb;
}

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

.step-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.step-desc {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.5;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.75)), url('images/hero-bg.png') center/cover no-repeat;
    color: #ffffff;
    padding: 100px 0;
    text-align: center;
}

/* Modal Window Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-window {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.25s ease;
}

.modal-overlay.active .modal-window {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
}

.modal-title {
    font-size: 1.4rem;
    color: #0f172a;
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: #2563eb;
    margin-bottom: 20px;
    font-weight: 600;
}

.modal-form .form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.modal-form input {
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.modal-form input:focus {
    border-color: #2563eb;
}

.btn-submit {
    width: 100%;
    background: #2563eb;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background: #1d4ed8;
}

/* Контейнер для кнопок */
.messenger-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Общие стили для кликабельной области */
.messenger-link {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.messenger-link:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

/* Размер ваших иконок */
.messenger-icon {
    width: 36px;       /* Задайте нужную ширину */
    height: 36px;      /* Задайте нужную высоту */
    object-fit: contain;
    display: block;
}