/**
 * Main Styles - Coal Theme
 */

body.admin-bar .site-header {
    top: 32px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 92px;
    background: rgba(20, 20, 20, 0.84);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    min-height: 92px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.site-branding {
    position: relative;
    z-index: 2;
}

.site-branding .site-title {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-text);
}

.main-navigation {
    justify-self: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    position: relative;
    color: rgba(255, 255, 255, 0.84);
    font-size: 16px;
    font-weight: 600;
    padding: 6px 0;
}

.main-navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.main-navigation a:hover,
.main-navigation a:focus-visible {
    color: var(--color-text);
}

.main-navigation a:hover::after,
.main-navigation a:focus-visible::after {
    transform: scaleX(1);
}

.header-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text);
    font-size: clamp(24px, 2vw, 28px);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.header-phone svg,
.header-telegram svg {
    color: var(--color-accent);
}

.header-telegram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
    width: 22px;
    height: 2px;
    background: var(--color-text);
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 110px 0 96px;
    min-height: min(900px, calc(100vh - 92px));
    background:
        linear-gradient(115deg, rgba(12, 12, 12, 0.88) 0%, rgba(12, 12, 12, 0.72) 45%, rgba(12, 12, 12, 0.9) 100%),
        radial-gradient(circle at 78% 18%, rgba(245, 158, 11, 0.18), transparent 28%),
        linear-gradient(180deg, #2b2b2b 0%, #1f1f1f 100%);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: 0.12;
    pointer-events: none;
}

.hero-section::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -160px;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.14) 0%, rgba(245, 158, 11, 0) 68%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 420px);
    gap: 48px;
    align-items: center;
}

.hero-content {
    max-width: 700px;
}

.hero-title {
    max-width: 10ch;
    margin-bottom: 24px;
}

.hero-subtitle {
    max-width: 680px;
    margin-bottom: 28px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.86);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}

.hero-feature {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text);
    font-size: 16px;
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-form-wrapper {
    position: relative;
}

.lead-form-container {
    width: 100%;
}

.hero-form-wrapper .lead-form-container {
    padding: 34px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 243, 238, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.hero-form-wrapper .lead-form-container::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(245, 158, 11, 0.36), rgba(255, 255, 255, 0));
    z-index: -1;
    opacity: 0.75;
}

.lead-form-title {
    margin-bottom: 8px;
    color: var(--color-text-dark);
    font-size: 32px;
    text-align: left;
}

.lead-form-subtitle {
    margin-bottom: 24px;
    color: rgba(27, 27, 27, 0.72);
    font-size: 17px;
    text-align: left;
}

.lead-form,
.lead-form-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lead-form-input {
    min-height: 58px;
}

.lead-form-submit {
    width: 100%;
}

.section-title {
    max-width: 14ch;
    margin-right: auto;
    margin-bottom: 16px;
    margin-left: auto;
}

.coal-types-section,
.advantages-section,
.delivery-section {
    background: var(--color-background-alt);
}

.coal-types-grid,
.advantages-grid,
.delivery-grid {
    margin-top: 34px;
}

.coal-types-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.coal-type-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 100%;
    padding: 30px;
    border: 1px solid rgba(27, 27, 27, 0.08);
    border-radius: 24px;
    background: linear-gradient(180deg, #fffaf4 0%, #ffffff 100%);
    box-shadow: 0 16px 40px rgba(31, 31, 31, 0.06);
    text-align: left;
}

.coal-type-card::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 18px;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.16), rgba(245, 158, 11, 0));
}

.coal-type-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.34);
    box-shadow: 0 24px 48px rgba(31, 31, 31, 0.12);
}

.coal-type-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    margin-bottom: 22px;
    border-radius: 20px;
    background: #2a2a2a;
    color: var(--color-text);
}

.coal-type-title {
    margin-bottom: 6px;
    color: var(--color-text-dark);
    font-size: 30px;
}

.coal-type-desc {
    margin-bottom: 8px;
    color: rgba(27, 27, 27, 0.68);
    font-size: 17px;
}

.coal-type-usage {
    margin-bottom: 18px;
    color: var(--color-text-dark);
}

.coal-type-available {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: rgba(132, 204, 22, 0.12);
    color: var(--color-available);
    font-size: 15px;
    font-weight: 800;
}

.coal-type-cta {
    margin-top: auto;
    width: 100%;
}

.lead-capture-section {
    background:
        linear-gradient(180deg, rgba(31, 31, 31, 0.98), rgba(22, 22, 22, 0.98)),
        linear-gradient(90deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0));
}

