@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@500;700;800&display=swap');

:root {
    --page: #f3f5f7;
    --surface: #ffffff;
    --surface-2: #f7fafc;
    --navy: #111827;
    --navy-2: #1f2937;
    --petrol: #e30613;
    --petrol-dark: #b0000b;
    --secondary: #384552;
    --secondary-50: #f2f5f7;
    --secondary-100: #e6ecef;
    --secondary-200: #c8d2d8;
    --secondary-300: #a8b6bf;
    --cyan: #e30613;
    --header-bg: #ba000b;
    --header-text: #ffffff;
    --ink: #14213d;
    --muted: #66788a;
    --line: #d9e4ea;
    --line-soft: #e8eef2;
    --green: #0f8a5f;
    --green-bg: #e8f8ef;
    --red: #c0392b;
    --red-bg: #fff0ee;
    --flat-bg: #edf2f5;
    --table-dark: var(--secondary);
    --footer-dark: #111827;
    --site-header-height: 82px;
    --shadow: none;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    color: var(--ink);
    background: var(--page);
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a,
a:hover {
    text-decoration: none;
}

.brand-market {
    background: var(--header-bg);
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: hidden;
    padding: 0;
}

.brand-market::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("assets/turkey-dots.svg");
    background-repeat: no-repeat;
    background-position: 53% center;
    background-size: min(820px, 72%) auto;
    opacity: 0.38;
    pointer-events: none;
}

.brand-market .container {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-left: 15px;
    padding-right: 15px;
    position: relative;
    z-index: 1;
}

.brand-market .navbar-collapse {
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
}

.brand-market .navbar-nav {
    align-items: center;
    gap: 2px;
}

.brand-market .nav-link {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 6px;
    padding: 0.62rem 0.78rem !important;
}

.brand-market .nav-link:hover,
.brand-market .nav-item.active .nav-link {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.14);
}

.brand-market .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.32);
    padding: 0.32rem 0.48rem;
}

.brand-logo {
    color: #ffffff;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    white-space: nowrap;
    font-family: 'Manrope', 'Inter', Arial, sans-serif;
    font-size: 1.54rem;
    font-weight: 500;
    line-height: 1;
}

.brand-logo:hover {
    color: #ffffff;
}

.brand-logo strong {
    font-weight: 800;
}

.brand-logo small {
    color: rgba(255, 255, 255, 0.76);
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 100;
    line-height: 1;
    margin-top: 5px;
}

.market-cards {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    width: auto;
}

.mobile-market-bar {
    display: none;
}

.market-update-note {
    padding: 5px 12px;
    color: var(--secondary);
    background: var(--secondary-100);
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
}

.market-card {
    color: #ffffff;
    min-width: 70px;
}

.market-card span {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.market-card strong {
    display: block;
    font-size: 1em;
    font-weight: 800;
    line-height: 1.15;
    margin-top: 4px;
}

.market-card small {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    margin-top: 3px;
}

.market-card .up {
    color: #ffffff;
}

.market-card .down {
    color: #fff0f0;
}

.market-card .neutral {
    color: rgba(255, 255, 255, 0.78);
}

.market-date {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.72rem;
    font-weight: 700;
    text-align: right;
}

.ad-band,
.ad-rail {
    border: 1px dashed #bfd0dc;
    background: rgba(255, 255, 255, 0.72);
    color: #8ca0b3;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ad-band {
    width: 728px;
    max-width: 100%;
    min-height: 0;
    margin: 10px auto 0;
    border-radius: 6px;
    overflow: hidden;
}

.ad-band img {
    display: block;
    width: 100%;
    height: auto;
}

.main-wrapper {
    flex: 1;
    padding-top: 10px;
    padding-bottom: 36px;
}

.ad-sidebar {
    display: flex;
    justify-content: center;
}

.ad-rail {
    width: 160px;
    height: 600px;
    border-radius: 6px;
    position: sticky;
    top: 84px;
    overflow: hidden;
}

.ad-rail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.market-board {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: none;
    overflow: visible;
}

.market-board .table-responsive {
    overflow: visible;
}

.city-history-board {
    margin-top: 14px;
}

.city-history-board .table-responsive {
    max-height: none;
    overflow-y: visible;
}

.board-head {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 9px 12px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--petrol-dark);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.page-title {
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.2rem, 1.6vw, 1.48rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: 0;
}

.page-subtitle {
    color: var(--muted);
    margin: 4px 0 0;
    font-size: 0.78rem;
    line-height: 1.28;
    max-width: 760px;
}

.board-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    min-width: 250px;
}

