/*
 * ЮГИД — общие блоки всех страниц: консультация и подвал. Токены — в tokens.css.
 * Подключается из шапки (widget/header.blade.php).
 */

/* ---------- Консультация ---------- */
.yg-consult { padding: 40px 0 88px; font-family: var(--yg-font-body); }
.yg-consult *, .yg-consult *::before, .yg-consult *::after { box-sizing: border-box; }
.yg-consult__card {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center;
    padding: 56px; border-radius: var(--yg-radius-lg); color: #fff;
    background: linear-gradient(135deg, var(--yg-sea) 0%, var(--yg-ink) 70%);
}
.yg-consult__card::before, .yg-consult__card::after {
    content: ''; position: absolute; z-index: -1; border-radius: 50%; filter: blur(10px);
}
.yg-consult__card::before { width: 420px; height: 420px; right: -120px; top: -180px; background: radial-gradient(circle, rgba(255, 193, 35, .45), transparent 65%); }
.yg-consult__card::after { width: 360px; height: 360px; left: -140px; bottom: -200px; background: radial-gradient(circle, rgba(56, 189, 248, .45), transparent 65%); }
.yg-consult__eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
    font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--yg-sun);
}
.yg-consult__eyebrow::before { content: ''; width: 24px; height: 2px; border-radius: 2px; background: var(--yg-sun); }
.yg-consult__title {
    margin: 0; font-family: var(--yg-font-head); font-weight: 600; font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.1; letter-spacing: -.01em; color: #fff; text-wrap: balance;
}
.yg-consult__title em { font-style: normal; color: var(--yg-sun); }
.yg-consult__lead { margin: 16px 0 28px; max-width: 480px; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .82); }
.yg-consult__call { display: inline-flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.yg-consult__call:hover { color: var(--yg-sun); }
.yg-consult__call-icon {
    width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.yg-consult__call-icon svg { width: 20px; height: 20px; }
.yg-consult__call-hint { display: block; font-size: 13px; color: rgba(255, 255, 255, .7); }
.yg-consult__call b { font-size: 18px; font-weight: 800; }

.yg-consult__form {
    display: grid; gap: 16px; padding: 28px; border-radius: 24px;
    background: #fff; color: var(--yg-ink); box-shadow: var(--yg-shadow-lg);
}
.yg-consult__field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--yg-ink-soft); }
.yg-consult__field input {
    width: 100%; min-height: 56px; padding: 0 18px; border-radius: 16px;
    border: 1px solid var(--yg-border); background: var(--yg-sky-soft);
    font: 600 16px/1 var(--yg-font-body); color: var(--yg-ink);
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.yg-consult__field input::placeholder { color: #94A3B8; font-weight: 500; }
.yg-consult__field input:focus { outline: none; border-color: var(--yg-sea); background: #fff; box-shadow: 0 0 0 4px rgba(3, 105, 161, .15); }
.yg-consult__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 56px; margin-top: 4px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--yg-sun); color: var(--yg-ink); font: 800 16px/1 var(--yg-font-body);
    box-shadow: 0 8px 20px rgba(242, 169, 0, .35);
    transition: background-color .2s, transform .2s var(--yg-ease);
}
.yg-consult__btn:hover { background: var(--yg-sun-dark); transform: translateY(-1px); }
.yg-consult__btn:active { transform: scale(.98); }
.yg-consult__btn svg { width: 18px; height: 18px; }
.yg-consult a:focus-visible, .yg-consult button:focus-visible { outline: 3px solid var(--yg-sun); outline-offset: 2px; }

/* ---------- Подвал ---------- */
.yg-f {
    position: relative; overflow: hidden; isolation: isolate;
    padding: 72px 0 0; background: var(--yg-ink); color: rgba(255, 255, 255, .72);
    font-family: var(--yg-font-body); font-size: 15px; line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
.yg-f::before {
    content: ''; position: absolute; z-index: -1; width: 640px; height: 640px; right: -220px; top: -320px; border-radius: 50%;
    background: radial-gradient(circle, rgba(3, 105, 161, .55), transparent 65%);
}
.yg-f *, .yg-f *::before, .yg-f *::after { box-sizing: border-box; }
.yg-f ul { list-style: none; margin: 0; padding: 0; }
.yg-f a { color: rgba(255, 255, 255, .72); text-decoration: none; transition: color .2s; }
.yg-f a:hover { color: #fff; }
.yg-f a:focus-visible { outline: 3px solid var(--yg-sun); outline-offset: 2px; border-radius: 4px; }
.yg-f__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 56px; }
.yg-f__brand .yg-h-logo { color: #fff; }
.yg-f__brand .yg-h-logo__tag { color: rgba(255, 255, 255, .6); }
.yg-f__about { margin: 20px 0 24px; max-width: 360px; }
.yg-f__contacts { display: grid; gap: 10px; }
.yg-f__contacts a { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; color: #fff; font-weight: 700; }
.yg-f__contacts svg { width: 18px; height: 18px; color: var(--yg-sun); }
.yg-f__title { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.yg-f__list { display: grid; gap: 4px; }
.yg-f__list a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; }
.yg-f__list a svg { width: 16px; height: 16px; color: var(--yg-sun); }
.yg-f__org {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; min-height: 40px; padding: 0 16px; border-radius: 999px;
    background: rgba(255, 193, 35, .14); box-shadow: inset 0 0 0 1px rgba(255, 193, 35, .45); color: #fff !important; font-weight: 700;
}
.yg-f__org:hover { background: var(--yg-sun); color: var(--yg-ink) !important; }
.yg-f__org svg { width: 16px; height: 16px; }
.yg-f__bottom {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
    padding: 24px 0 32px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: rgba(255, 255, 255, .55);
}

/* ---------- Адаптив ---------- */
@media (max-width: 991.98px) {
    .yg-consult__card { grid-template-columns: 1fr; gap: 32px; padding: 40px 32px; }
    .yg-f__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
    .yg-f__brand { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; align-items: start; }
    .yg-f__brand .yg-h-logo { grid-column: 1 / -1; }
    .yg-f__about { margin-bottom: 0; }
    .yg-f__contacts { align-self: end; }
}
@media (max-width: 575.98px) {
    .yg-consult { padding: 24px 0 56px; }
    .yg-consult__card { padding: 32px 20px 20px; border-radius: 24px; }
    .yg-consult__form { padding: 20px; }
}
/* Телефон: разделы друг под другом, ссылки — «таблетками» в несколько строк вместо длинных колонок */
@media (max-width: 767.98px) {
    .yg-f { padding-top: 48px; font-size: 14px; }
    .yg-f__grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
    .yg-f__brand { display: block; }
    .yg-f__about { margin: 16px 0 18px; }
    .yg-f__contacts { display: flex; flex-wrap: wrap; gap: 8px 20px; }
    .yg-f__contacts a { min-height: 40px; }
    .yg-f__title { margin-bottom: 12px; font-size: 12px; color: rgba(255, 255, 255, .55); }
    .yg-f__list { display: flex; flex-wrap: wrap; gap: 8px; }
    .yg-f__list a { min-height: 40px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .85); white-space: nowrap; }
    .yg-f__list a:hover { background: rgba(255, 255, 255, .12); }
    .yg-f__list a svg { width: 14px; height: 14px; margin-left: -2px; }
    .yg-f__list a b { color: var(--yg-sun); }
    .yg-f__org { white-space: nowrap; }
    .yg-f__bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .yg-consult *, .yg-f * { transition: none !important; }
}
/* Заявка: ответ, ошибка, подсказка, ловушка для ботов */
.yg-consult__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.yg-consult__err { margin: 0; font-size: 14px; font-weight: 700; color: var(--yg-coral); }
.yg-consult__note { margin: 0; font-size: 13px; color: var(--yg-muted); text-align: center; }
.yg-consult__done { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 16px; border-radius: 16px; background: var(--yg-sky-soft); color: var(--yg-ink); font-size: 16px; font-weight: 700; line-height: 1.45; }
.yg-consult__done svg { flex: none; width: 22px; height: 22px; color: var(--yg-sea); }
.yg-consult__field input[aria-invalid="true"] { border-color: var(--yg-coral); }
.yg-consult__btn:disabled { opacity: .7; cursor: progress; transform: none; }
