* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    background: #f9fafb;
    color: #2d2d2d;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: none;
    background: none;
    font: inherit;
}

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: #3b3b3b;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.header-cta {
    padding: 8px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #cd541f, #dd7220);
    color: #fff;
    font-size: 13px;
}

.nav-link-cta {
    background: linear-gradient(135deg, #cd541f, #dd7220) !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(205, 84, 31, 0.3);
    padding: 8px 14px;
}

.nav-open .nav-link-cta {
    padding: 10px 14px;
}

.burger {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.burger span {
    width: 18px;
    height: 2px;
    background: #444;
    border-radius: 999px;
    transition: 0.2s;
}

.burger-active span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}
.burger-active span:nth-child(2) {
    opacity: 0;
}
.burger-active span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
}

.nav {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

.nav-open { 
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 10px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav-link {
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 14px;
    color: #555;
    background: transparent;
    box-shadow: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.nav-open .nav-link {
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    padding: 10px 14px;
    font-size: 15px;
}

.nav-link-active {
    background: linear-gradient(135deg, #ffe4d6, #ffd4b8);
    color: #cd541f;
}

/* ===== Главная ===== */

.page {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

.hero {
    padding: 20px 0 30px;
    position: relative;
    background-image: url('img fon/photo_1_2025-11-28_20-43-15.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    margin: 0 -16px 20px;
    padding: 30px 16px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 228, 214, 0.7));
    border-radius: 20px;
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #ffe4d6;
    color: #cd541f;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111827;
}

.hero-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 20px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 15px;
    color: #fff;
    background: linear-gradient(135deg, #cd541f, #dd7220);
    box-shadow: 0 4px 12px rgba(205,84,31,0.4);
}

.btn-ghost {
    padding: 12px 20px;
    border-radius: 14px;
    border: 1px solid #ffd4b8;
    background: linear-gradient(135deg, #fff5f0, #ffe4d6);
    color: #cd541f;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-ghost:hover {
    background: linear-gradient(135deg, #ffe4d6, #ffd4b8);
    border-color: #ffb88c;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(205, 84, 31, 0.2);
}

/* ===== Карточки ===== */

.section {
    padding: 24px 0;
}

.section + .section {
    margin-top: 32px;
}

.section-dark {
    background-image: url('img fon/photo_5_2025-11-28_20-43-15.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    padding: 24px 16px;
    margin: 0 -16px;
    position: relative;
}

.section-calculator {
    margin-top: 64px;
    margin-bottom: 64px;
}

.section-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 245, 240, 0.95), rgba(255, 232, 220, 0.9));
    border-radius: 20px;
    z-index: 0;
}

.section-dark > * {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}

.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.card {
    background: #fff;
    padding: 16px;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.card:nth-child(1) {
    background-image: url('img fon/photo_2_2025-11-28_20-43-15.jpg');
    background-size: cover;
    background-position: center;
}

.card:nth-child(1)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 228, 214, 0.85));
    z-index: 0;
}

.card:nth-child(2) {
    background-image: url('img fon/photo_3_2025-11-28_20-43-15.jpg');
    background-size: cover;
    background-position: center;
}

.card:nth-child(2)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 184, 140, 0.85));
    z-index: 0;
}

.card:nth-child(3) {
    background-image: url('img fon/photo_4_2025-11-28_20-43-15.jpg');
    background-size: cover;
    background-position: center;
}

.card:nth-child(3)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 157, 92, 0.85));
    z-index: 0;
}

.card > * {
    position: relative;
    z-index: 1;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    margin-bottom: 10px;
}

.card-icon-blue { background: #ffd4b8; }
.card-icon-purple { background: #ffb88c; }
.card-icon-green { background: #ff9d5c; }

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.card-text {
    font-size: 14px;
    color: #6b7280;
}

.section-text {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}

/* Секция "О компании" с фоновым изображением */
.section:has(.section-text) {
    position: relative;
    background-image: url('img fon/photo_7_2025-11-25_22-31-38.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    margin: 0 -16px 20px;
    padding: 30px 16px;
    overflow: hidden;
}

.section:has(.section-text)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 240, 230, 0.88));
    border-radius: 20px;
    z-index: 0;
}

.section:has(.section-text) > * {
    position: relative;
    z-index: 1;
}

/* CTA секция с фоновым изображением */
.section:has(.cta) {
    position: relative;
    background-image: url('img fon/photo_6_2025-11-28_20-43-15.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    margin: 0 -16px;
    padding: 30px 16px;
    overflow: hidden;
}

.section:has(.cta)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 228, 214, 0.8));
    border-radius: 20px;
    z-index: 0;
}

.section:has(.cta) > * {
    position: relative;
    z-index: 1;
}

/* Иконки мессенджеров */
.messenger-icons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 24px 0 28px 0;
    flex-wrap: wrap;
}

.messenger-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    flex: 1;
    max-width: 200px;
}