.market-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--line);
    background: #f8fbfc;
    border-radius: 999px;
    padding: 4px 8px;
    color: #41566b;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.market-chip strong {
    color: var(--navy);
}

.producer-board {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.producer-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
}

.producer-card {
    min-height: 132px;
    display: grid;
    grid-template-columns: 144px 1fr;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}

.producer-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f9fb;
    border-right: 1px solid var(--line-soft);
    padding: 18px;
}

.producer-media.is-dark {
    background: var(--navy);
}

.producer-media img {
    width: 100%;
    height: 92px;
    object-fit: contain;
    display: block;
}

.producer-media span {
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--header-bg);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
}

.producer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 14px;
}

.producer-content h2 {
    color: var(--navy);
    font-size: 0.96rem;
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 7px;
}

.producer-content p {
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.36;
    margin: 0 0 10px;
}

.producer-content a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--header-bg);
    font-size: 0.76rem;
    font-weight: 800;
}

.producer-content a:hover {
    color: var(--petrol-dark);
}

.btn-market {
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.42rem 0.68rem;
}

.btn-market-primary {
    color: #ffffff;
    background: var(--petrol);
    border-color: var(--petrol);
}

.btn-market-primary:hover {
    color: #ffffff;
    background: var(--petrol-dark);
    border-color: var(--petrol-dark);
}

.btn-market-secondary {
    color: var(--secondary);
    background: #ffffff;
    border: 1px solid var(--line);
}

.table-custom {
    margin-bottom: 0;
    color: var(--ink);
    border-collapse: separate;
    border-spacing: 0;
}

.table-custom thead th {
    background: var(--table-dark);
    color: var(--secondary-100);
    border: 0;
    position: sticky;
    top: var(--site-header-height);
    z-index: 30;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
    vertical-align: middle;
    padding: 7px 10px;
}

.table-custom thead th a {
    color: inherit;
    text-decoration: none;
}

.table-custom thead th a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.table-custom td {
    border-top: 1px solid var(--line-soft);
    padding: 5px 10px;
    vertical-align: middle;
    background: #ffffff;
}

.table-custom tbody tr:nth-child(even) td {
    background: #fbfdfe;
}

.table-custom tbody tr:hover td {
    background: #eef9fb;
}

.city-link,
.product-name {
    color: var(--navy);
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.city-detail {
    display: block;
    color: #7b8b99;
    font-size: 0.64rem;
    line-height: 1.15;
    margin-top: 1px;
}

.city-link:hover {
    color: var(--table-dark);
}

.city-link i,
.product-name i {
    color: var(--table-dark);
}

.city-price-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    background: #f8fafb;
}

.city-price-card {
    position: relative;
    min-height: 112px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
}

.city-price-card span {
    display: block;
    color: var(--secondary);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.city-price-card strong {
    display: block;
    color: var(--navy);
    font-size: clamp(1.65rem, 2.4vw, 2.28rem);
    font-weight: 800;
    line-height: 1;
    margin-top: 14px;
}

.city-price-card small {
    position: absolute;
    top: 12px;
    right: 12px;
}

.city-price-card em {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 700;
    margin-top: 10px;
}

.region-note {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 3px;
    font-weight: 600;
}

.price-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 132px;
}

.price-pending {
    color: #6b7280;
    font-size: 0.72rem;
    font-weight: 700;
}

.price-val {
    font-size: 0.86rem;
    font-weight: 700;
    color: #111c2f;
    font-variant-numeric: tabular-nums;
}

