/* Светлая тема irek-chip: типографика и схемы, без крупных фото. */

:root {
    --bg: #f7f6f2;
    --paper: #fffcf7;
    --ink: #16181a;
    --muted: #5e656c;
    --line: rgba(22, 24, 26, 0.12);
    --lime: #d2f25c;
    --lime-deep: #b6d63a;
    --sans: Manrope, "Segoe UI", sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, monospace;
    --wrap: min(1120px, calc(100% - 32px));
    --header: 68px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body {
    margin: 0;
    overflow-x: clip;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: var(--bg) !important;
    background-image: none !important;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.55;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
::selection { background: var(--lime); color: var(--ink); }

.wrap { width: var(--wrap); margin: 0 auto; }

.mono, .kicker {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Шапка */

.header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(247, 246, 242, 0.94);
    border-bottom: 1px solid var(--line);
}

#logo { padding: 0; }

.nav-check {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.header-inner {
    width: var(--wrap);
    min-height: var(--header);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -0.04em;
    font-size: 18px;
    text-decoration: none;
    white-space: nowrap;
}

.logo-mark {
    display: block;
    width: 36px;
    height: 36px;
    flex: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.site-nav a,
#home, #services, #choice, #contacts, #feedback, #faq {
    color: var(--ink) !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 8px;
    border-radius: 8px;
}

.site-nav a:hover,
.site-nav a:focus { background: rgba(22, 24, 26, 0.05); }

.site-nav a.is-current {
    box-shadow: none;
    background: rgba(210, 242, 92, 0.7);
}

.site-drop { position: relative; }

.site-drop__menu {
    display: none;
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    min-width: 190px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    box-shadow: 0 16px 40px rgba(22, 24, 26, 0.08);
}

.site-drop:hover .site-drop__menu,
.site-drop:focus-within .site-drop__menu { display: block; }

@media (min-width: 981px) {
    .site-drop > a::after {
        content: "";
        display: inline-block;
        margin-left: 6px;
        border-right: 4px solid transparent;
        border-left: 4px solid transparent;
        border-top: 5px solid currentColor;
        vertical-align: 2px;
    }
}

.site-drop__menu a { display: block; padding: 10px 12px; }

#mainmenu li { display: block; background: transparent; }
#mainmenu li:hover { background: transparent; }

.nav-search {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 0 14px;
    padding-left: 14px;
    border-left: 1px solid var(--line);
}

.nav-search input {
    width: 148px;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
}

.nav-search input:focus { outline: none; border-bottom-color: var(--ink); }

.nav-search button,
#sb {
    border: 0;
    background: transparent;
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
    padding: 8px;
}

#phone {
    display: inline;
    padding: 0 !important;
    color: var(--ink) !important;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

#phone .glyphicon,
.top-phone__city { display: none; }

#phone span { margin: 0; font-size: inherit; }

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 12px 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 6px 0;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.header:has(.nav-check:checked) .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.header:has(.nav-check:checked) .menu-toggle span:nth-child(2) { transform: translateY(-8px) rotate(-45deg); }

/* Главная */

.hero {
    position: relative;
    padding: 48px 0 28px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(22, 24, 26, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 24, 26, 0.045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(#000 0%, transparent 78%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
    align-items: center;
}

.kicker { color: #4d5a22; margin: 0 0 16px; }

.hero h1, .page-head h1 {
    margin: 0;
    font-size: clamp(40px, 5vw, 68px);
    line-height: 0.96;
    letter-spacing: -0.05em;
    font-weight: 800;
}

.lead {
    max-width: 42ch;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.hero-actions, .page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.btn, .btn-success, .btn-danger, .btn-lime, .btn-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--lime);
    color: var(--ink) !important;
    font-weight: 700;
    text-decoration: none;
    box-shadow: none;
}

.btn-success:hover, .btn-danger:hover, .btn-lime:hover, .btn:hover {
    background: var(--lime-deep);
    color: var(--ink) !important;
    border-color: transparent;
}

.btn-line {
    background: transparent;
    border-color: var(--line);
}

.btn-line:hover { border-color: var(--ink); background: transparent; }

.facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
    max-width: 520px;
}

.facts li { border-top: 1px solid var(--line); padding-top: 12px; }
.facts strong { display: block; font-size: 15px; }
.facts span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }

.stage {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 12px;
}

.stage svg, .scheme svg { display: block; width: 100%; height: auto; }

.section { padding: 72px 0; }
.section-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 8px;
}
.section-head h2, .page-head h1 {
    margin: 8px 0 0;
}
.section-head h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1;
    letter-spacing: -0.045em;
    font-weight: 800;
}
.section-head p { max-width: 36ch; margin: 0; color: var(--muted); }

