/*
 * yolucreti.com taxi pages: one small hand-written stylesheet, system fonts only, no external requests.
 * The one memorable element is the taximeter readout (.meter); everything around it stays quiet.
 */

:root {
    --ink: #14181d;
    --ink-soft: #4a545e;
    --asphalt: #1e2429;
    --cab: #ffd21f;
    --cab-deep: #e6b800;
    --page: #f3f5f7;
    --paper: #ffffff;
    --line: #d5dbe1;
    --link: #0b5c7a;
    --notice: #7a4b00;

    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --digits: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;

    --radius: 6px;
    --gutter: 1rem;
    --measure: 46rem;
    color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font: 400 1rem/1.6 var(--sans);
}

img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.skip {
    position: absolute; left: var(--gutter); top: -4rem; z-index: 10;
    background: var(--cab); color: var(--ink); padding: 0.6rem 1rem; font-weight: 700;
}
.skip:focus { top: 0.5rem; }

/* ---------- header ---------- */

.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    max-width: 66rem; margin: 0 auto; padding: 0.6rem var(--gutter);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand img { display: block; }
.lang { display: flex; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.lang a {
    display: inline-block; min-height: 2.75rem; padding: 0.65rem 0.6rem; line-height: 1.4;
    color: var(--ink-soft); text-decoration: none; font-size: 0.9rem;
}
.lang a:hover { color: var(--ink); text-decoration: underline; }
.lang a[aria-current="true"] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -3px 0 var(--cab); }

/* ---------- page frame ---------- */

.frame {
    max-width: 66rem; margin: 0 auto; padding: 0 var(--gutter) 2rem;
    display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 62rem) {
    .frame--aside { grid-template-columns: minmax(0, var(--measure)) 300px; justify-content: space-between; }
}

main { padding-top: 1.25rem; min-width: 0; }
.aside { padding-top: 1.25rem; }

h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-size: clamp(1.55rem, 5.2vw, 2.35rem); font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(1.2rem, 3.4vw, 1.5rem); font-weight: 750; letter-spacing: -0.01em; margin-top: 2.25rem; }
h3 { font-size: 1.05rem; font-weight: 700; margin-top: 1.25rem; }
p { margin: 0.7rem 0 0; }

.modules { list-style: none; margin: 1rem 0 2rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.stats { list-style: none; margin: 1.2rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; color: var(--ink-soft); }
.stats strong { font-size: 1.6rem; color: var(--ink, inherit); margin-right: 0.2rem; }
.module { border: 1px solid var(--line); border-radius: 0.5rem; padding: 1.1rem 1.2rem; background: var(--paper); }
.module h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.module p { margin: 0 0 0.9rem; color: var(--ink-soft); }
.steps { padding-left: 1.2rem; max-width: 40rem; }
.steps li { margin-bottom: 0.6rem; }
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 40rem; }
.prose { max-width: 42rem; }
.prose p, .prose li { line-height: 1.7; }
.prose ul { padding-left: 1.2rem; }
.prose article > strong { display: block; margin-top: 1.6rem; font-size: 1.15rem; line-height: 1.3; }
.sss-item h3 { margin-top: 1.1rem; }
.frame--single, .page-narrow .site-header__inner, .page-narrow .site-footer__inner { max-width: 50rem; }
.small { font-size: 0.875rem; color: var(--ink-soft); }
.notice { color: var(--notice); }

.crumbs { font-size: 0.875rem; color: var(--ink-soft); margin: 0 0 0.9rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--line); }
.crumbs a { color: var(--ink-soft); }

/* ---------- route form ---------- */