.currency {
    color: var(--muted);
    font-weight: 500;
    margin-left: 2px;
    font-size: 0.78rem;
}

.trend,
.badge-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 999px;
    padding: 3px 6px;
    font-size: 0.66rem;
    line-height: 1;
    font-weight: 600;
    white-space: nowrap;
}

.trend-up,
.badge-status.success {
    color: var(--green);
    background: var(--green-bg);
}

.trend-down,
.badge-status.danger {
    color: var(--red);
    background: var(--red-bg);
}

.trend-neutral,
.badge-status.neutral {
    color: #526577;
    background: var(--flat-bg);
}

.price-disclaimer {
    margin: 8px 2px 0;
    color: #4b5563;
    font-size: 0.78rem;
    line-height: 1.35;
}

.diameter-link-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.diameter-link-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    min-height: 66px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: #ffffff;
    background: var(--secondary);
    text-decoration: none;
}

.diameter-link-card:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.34);
    background: var(--navy-2);
    text-decoration: none;
    transform: translateY(-1px);
}

.diameter-link-card span {
    grid-row: 1 / 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: var(--secondary);
    font-size: 0.88rem;
    background: #ffffff;
}

.diameter-link-card strong {
    display: block;
    min-width: 0;
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.15;
}

.diameter-link-card small {
    display: block;
    min-width: 0;
    color: var(--secondary-200);
    font-size: 0.68rem;
    line-height: 1.2;
}

.diameter-link-card.is-petrol span {
    color: var(--petrol);
}

.diameter-link-card.is-gold span {
    color: #b7791f;
}

.diameter-link-card.is-red span {
    color: var(--red);
}

.news-impact-box {
    margin: 12px 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
}

.news-impact-box h2 {
    color: var(--navy);
    font-size: 0.88rem;
    font-weight: 800;
    margin: 0 0 6px;
}

.methodology-link {
    margin-top: 10px;
}

.methodology-link a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 800;
}

.inline-link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.inline-link-grid a {
    display: block;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--secondary);
    font-size: 0.78rem;
    font-weight: 800;
    background: var(--surface-2);
}

.pagination-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px;
    border-top: 1px solid var(--line);
}

.pagination-links a {
    min-width: 32px;
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--secondary);
    text-align: center;
    font-size: 0.78rem;
    font-weight: 800;
    background: #ffffff;
}

.pagination-links a.active {
    color: #ffffff;
    border-color: var(--secondary);
    background: var(--secondary);
}

.section-row {
    margin-top: 10px;
}

.content-article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: none;
}

