:root {
  --ink: #141414;
  --muted: #686868;
  --paper: #f7f6f2;
  --soft: #efeee9;
  --white: #ffffff;
  --yellow: #f4c83e;
  --line: rgba(20, 20, 20, .12);
  --radius: 22px;
  --shell: 1180px;
  --header-height: 92px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.5; }
main { flex: 1 0 auto; padding-top: var(--header-height); }
.site-footer { flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.shell { width: min(calc(100% - 48px), var(--shell)); margin: 0 auto; }
.narrow { width: min(calc(100% - 48px), 760px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.site-header { position: fixed; z-index: 50; inset: 0 0 auto; width: 100%; border-bottom: 1px solid var(--line); background: #fff; color: var(--ink); }
.header-inner { display: flex; min-height: 92px; align-items: center; gap: 28px; }
.brand-logo { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark { width: 52px; height: 52px; object-fit: contain; }
.brand-name { color: var(--ink); font-size: 28px; font-weight: 800; letter-spacing: -.035em; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.site-nav a { color: rgba(20,20,20,.78); font-size: 17px; font-weight: 400; line-height: 1.2; transition: color .2s ease; }
.site-nav a:hover, .site-nav a.is-active { color: #bf8d00; }
.header-actions { display: flex; align-items: center; }
.language-switch { color: rgba(20,20,20,.72); font-size: 16px; font-weight: 700; letter-spacing: 0; line-height: 1.2; transition: color .2s ease; }
.language-switch:hover { color: #bf8d00; }
.menu-toggle { display: none; }

.hero { position: relative; min-height: 720px; overflow: hidden; background: var(--ink); color: #fff; }
.hero-picture, .hero-picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-picture img { object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,8,9,.88) 0%, rgba(7,8,9,.67) 36%, rgba(7,8,9,.18) 74%, rgba(7,8,9,.08) 100%); }
.hero-content { position: relative; z-index: 1; padding-top: 150px; }
.eyebrow { margin: 0 0 12px; color: #bf8d00; font-size: 12px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }
.hero h1 { max-width: 610px; margin: 0; font-size: clamp(44px, 5.4vw, 76px); font-weight: 800; line-height: .96; letter-spacing: -.03em; }
.hero-price { margin: 28px 0 0; color: #fff; font-size: clamp(23px, 2.3vw, 31px); font-weight: 400; letter-spacing: -.04em; }
.hero-price-accent { color: var(--yellow); }
.hero-text { max-width: 470px; margin: 12px 0 0; color: rgba(255,255,255,.84); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 9px; border-radius: 12px; padding: 0 19px; font-size: 15px; font-weight: 400; transition: transform .2s ease, background .2s ease, border .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-accent { background: var(--yellow); color: var(--ink); }
.button-accent:hover { background: #ffd154; }
.button-dark { border: 1px solid var(--ink); background: transparent; color: var(--ink); }
.button-icon { width: 19px; height: 19px; flex: 0 0 19px; }

.availability-section, .steps-section, .benefits-section, .faq-section, .news-preview, .content-section, .article-body { padding: 104px 0; }
.availability-section { background: #fff; }
.section-heading { max-width: 680px; margin-bottom: 34px; }
.section-heading h2, .page-hero h1 { margin: 0; font-size: clamp(32px, 3.5vw, 44px); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.section-heading p:not(.eyebrow), .page-hero p { margin: 15px 0 0; color: var(--muted); font-size: 17px; }
.availability-heading { display: flex; margin-bottom: 18px; justify-content: space-between; align-items: center; gap: 24px; }
.availability-heading h2 { margin: 0; font-size: clamp(32px, 3.5vw, 44px); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.availability-heading--tabs-only { justify-content: flex-end; }
.page-hero + .availability-section { padding-top: 32px; }
.city-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.city-tab { border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); padding: 10px 16px; cursor: pointer; font-size: 15px; font-weight: 400; }
.city-tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.availability-panel { display: none; }
.availability-panel.is-active { display: block; }
.availability-count { margin-bottom: 16px; font-size: 16px; font-weight: 400; }
.vehicle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.vehicle-card { position: relative; display: flex; min-height: 250px; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 22px; overflow: hidden; }
.vehicle-status { width: 9px; height: 9px; border-radius: 50%; background: #4c9e5e; box-shadow: 0 0 0 5px rgba(76,158,94,.14); }
.vehicle-status .sr-only { color: transparent; }
.vehicle-copy { position: relative; z-index: 1; }
.vehicle-card--has-image .vehicle-copy { max-width: 54%; }
.vehicle-card h3 { margin: 0; font-size: 23px; font-weight: 400; line-height: 1.05; letter-spacing: -.015em; }
.vehicle-title > span { display: block; }
.vehicle-brand { font-weight: 400; }
.vehicle-model { margin-top: 2px; font-weight: 400; }
.vehicle-year { margin: 7px 0 0; color: var(--muted); font-size: 15px; font-weight: 400; line-height: 1.25; }
.plate { margin: 3px 0 0; color: var(--muted); font-weight: 400; }
.vehicle-image { position: absolute; top: 18px; right: 12px; width: 51%; height: 118px; object-fit: contain; object-position: right top; pointer-events: none; }
.vehicle-book { position: relative; z-index: 1; width: 100%; }
.availability-empty { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; min-height: 166px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 28px; }
.empty-mark { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 23px; font-weight: 400; }
.availability-empty h3 { margin: 0; font-size: 23px; font-weight: 400; letter-spacing: -.015em; }
.availability-error .empty-mark { background: var(--ink); color: #fff; }
.availability-empty p { margin: 5px 0 0; color: var(--muted); }
.availability-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 28px; border-radius: var(--radius); background: var(--ink); color: #fff; padding: 30px 32px; }
.availability-cta h3 { margin: 0; font-size: clamp(24px, 2.5vw, 32px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.availability-cta p { max-width: 610px; margin: 8px 0 0; color: rgba(255,255,255,.74); }
.availability-cta .button { flex: 0 0 auto; }

.steps-section { background: var(--paper); }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step-card { border-top: 1px solid var(--ink); padding-top: 16px; }
.step-number { color: #bf8d00; font-size: 18px; font-weight: 400; }
.step-card h3 { margin: 46px 0 9px; font-size: 22px; font-weight: 400; letter-spacing: -.015em; }
.step-card p, .benefit-card p, .news-card p, .content-card p { margin: 0; color: var(--muted); }

.benefits-section { background: var(--soft); color: var(--ink); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.benefit-card { min-height: 205px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 22px; }
.benefit-line { width: 42px; height: 5px; margin-bottom: 54px; background: var(--yellow); }
.benefit-card h3 { margin: 0 0 9px; font-size: 22px; font-weight: 400; line-height: 1.05; letter-spacing: -.015em; }

.faq-section { padding-bottom: 56px; background: #fff; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; display: block; padding: 23px 48px 23px 0; cursor: pointer; font-size: clamp(20px, 2.2vw, 26px); font-weight: 400; line-height: 1.15; letter-spacing: -.015em; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { position: absolute; top: 50%; right: 6px; width: 17px; height: 17px; transform: translateY(-50%); background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat; content: ""; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { max-width: 760px; margin: -3px 0 24px; color: var(--muted); font-size: 17px; }

.news-preview { padding-top: 56px; background: #fff; }
.inline-heading { display: flex; max-width: none; align-items: flex-end; justify-content: space-between; gap: 24px; }
.text-link { color: var(--ink); font-size: 14px; font-weight: 400; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: 14px; }
.news-grid-full { grid-template-columns: repeat(3, 1fr); }
.news-card { display: flex; min-height: 260px; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.news-date { color: var(--muted); font-size: 13px; font-weight: 400; }
.news-card h3, .news-card h2 { margin: 35px 0 11px; font-size: 24px; font-weight: 400; line-height: 1.03; letter-spacing: -.015em; }
.news-card .text-link { margin-top: auto; }
.news-card.is-hidden { display: none; }
.news-more { display: flex; justify-content: center; margin-top: 20px; }

.page-hero { padding: 78px 0 22px; background: #fff; }
.page-hero p { max-width: 650px; }
.cards-three, .contacts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.content-card, .contact-card { min-height: 240px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 26px; }
.content-card { display: flex; flex-direction: column; }
.content-card h2, .contact-card h2 { margin: 0 0 12px; font-size: 27px; font-weight: 400; line-height: 1.03; letter-spacing: -.015em; }
.content-card-locations { display: grid; gap: 16px; margin-top: 5px; }
.content-card-location { display: grid; gap: 3px; border-top: 1px solid var(--line); padding-top: 14px; }
.content-card-location:first-child { border-top: 0; padding-top: 0; }
.content-card-location strong { font-size: 18px; font-weight: 400; line-height: 1.15; letter-spacing: -.01em; }
.content-card-location span { color: var(--muted); font-size: 16px; line-height: 1.45; }
.content-card .content-card-note { margin: auto 0 0; border-top: 1px solid var(--line); padding-top: 14px; color: var(--ink); font-size: 15px; line-height: 1.45; }
.article-hero { padding-bottom: 34px; }
.article-body { background: #fff; }
.article-body p { margin: 0 0 24px; font-size: 20px; line-height: 1.65; }
.article-back, .not-found-action { display: inline-flex; margin-top: 28px; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; }
.contact-card .button { margin-top: auto; }

.site-footer { background: #0f0f0f; color: #fff; padding: 10px 0; }
.footer-inner { display: flex; min-height: 31px; align-items: center; justify-content: space-between; gap: 22px; }
.footer-copyright { color: rgba(255,255,255,.68); font-size: 13px; font-weight: 400; white-space: nowrap; }
.footer-right { display: flex; align-items: center; justify-content: flex-end; gap: 16px; color: rgba(255,255,255,.7); font-size: 13px; }
.footer-right > a { transition: color .2s ease; }
.footer-right > a:hover { color: var(--yellow); }
.footer-social { display: inline-flex; align-items: center; gap: 7px; }
.social-icon { width: 17px; height: 17px; flex: 0 0 17px; }
.footer-counters { display: inline-flex; gap: 5px; align-items: center; }
.footer-counters img { display: block; width: 88px; height: 31px; object-fit: contain; }

@media (max-width: 900px) {
  .site-nav { gap: 13px; }
  .vehicle-grid, .news-grid, .news-grid-full, .benefit-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid .step-card h3 { margin-top: 24px; }
  .cards-three { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 10px; }
  .footer-right { width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 13px; }
}

@media (max-width: 700px) {
  .shell, .narrow { width: min(calc(100% - 32px), var(--shell)); }
  :root { --header-height: 76px; }
  .header-inner { min-height: 76px; gap: 14px; }
  .brand-logo { gap: 9px; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-name { font-size: 23px; }
  .menu-toggle { display: grid; width: 42px; height: 42px; margin-left: auto; place-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
  .menu-toggle span:not(.sr-only) { display: block; width: 18px; height: 2px; background: var(--ink); }
  .site-nav { position: fixed; inset: calc(var(--header-height) + 8px) 16px auto 16px; display: none; margin: 0; flex-direction: column; align-items: stretch; border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 16px; box-shadow: 0 22px 50px rgba(0,0,0,.18); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 8px; }
  .header-actions { margin-left: 0; }
  .language-switch { font-size: 16px; }
  .hero { min-height: 650px; }
  .hero-picture img { object-position: center center; }
  .hero-shade { background: linear-gradient(180deg, rgba(7,8,9,.88) 0%, rgba(7,8,9,.72) 40%, rgba(7,8,9,.18) 100%); }
  .hero-content { padding-top: 58px; }
  .hero h1 { max-width: 330px; font-size: 43px; }
  .hero-price { margin-top: 22px; font-size: 23px; }
  .hero-text { max-width: 300px; font-size: 15px; }
  .hero-actions { margin-top: 22px; }
  .hero-actions .button { min-height: 46px; padding: 0 15px; }
  .availability-section, .steps-section, .benefits-section, .faq-section, .news-preview, .content-section, .article-body { padding: 70px 0; }
  .availability-heading, .inline-heading { align-items: flex-start; flex-direction: column; }
  .availability-heading--tabs-only { align-items: flex-end; }
  .availability-heading { margin-bottom: 16px; }
  .availability-cta { align-items: flex-start; flex-direction: column; gap: 20px; padding: 26px 22px; }
  .availability-cta .button { width: 100%; }
  .faq-section { padding-bottom: 42px; }
  .news-preview { padding-top: 42px; }
  .faq-item summary { padding-top: 20px; padding-bottom: 20px; font-size: 21px; }
  .faq-item p { margin-bottom: 20px; font-size: 16px; }
  .vehicle-grid, .news-grid, .news-grid-full, .benefit-grid, .steps-grid, .contacts-grid { grid-template-columns: 1fr; }
  .vehicle-card { min-height: 250px; }
  .vehicle-image { width: 53%; height: 126px; top: 16px; right: 10px; }
  .availability-empty { grid-template-columns: auto 1fr; }
  .availability-empty .button { grid-column: 1 / -1; }
  .page-hero { padding: 54px 0 8px; }
  .page-hero h1, .section-heading h2, .availability-heading h2 { font-size: 36px; }
  .article-body p { font-size: 18px; }
  .site-footer { padding: 12px 0; }
  .footer-inner { gap: 9px; }
  .footer-copyright { white-space: normal; }
  .footer-right { gap: 12px; }
  .footer-counters { margin-left: auto; }
}

.vehicle-card.is-hidden { display: none; }
.availability-more { margin-top: 20px; cursor: pointer; }


.stories-add-link { margin-top: 26px; }
.story-driver-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 32px; }
.story-driver-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .72fr) auto; align-items: end; gap: 14px; margin-top: 28px; }
.story-field { display: grid; gap: 8px; }
.story-field > span { font-size: 13px; font-weight: 400; }
.story-field-hint { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.25; }
.story-field input { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 12px; outline: none; background: #fff; color: var(--ink); padding: 0 15px; font: inherit; font-weight: 400; transition: border-color .2s ease, box-shadow .2s ease; }
.story-field input::placeholder { color: #9a9a9a; font-weight: 400; }
.story-field input:focus { border-color: #bf8d00; box-shadow: 0 0 0 4px rgba(244, 200, 62, .24); }
.story-plate-input { letter-spacing: .05em; text-transform: uppercase; }
.story-driver-submit { border: 0; cursor: pointer; white-space: nowrap; }
.story-driver-submit:disabled { cursor: wait; opacity: .65; }
.story-driver-result { display: flex; align-items: center; gap: 11px; margin-top: 20px; border-radius: 14px; padding: 15px 17px; }
.story-driver-result[hidden] { display: none; }
.story-driver-result p { margin: 0; font-size: 15px; font-weight: 400; }
.story-driver-result-mark { display: grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; border-radius: 50%; font-weight: 400; }
.story-driver-result--found { background: rgba(76, 158, 94, .13); color: #226b33; }
.story-driver-result--found .story-driver-result-mark { background: #4c9e5e; color: #fff; }
.story-driver-result--not_found, .story-driver-result--invalid, .story-driver-result--unavailable, .story-driver-result--neutral, .story-driver-result--rate_limited, .story-driver-result--captcha_required { background: rgba(205, 76, 76, .12); color: #a23636; }
.story-driver-result--not_found .story-driver-result-mark, .story-driver-result--invalid .story-driver-result-mark, .story-driver-result--unavailable .story-driver-result-mark, .story-driver-result--neutral .story-driver-result-mark, .story-driver-result--rate_limited .story-driver-result-mark, .story-driver-result--captcha_required .story-driver-result-mark { background: #cf6262; color: #fff; }

@media (max-width: 700px) {
  .story-driver-card { padding: 22px; }
  .story-driver-form { grid-template-columns: 1fr; margin-top: 24px; }
  .story-driver-submit { width: 100%; }
}

/* Driver stories */
.stories-list-hero { padding-bottom: 28px; }
.stories-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.stories-heading > div { max-width: 660px; }
.stories-heading .stories-add-link { flex: 0 0 auto; margin: 0; }
.stories-list-section { padding-top: 38px; background: #fff; }
.stories-sort-bar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.stories-sort-actions { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.stories-sort-link { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); padding: 0 14px; font-size: 14px; text-decoration: none; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.stories-sort-link:hover { transform: translateY(-1px); border-color: var(--yellow); }
.stories-sort-link.is-active { border-color: var(--yellow); background: var(--yellow); }
.stories-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.story-card.is-hidden { display: none; }
.stories-more { display: flex; justify-content: center; margin-top: 28px; }
.story-card { display: flex; min-height: 314px; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 22px; }
.story-card-author { display: flex; align-items: center; gap: 12px; min-width: 0; }
.story-card-author strong { font-size: 19px; font-weight: 400; line-height: 1.05; letter-spacing: -.01em; }
.story-avatar { width: 68px; height: 68px; flex: 0 0 68px; border-radius: 50%; object-fit: cover; background: var(--soft); }
.story-card-excerpt { display: -webkit-box; margin: 19px 0 22px; overflow: hidden; color: var(--ink); font-size: 16px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
.story-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.story-like { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.story-like::first-letter { color: var(--ink); font-size: 24px; line-height: .8; }
.story-like strong { color: var(--ink); font-size: 14px; font-weight: 400; }
.story-read-link { color: var(--ink); font-size: 13px; font-weight: 400; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }

.story-back { display: inline-flex; margin-bottom: 30px; color: var(--ink); font-size: 14px; font-weight: 400; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.story-form-hero, .story-detail-hero { padding-bottom: 26px; }
.story-form-section, .story-detail-section { padding-top: 34px; background: #fff; }
.story-entry-form { display: block; }
.story-entry-form .story-driver-form { margin-top: 0; }
.story-captcha { max-width: 240px; margin-top: 18px; }
.story-captcha[hidden] { display: none; }
.story-text-field { margin-top: 28px; }
.story-text-field textarea { width: 100%; min-height: 240px; resize: vertical; border: 1px solid var(--line); border-radius: 12px; outline: none; background: #fff; color: var(--ink); padding: 15px; font: inherit; font-weight: 400; line-height: 1.55; transition: border-color .2s ease, box-shadow .2s ease; }
.story-text-field textarea::placeholder { color: #9a9a9a; }
.story-text-field textarea:focus { border-color: #bf8d00; box-shadow: 0 0 0 4px rgba(244, 200, 62, .24); }
.story-text-count { justify-self: end; margin-top: -3px; color: #a0a0a0; font-size: 13px; font-weight: 400; }
.story-photo-consent { display: inline-flex; align-items: flex-start; gap: 9px; margin-top: 18px; color: var(--muted); font-size: 14px; line-height: 1.4; cursor: pointer; }
.story-photo-consent input { width: 17px; height: 17px; flex: 0 0 17px; margin: 1px 0 0; accent-color: #d3a100; cursor: pointer; }
.story-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.story-form-actions .button { min-width: 154px; }
.story-send-button { border: 0; cursor: pointer; }
.story-send-button:disabled { cursor: not-allowed; opacity: .45; }

.story-detail-author { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.story-avatar--detail { width: 200px; height: 200px; flex-basis: 200px; }
.story-detail-author p { margin: 0; color: var(--ink); font-size: 18px; font-weight: 400; }
.story-detail-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: clamp(24px, 5vw, 48px); }
.story-detail-body { max-width: 660px; }
.story-detail-body p { margin: 0 0 20px; white-space: pre-wrap; font-size: 19px; line-height: 1.72; }
.story-detail-meta { margin-top: 38px; border-top: 1px solid var(--line); padding-top: 18px; }
.story-detail-meta p { margin: 0 0 7px; color: var(--muted); font-size: 14px; }
.story-detail-footer { margin-top: 26px; }
.story-detail-back-wrap { padding-top: 28px; }
.story-detail-back { display: inline-flex; }

@media (max-width: 900px) {
  .stories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .stories-heading { align-items: flex-start; flex-direction: column; }
  .stories-heading .stories-add-link { width: 100%; }
  .stories-list-section { padding-top: 24px; }
  .stories-sort-bar { align-items: flex-start; flex-direction: column; justify-content: flex-start; gap: 8px; margin-bottom: 16px; }
  .stories-sort-actions { width: 100%; }
  .stories-sort-link { flex: 1 1 calc(50% - 4px); }
  .stories-grid { grid-template-columns: 1fr; }
  .story-card { min-height: 280px; padding: 20px; }
  .story-card-excerpt { -webkit-line-clamp: 4; }
  .story-form-section, .story-detail-section { padding-top: 20px; }
  .story-text-field { margin-top: 22px; }
  .story-text-field textarea { min-height: 210px; }
  .story-form-actions { flex-direction: column-reverse; }
  .story-form-actions .button { width: 100%; }
  .story-detail-author { gap: 14px; margin-bottom: 22px; }
  .story-avatar--detail { width: 140px; height: 140px; flex-basis: 140px; }
  .story-detail-body p { font-size: 18px; line-height: 1.65; }
}

/* Contacts maps */
.contacts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contacts-section { padding-top: 56px; }
.contact-card { min-height: 0; }
.contact-card-main { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) minmax(210px, .82fr); align-items: stretch; gap: 24px; }
.contact-card-copy { display: flex; min-width: 0; flex-direction: column; }
.contact-card h2 { margin-bottom: 0; }
.contact-address { margin: 14px 0 0; color: var(--muted); font-size: 16px; line-height: 1.45; }
.contact-map-preview { position: relative; min-height: 166px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.contact-map-preview img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.contact-map-preview-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: rgba(20,20,20,.46); font-size: 48px; }
.contact-map-trigger { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; cursor: pointer; }
.contact-map-trigger::after { position: absolute; right: 10px; bottom: 10px; width: 10px; height: 10px; border-right: 1.5px solid rgba(20,20,20,.75); border-bottom: 1.5px solid rgba(20,20,20,.75); content: ""; opacity: 0; transform: translateY(-2px); transition: opacity .2s ease, transform .2s ease; }
.contact-map-preview:hover .contact-map-trigger::after, .contact-map-trigger:focus-visible::after { opacity: 1; transform: translateY(0); }
.contact-map-trigger:focus-visible { outline: 3px solid rgba(244,200,62,.82); outline-offset: -3px; }
.contact-actions { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.contact-actions .button { width: 100%; margin: 0; white-space: nowrap; }
.button-map { border: 1px solid var(--yellow); background: var(--yellow); color: var(--ink); cursor: pointer; }
.button-map:hover { background: #ffd154; }

.map-modal[hidden] { display: none; }
.map-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; }
.map-modal-backdrop { position: absolute; inset: 0; background: rgba(12,12,12,.62); }
.map-modal-dialog { position: relative; width: min(100%, 980px); overflow: hidden; border-radius: 22px; background: #fff; box-shadow: 0 28px 70px rgba(0,0,0,.34); outline: none; }
.map-modal-header { display: grid; grid-template-columns: minmax(0, 1fr) 38px; align-items: flex-start; gap: 12px; padding: 22px 24px 20px; }
.map-modal-copy { min-width: 0; }
.map-modal-city { margin: 0 0 5px; color: #bf8d00; font-size: 12px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }
.map-modal-header h2 { margin: 0; font-size: 25px; font-weight: 400; line-height: 1.05; letter-spacing: -.015em; }
.map-modal-address { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.map-modal-close { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; font-size: 28px; font-weight: 400; line-height: 1; transition: background .2s ease; }
.map-modal-close:hover { background: var(--soft); }
.map-modal-frame-wrap { height: min(68vh, 610px); background: var(--soft); }
.map-modal-frame-wrap iframe { display: block; width: 100%; height: 100%; border: 0; }
body.map-modal-open { overflow: hidden; }

@media (max-width: 700px) {
  .contacts-grid { grid-template-columns: 1fr; }
  .contacts-section { padding-top: 42px; }
  .contact-card-main { grid-template-columns: 1fr; gap: 20px; }
  .contact-address { margin-top: 12px; }
  .contact-map-preview { min-height: 190px; }
  .contact-actions { grid-template-columns: 1fr; margin-top: 20px; }
  .map-modal { padding: 16px; }
  .map-modal-dialog { border-radius: 18px; }
  .map-modal-header { padding: 18px 18px 16px; }
  .map-modal-header h2 { font-size: 23px; }
  .map-modal-address { font-size: 14px; }
  .map-modal-frame-wrap { height: min(65vh, 520px); }
}

.story-card-author > div { display: grid; gap: 4px; min-width: 0; }
.story-city, .story-vehicle, .story-written-at, .story-works-since { display: block; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.35; }
.story-city, .story-vehicle { color: var(--ink); }
.story-detail-author .story-city, .story-detail-author .story-vehicle, .story-detail-author .story-written-at, .story-detail-author .story-works-since { font-size: 13px; }
.story-like { border: 0; padding: 0; background: transparent; cursor: pointer; font: inherit; }
.story-like:disabled { cursor: wait; opacity: .65; }
.story-like .story-like-heart { color: var(--ink); font-size: 24px; line-height: .8; }
.story-like.is-liked .story-like-heart { color: #d24b4b; }
.story-detail-author > div { min-width: 0; }

.news-card-image { display: block; width: 100%; aspect-ratio: 1 / 1; margin: 18px 0 20px; border-radius: calc(var(--radius) - 4px); object-fit: cover; }
.news-article-image { display: block; width: min(100%, 760px); height: auto; margin: 12px auto 36px; border-radius: var(--radius); }

@media (max-width: 720px) {
  .news-card-image { margin-bottom: 18px; }
  .news-article-image { margin-bottom: 28px; }
}
