/*
  Макет 4: эмалевая вывеска. Тёмно-зелёная эмаль, кремовая надпись в двойной рамке, заклёпки по углам,
  красный только для линии маршрута, табличек-акцентов и кнопки. Русо-шрифт для вывесочных надписей.
  Держим: плоские цвета, рамки вместо теней, светлые «бумажные» секции чередуются с зелёными «досками».
*/
:root {
  --board: #0f4a3f;
  --board-deep: #0a352d;
  --cream: #f0e8cf;
  --paper: #ece2c4;
  --ink: #10241f;
  --muted: #4f5d55;
  --red: #c8321f;
  --red-dark: #a3260f;
  --head: "Russo One", "Arial Black", Impact, sans-serif;
  --body: "Ubuntu", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wrap: 1120px;
}
@media (min-width: 1500px) { html { font-size: 112.5%; } :root { --wrap: 1280px; } }
@media (min-width: 1900px) { html { font-size: 125%; } :root { --wrap: 1440px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--body); color: var(--cream); background: var(--board); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 400; line-height: 1.12; letter-spacing: 0.02em; }
h1 { font-size: clamp(1.8rem, 3.1vw, 2.9rem); text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); text-transform: uppercase; }
h3 { font-size: 1.15rem; }
p, dl, dd, dt, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(800px, 100% - 40px); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
.sec--cream :focus-visible { outline-color: var(--board); }

.btn { display: inline-block; padding: 16px 30px; border: 0; border-radius: 3px; background: var(--red); color: #fff; font: 700 1.05rem var(--body); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--red-dark); }

/* Табличка: двойная рамка и четыре заклёпки */
.plate { position: relative; padding: 44px; background: var(--board); color: var(--cream); box-shadow: inset 0 0 0 8px var(--board), inset 0 0 0 10px var(--cream); }
.plate::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 24px 24px, var(--cream) 0 3.5px, transparent 4px),
    radial-gradient(circle at calc(100% - 24px) 24px, var(--cream) 0 3.5px, transparent 4px),
    radial-gradient(circle at 24px calc(100% - 24px), var(--cream) 0 3.5px, transparent 4px),
    radial-gradient(circle at calc(100% - 24px) calc(100% - 24px), var(--cream) 0 3.5px, transparent 4px); }
.plate--red { background: var(--red); box-shadow: inset 0 0 0 6px var(--red), inset 0 0 0 8px var(--cream); }
.sec--cream .plate { background: var(--board); }

/* Шапка */
.top { position: sticky; top: 0; z-index: 40; background: var(--board-deep); border-bottom: 3px solid var(--red); }
.top__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; }
.top__name { text-decoration: none; font-weight: 500; }
.top__short { display: none; }
.top__phone { font-family: var(--head); letter-spacing: 0.03em; text-decoration: none; white-space: nowrap; }
.top__phone:hover, .top__name:hover { color: #fff; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 72px; align-items: center; }
.hero__lead { margin: 20px 0 22px; font-size: 1.1rem; max-width: 30em; }
.hero__phone { display: inline-block; font-family: var(--head); font-size: clamp(1.6rem, 2.7vw, 2.4rem); text-decoration: none; letter-spacing: 0.02em; border-bottom: 4px solid var(--red); line-height: 1.25; }
.hero__phone:hover { color: #fff; }
.hero__facts { margin-top: 22px; }
.hero__facts li { padding: 8px 0 8px 22px; border-top: 1px solid rgba(240, 232, 207, 0.35); position: relative; }
.hero__facts li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 9px; height: 9px; background: var(--red); }
.hero__alt { margin-top: 14px; font-size: 0.93rem; }
.hero__photo { position: relative; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; object-position: 35% 40%; border: 8px solid var(--cream); }
.door { position: absolute; left: -36px; bottom: -34px; width: 250px; padding: 30px 26px; display: flex; flex-direction: column; gap: 2px; text-align: center; }
.door::before { background: none; }
.door b { font-family: var(--head); font-weight: 400; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.door span { font-size: 0.95rem; line-height: 1.4; }

/* Секции */
.sec { padding: 88px 0; }
.sec--cream { background: var(--paper); color: var(--ink); }
.sec__title { margin-bottom: 14px; }
.sec__title--ink { color: var(--ink); margin-bottom: 26px; }
.sec__sub { margin-bottom: 36px; max-width: 32em; opacity: 0.85; }

/* Симптомы на «доске» */
.board__head { margin-bottom: 26px; }
.board__head p { margin-top: 10px; max-width: 34em; opacity: 0.9; }
.sym { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.sym__row { padding: 16px 0; border-top: 1px solid rgba(240, 232, 207, 0.4); }
.sym__row h3 { margin-bottom: 6px; font-size: 1.08rem; }
.sym__row p { font-size: 0.98rem; opacity: 0.88; }

/* Прейскурант */
.tariff { color: var(--ink); }
.tariff__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 48px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 32px; border-bottom: 4px solid var(--board); }
.tariff__head p { max-width: 32em; color: var(--muted); }
.tariff__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: start; }
.pl + .pl { margin-top: 40px; }
.pl h3 { color: var(--board); }
.pl__note { color: var(--muted); font-size: 0.93rem; margin: 3px 0 8px; }
.pl__row { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; border-top: 1px solid rgba(16, 36, 31, 0.35); }
.pl__work { font-weight: 500; }
.pl__work small { display: block; color: var(--muted); font-size: 0.85rem; font-weight: 400; }
.pl__dots { flex: 1; min-width: 14px; border-bottom: 2px dotted rgba(16, 36, 31, 0.5); transform: translateY(-5px); }
.pl__price { font-family: var(--head); font-size: 0.98rem; white-space: nowrap; }
.terms { position: sticky; top: 84px; padding: 40px 38px; }
.terms h3 { margin-bottom: 8px; }
.term { display: flex; flex-direction: column; padding: 14px 0; border-top: 1px solid rgba(240, 232, 207, 0.4); }
.terms h3 + .term { border-top: 0; }
.term__k { font-size: 0.88rem; opacity: 0.85; }
.term b { font-family: var(--head); font-weight: 400; font-size: 1.6rem; line-height: 1.25; }
.term__t { font-size: 0.92rem; opacity: 0.88; }
.terms__fine { margin-top: 10px; padding-top: 14px; border-top: 1px solid rgba(240, 232, 207, 0.4); font-size: 0.85rem; opacity: 0.85; }

/* Схема маршрута */
.line { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 40px; }
.line::before { content: ""; position: absolute; top: 14px; left: 19px; right: calc(25% - 19px); height: 10px; background: var(--red); }
.stn { position: relative; padding: 56px 28px 0 0; }
.stn__dot { position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--cream); border: 8px solid var(--red); }
.stn:last-child .stn__dot { width: 46px; height: 46px; top: -4px; left: -4px; border-width: 10px; }
.stn b { display: block; font-family: var(--head); font-weight: 400; font-size: 1.2rem; margin-bottom: 6px; }
.stn p { font-size: 0.97rem; opacity: 0.9; }
.line__end { margin-top: 40px; padding: 16px 22px; border: 2px dashed rgba(240, 232, 207, 0.6); max-width: 38em; }

