/* ─────────────────────────────────────────────────────────────────────────
   welcome.css — лендинг lk.repost.team. Перенесён из эталонного проекта
   reference/repost.team-main:
     - resources/css/app/style.css   (база body/header/footer/wave)
     - resources/css/app/home.css    (карточки главной)
     - resources/css/app/mobile.css  (фрагмент мобилки)
   Tailwind / Vite-сборка из исходника сюда не тянутся: только то, что нужно
   именно главной странице. Картинки лежат рядом (logo.png, salmon*.svg,
   grey_wash_wall_@2X.png).
   ──────────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; }

body {
    margin: 0;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background: url('grey_wash_wall_@2X.png');
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

a {
    color: #91c224;
    text-decoration: none;
}

[x-cloak] { display: none !important; }

/* ── container helpers ─────────────────────────────────────────────────── */
.container-fluid {
    padding-right: 50px;
    padding-left: 50px;
}

.content {
    color: #1c5a9e;
    margin-bottom: 50px;
    flex: 1 0 auto;
    width: 100%;
    max-width: 75rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

/* ── header.wave ───────────────────────────────────────────────────────── */
header {
    margin-bottom: 80px;
}

header .logo img {
    width: 198px;
    display: block;
}

header.wave {
    background: #4779af;
    padding: 20px 0 10px;
    position: relative;
    z-index: 1;
}

header.wave::after {
    content: '';
    display: block;
    height: 40px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -32px;
    background: url('salmon1.svg') bottom center no-repeat;
    background-size: cover;
}

/* ── footer.wave ───────────────────────────────────────────────────────── */
footer { flex: 0 0 auto; }
footer a { color: #fff; }

footer.wave {
    background: #4779af;
    padding: 20px 0;
    padding-top: 10px;
    margin-top: 40px;
    color: #fff;
    position: relative;
}

footer.wave::before {
    content: '';
    display: block;
    height: 40px;
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    background: url('salmon2.svg') top center no-repeat;
    background-size: cover;
}

footer .phone {
    font-weight: 600;
    font-size: 18px;
}

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

footer .copyright a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) 4fr;
    gap: 1.5rem;
    align-items: center;
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
    .container-fluid { padding: 0 15px; }
    header { margin-bottom: 30px; }
    header.wave { padding-bottom: 20px; }
}

/* ─── Статичные страницы (политика / оферта / согласие на ОПД) ─────── */
.static-page {
    max-width: 64rem;
    margin: 0 auto 3rem;
    padding: 1.75rem 1rem 2rem;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 18px 40px #0000001f;
    color: #1c2638;
    line-height: 1.6;
}

.static-page h1 {
    color: #1c5a9e;
    font-size: clamp(1.5rem, 3vw + 0.5rem, 2.2rem);
    margin: 0 0 1.25rem;
    line-height: 1.2;
}

.static-page__content h2 {
    color: #1c5a9e;
    font-size: 1.4rem;
    margin: 1.5rem 0 0.6rem;
}

.static-page__content h3 {
    color: #1c5a9e;
    font-size: 1.15rem;
    margin: 1.1rem 0 0.5rem;
}

.static-page__content p { margin: 0 0 0.85rem; }

.static-page__content ul,
.static-page__content ol { padding-left: 1.4rem; margin: 0 0 0.85rem; }

.static-page__content blockquote {
    border-left: 3px solid #1c5a9e;
    padding: 0.25rem 0.75rem;
    margin: 0.75rem 0;
    color: #4a5568;
    background: #f7fafc;
    border-radius: 0 6px 6px 0;
}