.lead-capture-wrapper {
    max-width: 1040px;
    padding: 42px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lead-capture-section .section-title {
    max-width: 16ch;
}

.section-subtitle {
    max-width: 42rem;
    margin-right: auto;
    margin-bottom: 28px;
    margin-left: auto;
    color: rgba(255, 255, 255, 0.78);
    font-size: 20px;
}

.lead-form-centered {
    max-width: none;
}

.lead-capture-section .lead-form {
    gap: 16px;
}

.lead-capture-section .lead-form-row {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr auto;
    align-items: stretch;
}

.lead-capture-section .lead-form-input {
    min-width: 0;
}

.lead-capture-section .lead-form-submit {
    width: auto;
    min-width: 220px;
}

.lead-capture-section .lead-form-notice {
    color: rgba(255, 255, 255, 0.55);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.advantage-card {
    min-height: 220px;
    padding: 28px;
    border: 1px solid rgba(27, 27, 27, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 36px rgba(31, 31, 31, 0.05);
    text-align: left;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 40px rgba(31, 31, 31, 0.09);
}

.advantage-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: rgba(245, 158, 11, 0.12);
    color: var(--color-accent);
}

.advantage-title {
    margin-bottom: 0;
    font-size: 24px;
}

.how-to-order-section {
    background: #242424;
}

.how-to-order-section .section-title,
.how-to-order-section .step-title {
    color: var(--color-text);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
    margin-top: 34px;
}

.step-item {
    position: relative;
    padding: 26px 18px 0;
    text-align: center;
}

.step-number {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.2);
}

.step-title {
    font-size: 20px;
    line-height: 1.45;
}

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 55px;
    color: rgba(245, 158, 11, 0.8);
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.delivery-region {
    min-height: 150px;
    padding: 24px;
    border: 1px solid rgba(27, 27, 27, 0.08);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 240, 0.95));
    box-shadow: 0 16px 34px rgba(31, 31, 31, 0.05);
}

.delivery-region:hover {
    transform: translateY(-4px);
}

.delivery-region svg {
    width: 38px;
    height: 38px;
}

.delivery-region span {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.delivery-note {
    margin-top: 22px;
    color: rgba(27, 27, 27, 0.64);
}

.trust-section {
    position: relative;
    background: linear-gradient(180deg, #1f1f1f 0%, #1a1a1a 100%);
}

.trust-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 34px;
    margin-top: 34px;
}

.trust-photos {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.trust-photo {
    grid-column: span 2;
    min-height: 190px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
        linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(255, 255, 255, 0));
}

.trust-photo:nth-child(1),
.trust-photo:nth-child(2) {
    grid-column: span 3;
    min-height: 240px;
}

.trust-contacts {
    align-self: start;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.04);
}

.trust-contact {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-contact:last-child {
    border-bottom: 0;
}

.trust-reviews {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.review-card {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
}

.review-text {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.88);
}

.site-footer {
    background: #181818;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-contacts {
    padding: 52px 0 32px;
}

.footer-contacts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 28px;
}

.footer-contact-item {
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-contact-item h4 {
    margin-bottom: 10px;
    color: rgba(245, 158, 11, 0.95);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-phone {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.footer-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.site-info {
    padding: 18px 0 28px;
}

@media (max-width: 1100px) {
    .header-inner {
        grid-template-columns: auto 1fr;
        gap: 18px;
    }

    .main-navigation {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-navigation.toggled {
        display: block;
        position: absolute;
        top: 100%;
        left: 16px;
        right: 16px;
        padding: 18px;
        border-radius: 24px;
        background: #242424;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
    }

    .main-navigation.toggled ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .hero-grid,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .lead-capture-section .lead-form-row,
    .footer-contacts-grid,
    .delivery-grid,
    .advantages-grid,
    .coal-types-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .step-connector {
        display: none;
    }
}

@media (max-width: 768px) {
    body.admin-bar .site-header {
        top: 46px;
    }

    .site-header {
        min-height: 84px;
    }

    .header-inner {
        min-height: 84px;
        grid-template-columns: 1fr auto;
    }

    .header-info {
        display: none;
    }

    .hero-section {
        padding: 82px 0 54px;
        min-height: auto;
    }

    .hero-title {
        max-width: none;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn,
    .lead-capture-section .lead-form-submit,
    .footer-cta .btn {
        width: 100%;
        min-width: 0;
    }

    .hero-form-wrapper .lead-form-container,
    .lead-capture-wrapper,
    .trust-contacts {
        padding: 24px;
    }

    .coal-types-grid,
    .advantages-grid,
    .delivery-grid,
    .footer-contacts-grid,
    .trust-reviews {
        grid-template-columns: 1fr;
    }

    .lead-capture-section .lead-form-row {
        grid-template-columns: 1fr;
    }

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

    .step-item {
        padding-top: 0;
    }

    .trust-photos {
        grid-template-columns: 1fr;
    }

    .trust-photo,
    .trust-photo:nth-child(1),
    .trust-photo:nth-child(2) {
        grid-column: auto;
        min-height: 190px;
    }

    .footer-cta {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .site-branding .site-title {
        font-size: 20px;
    }

    .hero-feature {
        width: 100%;
        justify-content: flex-start;
    }

    .coal-type-card,
    .advantage-card,
    .delivery-region,
    .review-card,
    .footer-contact-item {
        padding: 22px;
    }

    .delivery-region span,
    .advantage-title {
        font-size: 22px;
    }
}