.svc {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 16px;
    align-items: start;
    margin: 0 -12px;
    padding: 26px 12px;
    border-radius: 18px;
    text-decoration: none;
    position: relative;
}
.svc::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    top: 0;
    height: 1px;
    background: var(--line);
}
.svc:last-child::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 1px;
    background: var(--line);
}
.svc .num { font-family: var(--mono); color: var(--muted); padding-top: 8px; }
.svc h3 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.04em; }
.svc p { margin: 0; max-width: 68ch; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.chips li {
    font-size: 13px;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
}
.go {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-top: 10px;
}
.svc,
a.svc:hover,
a.svc:focus {
    text-decoration: none;
}
.svc:hover,
.svc:focus {
    background: #efeae2;
    color: var(--ink);
}
.svc:hover p,
.svc:hover .num { color: var(--muted); }
.svc:hover .chips li { border-color: var(--line); background: transparent; }
.svc:hover .go { color: var(--ink); }

.steps, .notes {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}
.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.notes { grid-template-columns: 1.1fr 0.9fr; }
.steps article, .notes article {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
}
.steps h3, .notes h3 {
    margin: 12px 0 8px;
    font-size: 22px;
    letter-spacing: -0.03em;
}
.steps .num {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--muted);
}
.steps p, .notes p { margin: 0; color: var(--muted); }
.notes p + p { margin-top: 12px; }

.brand-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.brand-row a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 64px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    text-decoration: none;
}
.brand-row a:hover { border-color: var(--ink); }
.brand-row img { width: 48px; height: 40px; object-fit: contain; }

.reading { max-width: 68ch; }
.reading p { color: #2c3136; }
.reading a { text-decoration: underline; text-underline-offset: 3px; }

.page { padding: 36px 0 20px; }
.page-head { margin-bottom: 28px; }
.split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 18px;
}
.scheme {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 16px;
}
.points { list-style: none; margin: 0; padding: 0; }
.points li {
    padding: 14px 0;
    border-top: 1px solid var(--line);
    font-weight: 700;
    letter-spacing: -0.02em;
}
.points li span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-weight: 500;
    font-size: 14px;
}
.note {
    margin-top: 28px;
    padding-top: 8px;
}
.note h2 {
    margin: 28px 0 8px;
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.04em;
    font-weight: 800;
}

/* Внутренние страницы на старой разметке */

#content > .container-fluid { padding-top: 20px; padding-bottom: 28px; }
.container-fluid > .row { margin-left: 0; margin-right: 0; }

.main, .main1, .prose {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0;
}

.main h2,
.main h3,
.main1 h3,
.main_chip h3,
.main_diag h3,
.main_faq h3,
.main_contacts h3,
.main_choice h3,
.main_brand h3,
.main_feed h3 {
    font-family: var(--sans);
    color: var(--ink);
    text-align: left;
    text-shadow: none;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.main h2 { margin: 8px 0 12px; padding: 12px 8px 0; font-size: clamp(32px, 4vw, 48px); }
.main h3, .main1 h3, .main_faq h3, .main_choice h3, .main_contacts h3, .main_feed h3 {
    padding: 18px 8px 4px;
    font-size: 22px;
}
.main p, .main1 p, .main_faq p, .main_feed p, .toyota_par p, .audi_par p, .main_contacts p {
    padding-right: 8px;
    padding-left: 8px;
    text-indent: 0;
    color: #2c3136;
    line-height: 1.65;
}
.main_contacts h3, .main_contacts p { text-align: left; }
.main a { color: var(--ink); }

.toyota, .audi, .diag2, .diag3, .popular {
    background-image: none !important;
    height: auto !important;
    min-height: 0 !important;
}

.sub_main_chip, .sub_main_chip0, .sub_main_diag { margin: 12px 0; border: 0; box-shadow: none; background: transparent; }
.sub_main_chip ul { padding: 0 8px; }
.sub_main_chip ul li { font-family: var(--sans); font-size: 16px; font-weight: 600; }
.dot { color: #4d5a22; }

.main_choice .col-lg-10 { display: flex; flex-wrap: wrap; gap: 10px; }
.main_choice h2, .main_choice h3, .main_choice hr { flex: 0 0 100%; width: 100%; }
.but_choice {
    width: calc(33.333% - 10px);
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
}
.but_choice:hover { box-shadow: none; border-color: var(--ink); transform: none; }
.but_choice a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 8px 12px;
    color: var(--ink);
    font-size: 16px;
    text-shadow: none;
    text-decoration: none;
}
.but_choice img { width: 40px; height: 40px; object-fit: contain; }

#brand_cover {
    margin: 12px 0 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: none;
    background: var(--paper);
}
#brand_cover img { width: 120px; height: auto; }
.br_img { height: auto; line-height: normal; }