.content-article h2 {
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.content-article h3 {
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.content-article p {
    color: #50657a;
    line-height: 1.42;
    margin-bottom: 0;
    font-size: 0.78rem;
}

.content-article {
    padding: 22px;
    margin-top: 18px;
}

.faq-article {
    display: grid;
    gap: 12px;
}

.faq-item {
    border-top: 1px solid var(--line-soft);
    padding-top: 10px;
}

.legal-article {
    margin-top: 0;
}

.legal-article .page-title {
    margin: 8px 0 12px;
}

.legal-article h2 {
    margin-top: 22px;
}

.legal-article p {
    margin-bottom: 10px;
}

.legal-article ul {
    color: #50657a;
    font-size: 0.78rem;
    line-height: 1.5;
    margin: 8px 0 12px;
    padding-left: 20px;
}

.legal-article li + li {
    margin-top: 6px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
}

.contact-mail {
    min-height: 168px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fafb;
}

.contact-mail span {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.contact-mail a {
    display: inline-flex;
    color: var(--navy);
    font-size: 1.04rem;
    font-weight: 800;
    margin-top: 8px;
    word-break: break-word;
}

.contact-form {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.form-grid label {
    display: block;
    margin: 0;
}

.form-grid span {
    display: block;
    color: var(--secondary);
    font-size: 0.76rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.form-grid input,
.form-grid textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    color: var(--navy);
    font: inherit;
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 10px 11px;
    outline: 0;
}

.form-grid input:focus,
.form-grid textarea:focus {
    border-color: #c83b44;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.09);
}

.form-grid textarea {
    resize: vertical;
    min-height: 142px;
}

.form-full {
    grid-column: 1 / -1;
}

.contact-submit {
    margin-top: 14px;
    min-width: 132px;
}

.contact-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-alert {
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    padding: 10px 12px;
}

.form-alert-success {
    color: var(--green);
    background: var(--green-bg);
    border: 1px solid #bfe8cf;
}

.form-alert-error {
    color: var(--red);
    background: var(--red-bg);
    border: 1px solid #f0c2bc;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.news-head {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: -2px;
}

.news-head h2 {
    color: var(--navy);
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.news-head p {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.3;
    margin: 0;
    text-align: right;
}

.news-card {
    min-height: 92px;
    display: grid;
    grid-template-columns: 118px 1fr;
    align-items: stretch;
    gap: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--navy);
    overflow: hidden;
}

.news-card img {
    width: 118px;
    height: 92px;
    object-fit: contain;
    background: #f3f5f7;
    display: block;
    border-right: 1px solid var(--line-soft);
}

.news-card span {
    display: flex;
    align-items: center;
    padding-right: 10px;
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
}

.news-card:hover {
    border-color: var(--petrol);
}

.news-more {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    margin-top: 2px;
}

.news-more a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 6px;
    background: var(--header-bg);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
}

.news-more a:hover {
    color: #ffffff;
    background: var(--petrol-dark);
}

.city-filter-section {
    margin-top: 24px;
}

.city-filter {
    position: relative;
    display: block;
    width: min(260px, 100%);
    margin: 0;
}

.city-filter i {
    position: absolute;
    left: 11px;
    top: 50%;
    color: var(--secondary);
    font-size: 0.78rem;
    transform: translateY(-50%);
}

.city-filter input {
    width: 100%;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 700;
    outline: 0;
    padding: 0 12px 0 32px;
}

.city-filter input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(59, 130, 146, 0.14);
}

.city-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
    list-style: none;
    padding: 0;
}

.city-filter-grid a {
    min-height: 40px;
    display: flex;
    align-items: center;
    color: var(--navy);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 8px 10px;
}

.city-filter-grid a:hover {
    color: #ffffff;
    background: var(--secondary);
    border-color: var(--secondary);
}

.news-list {
    background: #ffffff;
}

.news-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 14px;
}

.news-list-item {
    display: block;
    padding: 0;
    border: 1px solid var(--line-soft);
    border-radius: 6px;
    overflow: hidden;
    color: var(--navy);
    background: #ffffff;
}

.news-list-item:hover {
    background: #f8fafb;
}

.news-list-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #f3f5f7;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
}

.news-list-item strong {
    display: block;
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.28;
    margin: 10px 10px 5px;
}

.news-list-item small {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
    margin: 0 10px 11px;
}

.news-detail-board {
    display: grid;
    grid-template-columns: minmax(280px, 38%) 1fr;
    overflow: hidden;
}

.news-detail-media {
    background: #f3f5f7;
    border-right: 1px solid var(--line);
}

.news-detail-media img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    max-height: 460px;
    object-fit: contain;
    display: block;
}

.news-detail-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
}

.news-detail-content h1 {
    color: var(--navy);
    font-size: clamp(1.45rem, 2.4vw, 2.15rem);
    line-height: 1.12;
    font-weight: 800;
    margin: 4px 0 9px;
}