/* Фото-полоса */
.band { margin: 0; background: var(--board-deep); }
.band img { width: 100%; height: clamp(220px, 22vw, 360px); object-fit: cover; object-position: 50% 30%; border-top: 8px solid var(--cream); border-bottom: 8px solid var(--cream); }
.band figcaption { padding: 14px 0 22px; font-size: 0.9rem; opacity: 0.85; }

/* Про меня */
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 20%; border: 8px solid var(--board); }
.about__text h2 { margin-bottom: 22px; color: var(--board); }
.about__text p + p { margin-top: 14px; }
.about__text p { max-width: 34em; }
.about__sign { margin-top: 24px !important; font-family: var(--head); color: var(--board); }

/* Галерея */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px 28px; }
.shot--big { grid-column: span 6; }
.shot--small { grid-column: span 4; }
.shot img { width: 100%; object-fit: cover; border: 6px solid var(--cream); }
.shot--big img { aspect-ratio: 3 / 2; }
.shot--small img { aspect-ratio: 4 / 3; }
.shot figcaption { margin-top: 10px; max-width: 34em; }
.shot figcaption b { display: block; font-family: var(--head); font-weight: 400; font-size: 1.05rem; margin-bottom: 2px; }
.shot figcaption span { font-size: 0.95rem; opacity: 0.88; }

/* Объявление: гарантия, цена, запчасти */
.notice { display: grid; grid-template-columns: repeat(3, 1fr); padding: 44px 20px; }
.notice > div { padding: 0 28px; border-left: 1px solid rgba(240, 232, 207, 0.4); }
.notice > div:first-child { border-left: 0; }
.notice h3 { margin-bottom: 8px; }
.notice p { font-size: 0.98rem; opacity: 0.9; }

/* Районы */
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.areas__lead { margin-top: 16px; font-size: 1.25rem; line-height: 1.5; font-weight: 500; }
.areas h3 { margin-bottom: 10px; }
.brands { opacity: 0.88; }

/* FAQ */
.faq { border-bottom: 2px solid var(--board); }
.qa { border-top: 2px solid var(--board); color: var(--ink); }
.qa summary { cursor: pointer; padding: 18px 44px 18px 0; font-weight: 700; font-size: 1.05rem; list-style: none; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font: 400 1.7rem var(--head); color: var(--red); }
.qa[open] summary::after { content: "–"; }
.qa p { padding: 0 0 20px; color: var(--muted); max-width: 40em; }