.table-wrap, .main_brand { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.main_brand table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
}
.main_brand table th {
    padding: 12px 14px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
}
.main_brand table td { padding: 12px 14px; border: 0; border-top: 1px solid var(--line); }
.main_brand table tr:nth-child(2n+1),
.main_brand table tr:nth-child(even) { background: transparent; }

#map {
    width: 100%;
    height: 360px;
    margin: 8px 0 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
}

#contactform .input-group {
    display: block;
    width: 100%;
    max-width: 520px;
    margin: 0 0 4px;
    padding: 0;
    border: 0;
}
#contactform .input-group-addon { display: none; }
#contactform .form-control {
    width: 100%;
    height: auto;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 12px 0;
}
#contactform .form-control:focus { border-bottom-color: var(--ink); box-shadow: none; }
#contactform .note, .form-note { color: var(--muted); font-family: var(--sans); }
.btn_cat, .btn_cat1 { float: none; display: inline-flex; margin: 16px 8px 0; }

.footer {
    margin-top: 12px;
    padding: 28px 0 32px;
    background: transparent;
    color: var(--muted);
    border-top: 1px solid var(--line);
}
.foot-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    width: var(--wrap);
    margin: 0 auto;
}
.footer h2 {
    margin: 0 0 10px;
    padding: 0;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
}
.footer ul, .left_foot ul, .right_foot ul { margin: 0; padding: 0; list-style: none; min-width: 0; }
.footer li { margin: 6px 0; }
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.right_foot, .right_foot h2, .right_foot ul { text-align: left; padding: 0; }
.foot-bottom { width: var(--wrap); margin: 18px auto 0; }
.footer hr { border: 0; border-top: 1px solid var(--line); }
.copyright { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.callbar { display: none; }

#up {
    display: none;
    position: fixed;
    right: 16px;
    bottom: 24px;
    z-index: 30;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--bg);
    font-size: 16px;
    line-height: 42px;
    text-align: center;
    text-decoration: none;
}
#up:hover { color: var(--bg); background: #000; }

@media (max-width: 980px) {
    .hero-grid, .split, .foot-grid, .steps, .notes { grid-template-columns: 1fr; }
    .nav-search { margin-left: 0; padding-left: 0; border-left: 0; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .header-phone, #phone { display: none !important; }
    .menu-toggle { display: block; }
    .site-nav { display: none; }
    .nav-check:checked ~ .site-nav {
        display: flex;
        position: fixed;
        z-index: 45;
        top: var(--header);
        right: 0;
        bottom: 0;
        left: 0;
        margin: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 20px 22px 88px;
        background: var(--bg);
        overflow: auto;
    }
    .nav-check:checked ~ .site-nav a,
    .nav-check:checked ~ .site-nav #home,
    .nav-check:checked ~ .site-nav #services,
    .nav-check:checked ~ .site-nav #choice,
    .nav-check:checked ~ .site-nav #contacts,
    .nav-check:checked ~ .site-nav #feedback,
    .nav-check:checked ~ .site-nav #faq {
        font-size: 30px;
        line-height: 1.15;
        letter-spacing: -0.04em;
        padding: 6px 0;
    }
    .site-drop__menu {
        display: block;
        position: static;
        min-width: 0;
        padding: 0 0 8px 2px;
        border: 0;
        box-shadow: none;
        background: transparent;
    }
    .site-drop__menu a { font-size: 18px !important; color: var(--muted) !important; }
    .nav-search { width: 100%; margin: 12px 0 0; }
    .nav-search input { flex: 1; width: auto; font-size: 16px; }
    .facts { grid-template-columns: 1fr; max-width: none; }
    .but_choice { width: calc(50% - 10px); }
}

@media (max-width: 640px) {
    .svc { grid-template-columns: 40px 1fr; }
    .go { display: none; }
    .section { padding: 52px 0; }
    .hero h1 { font-size: 40px; }
    .but_choice { width: 100%; }
    #map { height: 260px; }
    .hero-actions .btn, .page-actions .btn, .btn_cat, .btn_cat1 { width: 100%; }
    #up { bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