.news-detail-content time {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.news-detail-content p {
    color: #334155;
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 18px;
    max-width: 860px;
}

.news-source-btn {
    min-height: 38px;
    align-items: center;
}

.latest-news-section {
    margin-top: 18px;
}

.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.latest-news-card {
    min-height: 156px;
    display: grid;
    grid-template-columns: 190px 1fr;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    color: var(--navy);
}

.latest-news-card:hover {
    border-color: var(--petrol);
}

.latest-news-card img {
    width: 190px;
    height: 100%;
    min-height: 156px;
    object-fit: contain;
    background: #f3f5f7;
    border-right: 1px solid var(--line-soft);
}

.latest-news-card span {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px;
}

.latest-news-card strong {
    color: var(--navy);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.24;
}

.latest-news-card small {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.38;
    margin-top: 8px;
}

.breadcrumb {
    font-size: 0.86rem;
    font-weight: 700;
}

.breadcrumb a {
    color: var(--petrol-dark);
}

.city-page .breadcrumb {
    margin-bottom: 8px;
}

.city-hero {
    display: block;
    margin-bottom: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.city-hero-copy {
    padding: 20px 22px;
    background:
        linear-gradient(90deg, rgba(186, 0, 11, 0.06), rgba(255, 255, 255, 0) 48%),
        #ffffff;
}

.city-hero-copy h1 {
    color: var(--navy);
    font-size: clamp(1.75rem, 2.8vw, 2.6rem);
    line-height: 1.08;
    font-weight: 800;
    margin: 0;
}

.city-hero-copy p {
    color: #4b5f74;
    font-size: 0.92rem;
    line-height: 1.45;
    margin: 8px 0 0;
    max-width: 760px;
}

.city-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.city-hero-meta span,
.city-hero-meta a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fafb;
    color: #35485c;
    font-size: 0.76rem;
    font-weight: 800;
}

.city-hero-meta a:hover {
    color: var(--petrol-dark);
    border-color: #d9b9bd;
    background: #fffafa;
}

.city-hero-meta i,
.city-hero-meta a i {
    color: var(--petrol);
}

.city-current-board {
    overflow: hidden;
}

.city-current-board .city-price-summary {
    border-bottom: 0;
    background: #ffffff;
}

.city-current-board .city-price-card {
    min-height: 128px;
    border-color: #d5e0e7;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
}

.city-current-board .city-price-card::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--petrol);
}

.city-page .content-article {
    height: auto !important;
    min-height: 0;
}

footer {
    margin-top: auto;
    padding: 22px 0;
    color: var(--secondary-200);
    background: var(--footer-dark);
    font-size: 0.86rem;
}

footer a {
    color: var(--secondary-50);
}

.city-footer {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 14px;
    padding-bottom: 14px;
}

