/* Good Auto — дополнения к дизайну: мессенджеры, статусы машин, заявки, онлайн-чат. */
.messenger-links { display: flex; align-items: center; gap: 8px; }
.messenger { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; transition: transform .2s ease, box-shadow .2s ease; flex: 0 0 auto; }
.messenger svg { width: 20px; height: 20px; }
.messenger:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.messenger-telegram { background: #2aa3df; }
.messenger-whatsapp { background: #25d366; }
.messenger-max { background: linear-gradient(135deg, #5b5ff7, #9b5cf6); }
.messenger-vk { background: #0077ff; }
.header-messengers .messenger { width: 34px; height: 34px; }
.header-messengers .messenger svg { width: 18px; height: 18px; }
.mobile-messengers { display: none; }
.contact-messengers { margin-top: 22px; }
.contact-messengers .messenger { width: 46px; height: 46px; }
.contact-messengers .messenger svg { width: 23px; height: 23px; }
.contact-actions .contact-phone-second b { font-size: 22px; }
.contact-mail { display: inline-flex; align-items: center; gap: 8px; color: inherit; font-weight: 700; font-size: 14px; }
.contact-mail svg { width: 18px; height: 18px; }
button.contact-button { border: 0; cursor: pointer; font: inherit; width: 100%; }

.car-image { position: relative; }
.car-status { position: absolute; left: 14px; bottom: 14px; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; background: rgba(255,255,255,.92); color: #151915; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.car-status::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #9aa39a; vertical-align: 1px; }
.car-status.is-free::before { background: #5fbf1f; }
.car-status.is-busy::before { background: #f59e0b; }
.car-status.is-off::before { background: #ef4444; }
.product-status .car-status { position: static; display: inline-block; margin: 0 0 14px; background: var(--surface-2); color: var(--ink); box-shadow: none; }
.car-title h3 a { color: inherit; }
.car-title s, .product-price s { color: var(--muted); font-weight: 600; margin-right: 4px; }
.car-noimage { aspect-ratio: 4/3; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-weight: 800; letter-spacing: .1em; }
.car-card .car-image img { aspect-ratio: 4/3; object-fit: cover; width: 100%; height: auto; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-image-wrap img { object-fit: cover; }
.fleet-more { display: flex; justify-content: center; margin-top: 34px; }
.catalog-dates { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 0 0 28px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.catalog-dates label { display: grid; gap: 6px; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.catalog-dates input { min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); }
.catalog-dates .secondary-button { cursor: pointer; }
.car-card.hidden { display: none; }

.product-actions { display: grid; gap: 10px; }
.product-actions .secondary-button { justify-content: center; cursor: pointer; }
.product-messengers { margin-top: 4px; }
.product-main-image img { aspect-ratio: 4/3; object-fit: cover; width: 100%; height: auto; }
.product-thumb img { aspect-ratio: 4/3; object-fit: cover; }
.panel-note { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.panel-note a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-strong); }
.feature-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.feature-list li { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 700; }
.product-description { margin-top: 18px; }
.product-description .legacy-content { padding: 0; }

.page-body { min-width: 0; }
.content-aside .aside-card b { display: block; font-size: 22px; letter-spacing: -.03em; margin-bottom: 8px; }
.content-aside .aside-card p { margin: 0 0 18px; }
.content-aside .aside-card .primary-button { width: 100%; justify-content: space-between; }
.content-aside .aside-card .secondary-button { width: 100%; justify-content: center; margin-top: 12px; cursor: pointer; }
.aside-messengers { margin: 16px 0 4px; }
.aside-links { position: relative; z-index: 1; display: grid; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(0,0,0,.08); font-size: 13px; font-weight: 700; }
[data-theme="dark"] .aside-links { border-top-color: rgba(255,255,255,.08); }
.seo-accordion { display: grid; gap: 10px; }
.page-body .seo-card { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.page-body .seo-card summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 800; font-size: 17px; }
.page-body .seo-card summary::-webkit-details-marker { display: none; }
.page-body .seo-card summary i { font-style: normal; font-size: 22px; transition: transform .2s; }
.page-body .seo-card[open] summary i { transform: rotate(45deg); }
.page-body .seo-card__content { padding: 0 22px 18px; }
.seo-intro { margin-bottom: 18px; }
.news-card { display: block; color: inherit; }
.news-card .read-more { display: inline-block; margin: 14px 12px 0; font-size: 12px; font-weight: 800; }

/* заявка */
.callback-form textarea { width: 100%; min-height: 64px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 13px; outline: none; color: var(--ink); background: var(--bg); resize: vertical; font: inherit; }
.callback-form textarea:focus { border-color: var(--accent-strong); }
.lead-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lead-dates[hidden], .lead-car[hidden] { display: none; }
.lead-car { padding: 12px 14px; border-radius: 13px; background: var(--surface-2); font-weight: 800; font-size: 14px; }
.lead-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.callback-form small a { text-decoration: underline; }
.callback-status { min-height: 18px; font-size: 13px; font-weight: 700; }
.callback-status.is-ok { color: #4d8a00; }
.callback-status.is-err { color: #dc2626; }
.callback-dialog { max-height: calc(100vh - 32px); overflow-y: auto; }

/* плавающие кнопки */
.floating-contacts { position: fixed; right: 20px; bottom: 20px; z-index: 18; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.floating-contacts .floating-call { position: static; }
.floating-call svg, .floating-chat svg { width: 18px; height: 18px; }
.floating-call { cursor: pointer; }
.floating-messenger { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.floating-messenger svg { width: 23px; height: 23px; }
.floating-chat { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 30px; cursor: pointer; color: #fff; background: #151915; box-shadow: 0 15px 40px rgba(0,0,0,.25); font-weight: 800; font-size: 12px; }
[data-theme="dark"] .floating-chat { background: #2a302a; }

/* онлайн-чат */
.ga-chat { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 40px)); display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 90px rgba(0,0,0,.3); border: 1px solid var(--line); }
.ga-chat[hidden] { display: none; }
.ga-chat-head { padding: 14px 16px 0; background: #151915; color: #fff; }
.ga-chat-top { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
.ga-chat-badge { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); display: grid; place-items: center; overflow: hidden; }
.ga-chat-badge img { width: 40px; height: auto; }
.ga-chat-title { flex: 1; min-width: 0; }
.ga-chat-title b { display: block; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; }
.ga-chat-title small { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.75); font-size: 12px; font-weight: 600; }
.ga-chat-title small::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ddc5f; box-shadow: 0 0 0 3px rgba(61,220,95,.2); }
.ga-chat-close { flex: 0 0 34px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.ga-chat-close:hover { background: rgba(255,255,255,.18); }
.ga-chat-channels { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0 12px; position: relative; }
.ga-chat-channels::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.ga-chat-channels > span { font-size: 12px; color: rgba(255,255,255,.7); font-weight: 600; }
.ga-chat-icons { display: flex; gap: 8px; }
.ga-chat-ch { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; cursor: pointer; transition: transform .15s; }
.ga-chat-ch:hover { transform: translateY(-2px); }
.ga-chat-ch svg { width: 18px; height: 18px; }
.ga-chat-call { background: var(--accent); color: #111; }
.ga-chat-topics { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 12px; background: var(--bg); }
.ga-chat-topics[hidden] { display: none; }
.ga-chat-topics button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ga-chat-topics button:hover { border-color: var(--accent); }
.ga-chat-cta { align-self: flex-start; margin-top: 4px; padding: 10px 16px; border: 0; border-radius: 12px; background: var(--accent); color: #111; font-weight: 800; cursor: pointer; }
.ga-chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 18; width: 58px; height: 58px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--accent); color: #111; cursor: pointer; box-shadow: 0 14px 36px rgba(0,0,0,.28); }
.ga-chat-fab svg { width: 26px; height: 26px; }
.ga-chat-fab::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent); opacity: .5; animation: ga-pulse 2.4s infinite; }
@keyframes ga-pulse { 0% { transform: scale(.95); opacity: .6; } 70% { transform: scale(1.25); opacity: 0; } 100% { opacity: 0; } }
body.chat-open .ga-chat-fab { display: none; }
.ga-chat-list { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.ga-chat-msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.ga-chat-msg.in { align-self: flex-end; background: var(--accent); color: #111; border-bottom-right-radius: 4px; }
.ga-chat-msg.out { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ga-chat-msg small { display: block; margin-top: 3px; font-size: 10px; opacity: .6; }
.ga-chat-identify { display: grid; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.ga-chat-identify[hidden] { display: none; }
.ga-chat-identify p { margin: 0; font-size: 12px; color: var(--muted); }
.ga-chat-identify .row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; }
.ga-chat input, .ga-chat textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 14px; }
.ga-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.ga-chat-form textarea { resize: none; height: 44px; }
.ga-chat button.send, .ga-chat-identify button { border: 0; border-radius: 12px; padding: 0 14px; background: var(--accent); color: #111; font-weight: 800; cursor: pointer; }
.ga-chat-error { padding: 8px 14px; color: #dc2626; font-size: 12px; font-weight: 700; }
.ga-chat-error:empty { display: none; }

@media (max-width: 1080px) {
  .header-messengers { display: none; }
  .main-nav .mobile-messengers { display: flex; margin-top: 18px; }
  .main-nav .mobile-messengers .messenger::after { display: none; }
}
@media (max-width: 820px) {
  .content-aside { position: static; }
  .lead-dates { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .floating-contacts { right: 12px; bottom: 12px; gap: 8px; }
  .floating-messenger { width: 42px; height: 42px; }
  .floating-chat b { display: none; }
  .floating-chat { padding: 11px; }
  .ga-chat-fab { right: 14px; bottom: 14px; width: 54px; height: 54px; }
  .ga-chat { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; }
  .ga-chat-identify .row { grid-template-columns: 1fr; }
  .hero-actions .secondary-button, .hero-actions .primary-button { width: 100%; justify-content: center; }
}
.cookie-note { position: fixed; left: 16px; bottom: 16px; z-index: 30; max-width: 420px; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: #151915; color: #e8ede5; box-shadow: 0 20px 50px rgba(0,0,0,.3); font-size: 12px; line-height: 1.5; }
.cookie-note[hidden] { display: none; }
.cookie-note p { margin: 0; }
.cookie-note a { color: #c4f244; text-decoration: underline; }
.cookie-note button { flex: 0 0 auto; border: 0; border-radius: 10px; padding: 9px 14px; background: #c4f244; color: #111; font-weight: 800; cursor: pointer; }
@media (max-width: 560px) { .cookie-note { right: 70px; left: 10px; bottom: 10px; } }