.static-page__content a {
    color: #1c5a9e;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.static-page__content a:hover { text-decoration-thickness: 2px; }

@media (max-width: 480px) {
    .static-page { padding: 1.25rem 0.9rem 1.5rem; border-radius: 1rem; }
}

/* ─── Главная страница ──────────────────────────────────────────────── */

.home-hero {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.home-hero h1 {
    color: #1c5a9e;
    text-transform: uppercase;
    font-weight: 700;
    font-size: clamp(1.75rem, 4vw + 0.5rem, 3rem);
    letter-spacing: 0.5px;
    line-height: 1.15;
    margin: 0 0 0.75rem;
}

.home-hero__subtitle {
    color: #5a7fa3;
    font-size: clamp(1rem, 1vw + 0.65rem, 1.25rem);
    font-weight: 300;
    max-width: 42rem;
    margin: 0 auto;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 64rem;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .home-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .home-hero { margin-bottom: 1.75rem; }
}

.home-card {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 18px 40px #0000001f;
    padding: 1.75rem;
}

@media (max-width: 480px) {
    .home-card {
        padding: 1.25rem;
        border-radius: 1rem;
    }
}

.home-card__title {
    color: #1c5a9e;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.home-card__hint {
    color: #7a8fa6;
    font-size: 0.875rem;
    margin: 0 0 1.25rem;
}

/* ── Кнопки-плитки соц-сетей ────────────────────────────────────────── */
.home-channels {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.home-channel {
    --brand: #1c5a9e;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.625rem 0.875rem;
    border-radius: 0.875rem;
    text-decoration: none !important;
    background: color-mix(in srgb, var(--brand) 7%, #fff);
    border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
    transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
    min-width: 0;
}

.home-channel:hover {
    background: color-mix(in srgb, var(--brand) 12%, #fff);
    border-color: color-mix(in srgb, var(--brand) 42%, transparent);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 18%, transparent);
}

.home-channel:active { transform: translateY(0); }

.home-channel__icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-channel__icon svg,
.home-channel__img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.home-channel__icon--text {
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.5px;
    line-height: 1;
}

.home-channel__name {
    flex: 1;
    min-width: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    color: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-channel--tg   { --brand: #229ED9; }
.home-channel--vk   { --brand: #0077FF; }
.home-channel--max  { --brand: #7c3aed; }
.home-channel--mail { --brand: #4779af; }

/* ── Email-строка ───────────────────────────────────────────────────── */
.home-email {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.625rem 0.875rem;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
}

.home-email__icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 0.625rem;
    background: #4779af;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: filter .15s, transform .15s;
}

.home-email__icon:hover { filter: brightness(1.08); transform: translateY(-1px); }
.home-email__icon svg,
.home-email__img { width: 22px; height: 22px; object-fit: contain; display: block; }

.home-email__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    line-height: 1.2;
}

.home-email__label {
    color: #7a8fa6;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    margin-bottom: 0.1rem;
}

.home-email__address {
    color: #1c5a9e !important;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none !important;
    user-select: text;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.home-email__address:hover { text-decoration: underline !important; }

.home-email--sm {
    margin-top: 0.625rem;
    padding: 0.4rem 0.625rem;
    gap: 0.55rem;
}

.home-email--sm .home-email__icon {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    background: #cbd5e0;
    color: #475569 !important;
}

.home-email--sm .home-email__icon svg,
.home-email--sm .home-email__img { width: 18px; height: 18px; }

.home-email--sm .home-email__address {
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569 !important;
}

/* ── Связь с руководством ───────────────────────────────────────────── */
.home-mgmt {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px dashed #e2e8f0;
}

.home-mgmt__label {
    color: #7a8fa6;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 0.5rem;
}

.home-mgmt__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.home-mgmt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.625rem;
    border: 1px solid #e2e8f0;
    background: #f7fafc;
    color: #64748b !important;
    text-decoration: none !important;
    transition: background .15s, border-color .15s, color .15s, transform .15s;
}

.home-mgmt-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    color: #334155 !important;
    transform: translateY(-1px);
}

.home-mgmt-btn svg,
.home-mgmt-btn__img { width: 22px; height: 22px; object-fit: contain; display: block; }

.home-mgmt-btn__text {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    line-height: 1;
}

/* ── Реквизиты ──────────────────────────────────────────────────────── */
.home-req {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.home-req__row {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) minmax(0, 2.4fr);
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.home-req__row:last-child { border-bottom: 0; }

@media (max-width: 420px) {
    .home-req__row {
        grid-template-columns: 1fr;
        gap: 0.15rem;
        padding: 0.5rem 0;
    }
}

.home-req__label {
    color: #7a8fa6;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    margin: 0;
}

.home-req__value {
    margin: 0;
    min-width: 0;
}

.home-req__copy {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.45rem;
    margin: -0.2rem -0.45rem;
    border-radius: 0.4rem;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: #1c5a9e;
    font: inherit;
    text-align: left;
    max-width: 100%;
    transition: background .15s, color .15s;
}

.home-req__copy:hover { background: #edf4fb; }
.home-req__copy.is-copied { color: #4caf50; background: #e8f5e9; }

.home-req__text {
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.35;
    word-break: normal;
    overflow-wrap: break-word;
}

.home-req__icon {
    flex: 0 0 16px;
    display: inline-flex;
    opacity: 0.55;
}

.home-req__copy:hover .home-req__icon,
.home-req__copy.is-copied .home-req__icon { opacity: 1; }