.city-footer h2 {
    color: var(--secondary-50);
    font-size: 0.86rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.city-footer-links {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px 12px;
}

.city-footer-links a {
    color: var(--secondary-200);
    font-size: 0.72rem;
    line-height: 1.25;
}

.city-footer-links a:hover {
    color: var(--secondary-50);
}

.footer-bottom {
    color: var(--secondary-200);
}

@media (max-width: 991px) {
    .ad-sidebar,
    .market-date {
        display: none !important;
    }

    body {
        padding-bottom: 38px;
    }

    .brand-market {
        overflow: visible;
    }

    .brand-market .container {
        min-height: 82px;
        flex-wrap: wrap;
        gap: 14px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .brand-market .navbar-collapse {
        align-items: flex-start;
        gap: 14px;
        padding-top: 12px;
        flex-basis: 100%;
        width: 100%;
    }

    .brand-market .navbar-nav {
        align-items: flex-start;
        width: 100%;
    }

    .brand-market .nav-item {
        width: 100%;
    }

    .brand-market .nav-link {
        display: flex;
        font-size: 0.92rem;
        width: 100%;
    }

    .brand-logo {
        font-size: 1.38rem;
    }

    .market-cards {
        display: none;
    }

    .mobile-market-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1050;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: center;
        gap: 1px;
        min-height: 30px;
        padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
        color: #ffffff;
        background: var(--secondary);
        box-shadow: 0 -6px 18px rgba(12, 24, 39, 0.14);
    }

    .mobile-market-bar div {
        min-width: 0;
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: 5px;
        padding: 3px 4px;
    }

    .mobile-market-bar span {
        color: rgba(255, 255, 255, 0.78);
        font-size: 0.62rem;
        font-weight: 800;
        line-height: 1;
        white-space: nowrap;
    }

    .mobile-market-bar strong {
        color: #ffffff;
        font-size: 0.76rem;
        font-weight: 800;
        line-height: 1;
        white-space: nowrap;
    }

    .board-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .board-actions {
        justify-content: flex-start;
        min-width: 0;
    }

    .producer-list {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .city-footer-links {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .city-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    :root {
        --site-header-height: 76px;
    }

    .brand-market .container {
        min-height: 76px;
    }

    .brand-logo {
        font-size: 1.22rem;
    }

    .market-card span,
    .market-card small {
        font-size: 0.72rem;
    }

    .market-card strong {
        font-size: 0.86rem;
    }

    .producer-card {
        grid-template-columns: 112px 1fr;
    }

    .producer-media img {
        height: 82px;
    }

    .producer-content {
        padding: 10px 11px;
    }

    .producer-content h2 {
        font-size: 0.86rem;
    }

    .producer-content p {
        font-size: 0.72rem;
    }

    .ad-band {
        min-height: 70px;
    }

    .main-wrapper {
        padding-top: 10px;
    }

    .board-head {
        padding: 12px;
    }

    .board-actions {
        width: 100%;
    }

    .city-hero-copy {
        padding: 18px;
    }

    .city-hero-copy p {
        font-size: 0.9rem;
    }

    .city-hero-meta span,
    .city-hero-meta a {
        flex: 1 1 100%;
        justify-content: center;
    }

    .market-chip,
    .btn-market {
        flex: 1 1 auto;
        justify-content: center;
    }

    .table-custom thead th,
    .table-custom td {
        padding: 6px 8px;
    }

    .city-price-summary {
        grid-template-columns: 1fr;
    }

    .diameter-link-cards {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .inline-link-grid {
        grid-template-columns: 1fr;
    }

    .contact-layout,
    .contact-form {
        padding: 12px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .market-board .table-responsive {
        overflow-x: visible;
    }

    .table-custom {
        width: 100%;
        table-layout: fixed;
    }

    .table-custom thead th {
        position: static;
        top: auto;
        z-index: auto;
        white-space: normal;
    }

    .table-custom thead th,
    .table-custom td {
        padding: 6px 5px;
        font-size: 0.66rem;
        line-height: 1.15;
    }

    .table-custom th:first-child,
    .table-custom td:first-child {
        width: 30%;
    }

    .table-custom th:not(:first-child),
    .table-custom td:not(:first-child) {
        width: 23.333%;
    }

    .city-link,
    .product-name {
        align-items: flex-start;
        gap: 4px;
        font-size: 0.72rem;
        line-height: 1.15;
        white-space: normal;
    }

    .city-detail {
        display: none;
    }

    .price-cell {
        align-items: flex-start;
        flex-direction: column;
        min-width: 0;
        gap: 3px;
    }

    .price-val {
        font-size: 0.72rem;
    }

    .currency {
        font-size: 0.68rem;
    }

    .trend,
    .badge-status {
        gap: 2px;
        padding: 1px 4px;
        font-size: 0.62rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        grid-template-columns: 110px 1fr;
    }

    .news-card img {
        width: 110px;
    }

    .news-list-grid {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .news-list-item {
        display: block;
    }

    .news-list-item img {
        width: 100%;
        height: auto;
    }

    .news-detail-content {
        padding: 14px;
    }

    .news-detail-board {
        grid-template-columns: 1fr;
    }

    .news-detail-media {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .news-detail-media img {
        min-height: 0;
        max-height: 320px;
    }

    .latest-news-grid {
        grid-template-columns: 1fr;
    }

    .latest-news-card {
        grid-template-columns: 120px 1fr;
        min-height: 126px;
    }

    .latest-news-card img {
        width: 120px;
        min-height: 126px;
    }

    .news-head {
        display: block;
    }

    .news-head p {
        margin-top: 4px;
        text-align: left;
    }

    .city-footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .city-filter {
        width: 100%;
    }

    .city-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .city-filter-grid a {
        min-height: 38px;
        font-size: 0.72rem;
        padding: 7px 8px;
    }
}