.messenger-icon svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.messenger-whatsapp {
    background: linear-gradient(135deg, #25D366, #20BA5A);
    color: #ffffff;
}

.messenger-whatsapp:hover {
    background: linear-gradient(135deg, #20BA5A, #1DA851);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

.messenger-telegram {
    background: linear-gradient(135deg, #0088cc, #0077b5);
    color: #ffffff;
}

.messenger-telegram:hover {
    background: linear-gradient(135deg, #0077b5, #006699);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 136, 204, 0.5);
}

/* Улучшение CTA секции */
.cta {
    text-align: center;
}

.cta .section-title {
    margin-bottom: 12px;
}

.cta .section-subtitle {
    margin-bottom: 0;
}

.cta .btn-primary {
    margin-top: 0;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Калькулятор ===== */

.calc {
    background: #ffffff;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.calc-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 14px;
    margin-bottom: 14px;
}

.calc-tab {
    flex: 1;
    padding: 10px;
    border-radius: 12px;
    font-size: 14px;
    color: #64748b;
}

.calc-tab-active {
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    color: #334155;
}

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calc-form-hidden {
    display: none !important;
}

.calc-input {
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: 15px;
}

.calc-result {
    background: #f8fafc;
    border-radius: 14px;
    padding: 12px;
    font-size: 14px;
    color: #374151;
    margin-top: 14px;
}

/* ===== Работы ===== */

.gallery-item {
    background: #ffffff;
    padding: 0;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gallery-media {
    width: 100%;
    border-radius: 14px 14px 0 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 200px;
}

.gallery-media-img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-media-blue { 
    background-color: #ffd4b8;
    background-size: cover;
    background-position: center;
}
.gallery-media-purple { 
    background-color: #ffb88c;
    background-size: cover;
    background-position: center;
}
.gallery-media-green { 
    background-color: #ff9d5c;
    background-size: cover;
    background-position: center;
}

.gallery-title {
    font-size: 16px;
    margin-bottom: 6px;
    margin-top: 0;
    padding: 16px 16px 0 16px;
    position: relative;
    z-index: 1;
}

.gallery-text {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    padding: 0 16px 16px 16px;
    position: relative;
    z-index: 1;
}

/* ===== Контакты ===== */

.map-placeholder {
    width: 100%;
    height: 220px;
    background: #ffe4d6;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cd541f;
}

.contacts-label {
    font-size: 13px;
    color: #6b7280;
}

.contacts-value {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* ===== Форма ===== */

.form-input, .form-textarea {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid #d1d5db;
    background: #fff;
}

/* ===== Footer ===== */

.footer {
    padding: 16px 16px 24px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}

/* ===== Модальное окно ===== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    font-size: 18px;
    color: #111827;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    z-index: 10;
}

.modal-close:hover {
    background: #f5f5f5;
    border-color: #d1d5db;
    color: #111827;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.modal-close:active {
    background: #ececec;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    padding-right: 40px;
}

.modal-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 2px solid #e5e7eb;
    background: #fff;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #cd541f;
    box-shadow: 0 0 0 3px rgba(205, 84, 31, 0.1);
}

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

.form-file {
    padding: 10px 14px;
    cursor: pointer;
}

.form-file::-webkit-file-upload-button {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #cd541f;
    background: linear-gradient(135deg, #ffe4d6, #ffd4b8);
    color: #cd541f;
    font-weight: 500;
    cursor: pointer;
    margin-right: 12px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-file::-webkit-file-upload-button:hover {
    background: linear-gradient(135deg, #ffd4b8, #ffb88c);
}

.form-file-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.4;
}

.captcha-row {
    gap: 10px;
}

.captcha-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-image {
    width: 240px;
    height: 80px;
    max-width: calc(100% - 52px);
    object-fit: cover;
    border: 1px solid #ead8ca;
    border-radius: 10px;
}

.captcha-refresh {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid #cd541f;
    border-radius: 10px;
    background: #fff7f2;
    color: #cd541f;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.captcha-refresh:hover {
    background: #ffe4d6;
    transform: rotate(20deg);
}

.form-btn {
    width: 100%;
    margin-top: 8px;
}

.form-note {
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    margin-top: 8px;
}

.form-message {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 12px;
    animation: slideDown 0.3s ease-out;
}

.form-message-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-message-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

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

#submitBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contacts-block {
    margin-bottom: 20px;
}

/* ===== Адаптивность для планшетов и десктопов ===== */

/* Планшеты (768px и выше) */
@media (min-width: 768px) {
    .header-inner {
        max-width: 1200px;
        padding: 20px 32px;
    }

    .logo-img {
        height: 45px;
    }

    .nav {
        display: flex !important;
        position: static;
        background: transparent;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        padding: 0;
        gap: 12px;
    }

    .burger {
        display: none;
    }

    .nav-link {
        padding: 8px 16px;
        font-size: 15px;
    }

    .nav-link:hover {
        background: rgba(205, 84, 31, 0.1);
        color: #cd541f;
    }

    .page {
        max-width: 1200px;
        padding: 40px 32px 60px;
    }

    .hero {
        padding: 60px 40px;
        margin: 0 -32px 40px;
        border-radius: 24px;
    }

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

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

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

    .section + .section {
        margin-top: 48px;
    }

    .card {
        padding: 24px;
    }

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

    .gallery-item {
        margin-bottom: 0;
    }


    .calc {
        padding: 32px;
    }

    .section:has(.section-text),
    .section:has(.cta),
    .section-dark {
        margin: 0 -32px 40px;
        padding: 40px 32px;
        border-radius: 24px;
    }

    .section-calculator {
        margin-top: 96px;
        margin-bottom: 96px;
    }

    .section + .section {
        margin-top: 72px;
    }

    .messenger-icons {
        gap: 20px;
        margin: 28px 0 32px 0;
    }

    .messenger-icon {
        min-width: 160px;
        padding: 16px 28px;
        font-size: 16px;
    }

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

    .section-calculator {
        margin-top: 88px;
        margin-bottom: 88px;
    }

    .section + .section {
        margin-top: 64px;
    }

    .hero-actions {
        flex-wrap: nowrap;
    }

    .modal-content {
        max-width: 600px;
        padding: 32px;
    }
}

/* Десктопы (1024px и выше) */
@media (min-width: 1024px) {
    .header-inner {
        padding: 24px 40px;
    }

    .logo-img {
        height: 50px;
    }

    /* Горизонтальное меню для десктопа */
    .nav {
        gap: 16px;
    }

    .nav-link {
        padding: 10px 20px;
        font-size: 15px;
    }

    .nav-link-active {
        background: linear-gradient(135deg, #ffe4d6, #ffd4b8);
        color: #cd541f;
    }

    .nav-link-cta {
        padding: 10px 20px;
    }

    .nav-link-cta:hover {
        background: linear-gradient(135deg, #b8481a, #c8651c) !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(205, 84, 31, 0.4);
    }

    .hero {
        padding: 80px 60px;
    }

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

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

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

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


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

    .card-title {
        font-size: 18px;
    }

    .card-text {
        font-size: 15px;
    }

    .calc {
        padding: 40px;
    }

    .calc-tabs {
        padding: 6px;
    }

    .calc-tab {
        padding: 12px 20px;
        font-size: 15px;
    }

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

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

/* Большие экраны (1200px и выше) */
@media (min-width: 1200px) {
    .page {
        padding: 60px 40px 80px;
    }

    .hero {
        padding: 100px 80px;
    }

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

    .section:has(.section-text),
    .section:has(.cta),
    .section-dark {
        padding: 60px 50px;
        border-radius: 28px;
    }

    .section-calculator {
        margin-top: 96px;
    }

    .messenger-icons {
        gap: 24px;
        margin: 32px 0 36px 0;
    }

    .messenger-icon {
        min-width: 180px;
        padding: 18px 32px;
        font-size: 17px;
    }

    .messenger-icon svg {
        width: 30px;
        height: 30px;
    }

    .hero-actions {
        gap: 16px;
    }
}

/* ===== Статьи ===== */

.articles-list {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.article-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.article-card-media {
    aspect-ratio: 16 / 9;
    background: #ffe4d6;
    overflow: hidden;
}

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

.article-card--text {
    border-top: 4px solid #cd541f;
}

.article-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
}

.article-card-date {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 6px;
}

.article-card-title {
    font-size: 17px;
    line-height: 1.35;
    margin-bottom: 8px;
}

.article-card-text {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
    flex: 1;
}

.article-card-more {
    font-size: 14px;
    font-weight: 600;
    color: #cd541f;
}

.article {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 16px;
}

.article-back {
    display: inline-block;
    font-size: 14px;
    color: #cd541f;
    margin-bottom: 16px;
}

.article-title {
    font-size: 26px;
    line-height: 1.25;
    margin-bottom: 8px;
}

.article-date {
    display: block;
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 20px;
}

.article-figure {
    margin: 20px 0;
}

.article-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    background: #ffe4d6;
}

.article-cover {
    margin-top: 0;
}

.article-body {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
}

.article-body p,
.article-body ul {
    margin-bottom: 16px;
}

.article-body ul {
    padding-left: 22px;
}

.article-body li {
    margin-bottom: 6px;
}

.article-body h2 {
    font-size: 21px;
    line-height: 1.3;
    color: #2d2d2d;
    margin: 28px 0 12px;
}

.article-body h3 {
    font-size: 18px;
    color: #2d2d2d;
    margin: 22px 0 10px;
}

.article-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.article-gallery .article-figure {
    margin: 0;
}

.article-gallery .article-figure img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
}

@media (min-width: 768px) {
    .articles-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

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

    .article-body {
        font-size: 17px;
    }

    .article-body h2 {
        font-size: 24px;
    }

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

@media (min-width: 1024px) {
    .articles-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}