.route-form { margin-top: 1.5rem; }
.stops { position: relative; display: grid; gap: 0.9rem; padding-left: 1.6rem; }
.stops::before { /* the route: a dotted line between the two ends */
    content: ""; position: absolute; left: 0.45rem; top: 1.9rem; bottom: 1.9rem;
    border-left: 3px dotted var(--ink-soft);
}
.field { position: relative; }
.field::before { /* start: round pin, end: square pin */
    content: ""; position: absolute; left: -1.6rem; top: 2.25rem; width: 1rem; height: 1rem;
    background: var(--cab); border: 3px solid var(--ink); border-radius: 50%;
}
.field--end::before { border-radius: 2px; background: var(--ink); }
.field label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.field input {
    width: 100%; min-height: 3.1rem; padding: 0.6rem 0.8rem;
    font: inherit; font-size: 1rem; color: var(--ink);
    background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
}
.field input::placeholder { color: #707a84; }
.field input:focus { outline: 3px solid var(--cab); outline-offset: 0; }
.field input[aria-invalid="true"] { border-color: #a4161a; }

.suggest {
    position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin: 0.2rem 0 0; padding: 0; list-style: none;
    background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); max-height: 18rem; overflow-y: auto;
}
.suggest li { padding: 0.7rem 0.8rem; min-height: 2.75rem; cursor: pointer; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.suggest li:last-child { border-bottom: 0; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--cab); }
.suggest .suggest__empty { cursor: default; color: var(--ink-soft); }
.suggest .suggest__empty:hover { background: transparent; }

.btn {
    display: inline-block; width: 100%; min-height: 3.4rem; padding: 0.8rem 1.2rem; margin-top: 1.25rem;
    font: inherit; font-size: 1.1rem; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer;
    color: var(--ink); background: var(--cab); border: 2px solid var(--ink); border-radius: var(--radius);
}
.btn:hover { background: var(--cab-deep); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn--inline { width: auto; margin-top: 0; }

.route-form__hint { margin: 0.9rem 0 0; }

.form-message { min-height: 1.5rem; margin: 0.8rem 0 0; color: #a4161a; font-weight: 600; }

.hints { margin: 1.5rem 0 0; padding: 0.9rem 1rem; border-left: 4px solid var(--cab); background: var(--paper); }
.hints p { margin: 0; font-weight: 700; }
.hints ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.hints li { margin: 0.3rem 0; }

/* ---------- the taximeter ---------- */

.meter {
    margin: 1.25rem 0 0; padding: 1.1rem 1.25rem 1rem; color: #fff;
    background: var(--asphalt); border-top: 6px solid var(--cab); border-radius: var(--radius);
}
.meter__fare {
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.2rem 0.6rem;
    font-family: var(--digits); font-variant-numeric: tabular-nums; color: var(--cab);
    font-size: clamp(2.3rem, 11.5vw, 4rem); line-height: 1.05; letter-spacing: 0.02em; font-weight: 700;
}
.meter__readouts { display: flex; gap: 2.2rem; margin: 0.9rem 0 0; padding: 0; }
.meter__readouts div { margin: 0; }
.meter__readouts dt { font-size: 0.85rem; color: #aab4bd; }
.meter__readouts dd {
    margin: 0; font-family: var(--digits); font-variant-numeric: tabular-nums;
    font-size: clamp(1.3rem, 5vw, 1.75rem); font-weight: 600; color: #fff;
}
.meter__readouts .unit { font-family: var(--sans); font-size: 0.9rem; font-weight: 400; color: #aab4bd; }
.meter__note { margin: 0.9rem 0 0; font-size: 0.85rem; color: #aab4bd; }

.trip { list-style: none; margin: 1.25rem 0 0; padding: 0 0 0 1.6rem; position: relative; display: grid; gap: 0.9rem; }
.trip::before { content: ""; position: absolute; left: 0.45rem; top: 0.7rem; bottom: 0.7rem; border-left: 3px dotted var(--ink-soft); }
.trip li { position: relative; margin: 0; }
.trip li::before { content: ""; position: absolute; left: -1.6rem; top: 0.35rem; width: 1rem; height: 1rem; background: var(--cab); border: 3px solid var(--ink); border-radius: 50%; }
.trip li:last-child::before { border-radius: 2px; background: var(--ink); }
.trip .small { display: block; }
.trip b { font-weight: 700; }

/* ---------- content blocks ---------- */

.answer { margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.answer h2 { margin-top: 0; }

.fare-table { width: 100%; border-collapse: collapse; margin-top: 0.8rem; font-variant-numeric: tabular-nums; }
.fare-table th, .fare-table td { padding: 0.65rem 0.4rem; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; vertical-align: top; }
.fare-table td:last-child, .fare-table th:last-child { text-align: right; white-space: nowrap; }
.fare-table tr:last-child th, .fare-table tr:last-child td { border-bottom: 2px solid var(--ink); }
.fare-table--total tr:last-child th, .fare-table--total tr:last-child td { font-weight: 800; }
.fare-table thead th { font-weight: 700; color: var(--ink-soft); font-size: 0.9rem; }

.routes { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.routes li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.routes a { font-weight: 500; }

.routes-table td a { font-weight: 500; }

.share { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; font-size: 0.95rem; }
.share a { display: inline-block; min-height: 2.75rem; padding: 0.7rem 0; }

.cities { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.cities ul { list-style: none; margin: 0.8rem 0 0; padding: 0; display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); font-size: 0.92rem; }
.cities li a { display: block; padding: 0.4rem 0; }

/* ---------- ads: space is reserved so nothing jumps when they load ---------- */

.ad { margin: 1.5rem 0; text-align: center; overflow: hidden; }
.ad--flex { min-height: 250px; }
.ad--tall { min-height: 600px; margin-top: 0; }
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }
.ad::before { display: block; margin-bottom: 0.25rem; font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted, #6b6b6b); content: "Advertisement"; }
:lang(tr) .ad::before { content: "Reklam"; }
:lang(de) .ad::before { content: "Anzeige"; }
:lang(ru) .ad::before { content: "Реклама"; }
@media (max-width: 61.99rem) {
    .ad--tall { display: none; } /* a 300x600 unit far down a phone page is rarely seen: the responsive units serve phones */
}
@media (min-width: 62rem) {
    .aside .ad--tall { position: sticky; top: 1rem; }
}

.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.site-footer__links ul { list-style: none; margin: 0 0 0.6rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.site-footer__links a, .site-footer__credit a { color: inherit; }
.site-footer__credit, .site-footer__inner p { margin: 0 0 0.3rem; }
.site-footer__inner { max-width: 66rem; margin: 0 auto; padding: 1.1rem var(--gutter); font-size: 0.875rem; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
    .ad, .site-header, .share, .btn, .route-form { display: none !important; }
    body { background: #fff; }
}