/* Заявка */
.request { background: var(--board-deep); border-top: 3px solid var(--red); }
.request__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.request__phone { display: inline-block; margin: 20px 0 14px; font-family: var(--head); font-size: clamp(1.8rem, 3.6vw, 2.9rem); text-decoration: none; border-bottom: 4px solid var(--red); line-height: 1.25; }
.request__phone:hover { color: #fff; }
.request__text > p { max-width: 26em; opacity: 0.9; }
.messengers { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.msg { font-weight: 700; }
.form { display: grid; gap: 22px; }
.form label { display: grid; gap: 4px; font-size: 0.9rem; opacity: 0.92; }
.form input, .form textarea { font: 400 1.1rem var(--body); color: var(--cream); background: transparent; border: 0; border-bottom: 2px solid var(--cream); border-radius: 0; padding: 8px 0; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: rgba(240, 232, 207, 0.5); }
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--red); }
.form input.is-error { border-bottom-color: #ff7a66; }
.form .btn { justify-self: start; }
.form__note { font-size: 0.8rem; opacity: 0.75; max-width: 30em; }
.form__ok { font-weight: 700; color: #b6e8b0; }
.form__ok.is-error { color: #ff8a7a; }

/* Подвал */
.foot { background: var(--board-deep); padding: 44px 0 40px; border-top: 1px solid rgba(240, 232, 207, 0.25); }
.foot__row { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; }
.foot__who { display: flex; flex-direction: column; gap: 3px; }
.foot__who b { font-family: var(--head); font-weight: 400; font-size: 1.2rem; }
.foot__who span { font-size: 0.95rem; opacity: 0.85; }
.foot__phone { font-family: var(--head); font-size: clamp(1.3rem, 2.2vw, 1.8rem); text-decoration: none; white-space: nowrap; border-bottom: 3px solid var(--red); }
.foot__fine { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(240, 232, 207, 0.25); font-size: 0.85rem; opacity: 0.7; }

/* Модальное окно */
.modal { width: min(440px, calc(100% - 32px)); padding: 36px 32px 26px; border: 0; border-radius: 0; background: var(--board); color: var(--cream); box-shadow: inset 0 0 0 6px var(--board), inset 0 0 0 8px var(--cream); }
.modal::backdrop { background: rgba(6, 28, 23, 0.75); }
.modal[open] { animation: modal-in .18s ease-out; }
.modal h2 { font-size: 1.35rem; padding-right: 28px; margin-bottom: 20px; }
.modal__x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--cream); font: 400 1.7rem/1 var(--body); cursor: pointer; }
.modal__x:hover { color: #fff; }
.modal .form .btn { justify-self: stretch; width: 100%; text-align: center; }
.modal__alt { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(240, 232, 207, 0.4); font-size: 0.93rem; }
.modal__alt a { font-family: var(--head); white-space: nowrap; }
body.modal-open { overflow: hidden; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.callbar { display: none; }

@media (max-width: 980px) {
  .hero__grid, .tariff__body, .about, .areas, .request__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-bottom: 72px; }
  .door { left: 12px; bottom: -34px; }
  .terms { position: static; }
  .sym { grid-template-columns: 1fr; }
  .notice { grid-template-columns: 1fr; padding: 40px 28px; }
  .notice > div { padding: 18px 0; border-left: 0; border-top: 1px solid rgba(240, 232, 207, 0.4); }
  .notice > div:first-child { border-top: 0; padding-top: 0; }
  .line { grid-template-columns: 1fr; margin-top: 28px; }
  .line::before { top: 19px; bottom: 27px; left: 14px; right: auto; width: 10px; height: auto; }
  .stn { padding: 0 0 30px 64px; min-height: 60px; }
  .stn:last-child { padding-bottom: 0; min-height: 46px; }
  .about__photo { max-width: 380px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .sec { padding: 56px 0; }
  .plate { padding: 36px 26px; }
  .hero { padding: 36px 0 60px; }
  .top__in { min-height: 60px; }
  .top__full { display: none; }
  .top__short { display: inline; font-size: 1.02rem; }
  .top__phone { font-size: 0.95rem; }
  .door { position: relative; left: auto; bottom: auto; width: auto; margin-top: -30px; margin-left: 16px; margin-right: 16px; }
  .gallery { grid-template-columns: 1fr; gap: 30px; }
  .shot--big, .shot--small { grid-column: auto; }
  .btn { width: 100%; text-align: center; }
  .form .btn { justify-self: stretch; }
  .foot { padding-bottom: 100px; }
  .foot__row { flex-direction: column; align-items: flex-start; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; border-top: 3px solid var(--red); padding-bottom: env(safe-area-inset-bottom); background: var(--board-deep); }
  .callbar a { text-align: center; padding: 15px 8px; font-weight: 700; text-decoration: none; }
  .callbar__call { background: var(--red); color: #fff; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .modal[open] { animation: none; } }
