/* ==========================================================================
   К-013 · автомойка — стили
   Токены: тёмный асфальт + тёплое золото + прохладный "водяной" бирюзовый
   ========================================================================== */

:root{
  --ink-900: #0D1013;
  --ink-800: #14181C;
  --ink-700: #1D2329;
  --ink-600: #2A3238;
  --line: #303941;

  --gold: #E8B33D;
  --gold-dark: #C8932A;
  --teal: #3FA9A0;

  --text-hi: #F2EFE9;
  --text-mid: #C3C9CE;
  --text-low: #8E979E;

  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 26px;

  --wrap: 1140px;

  --font-display: "Big Shoulders Display", sans-serif;
  --font-body: "Manrope", sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  background: var(--ink-800);
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

.sr-only{
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.skip-link{
  position: absolute; left: 12px; top: -60px;
  background: var(--gold); color: var(--ink-900);
  padding: 10px 16px; border-radius: var(--radius-s);
  font-weight: 700; z-index: 200; transition: top .2s ease;
}
.skip-link:focus{ top: 12px; }

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

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--text-hi);
}

h2{
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  line-height: 1.05;
}

p{ margin: 0; }

/* ---------------- Buttons ---------------- */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-s);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}

.btn-gold{
  background: var(--gold);
  color: var(--ink-900);
}
.btn-gold:hover{ background: var(--gold-dark); }

.btn-outline{
  background: transparent;
  color: var(--text-hi);
  border-color: var(--line);
}
.btn-outline:hover{ border-color: var(--text-mid); }

.btn-lg{ padding: 15px 28px; font-size: 1.02rem; }

/* ---------------- Header ---------------- */

.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,16,19,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-hi);
}

/* Logo lives on a light circular chip so the black line-art stays legible
   against the dark theme (the source PNG has a transparent background). */
.logo-mark{
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--text-hi);
  overflow: hidden;
}
.logo-mark img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* The header/footer mark source is a wide illustration (gun + car), so it
   needs to be cropped in tight rather than letterboxed at small sizes. */
.logo-mark-img--cover{ object-fit: cover !important; }
.logo-mark--xs{ width: 36px; height: 36px; }
.logo-mark--sm{ width: 44px; height: 44px; }
.logo-mark--lg{
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  box-shadow: 0 0 0 10px rgba(232,179,61,0.06);
}

.brand-text{ display: flex; flex-direction: column; line-height: 1; }
.brand-code{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}
.brand-sub{
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-top: 3px;
  text-transform: lowercase;
}

.main-nav{
  display: none;
  gap: 32px;
}
.main-nav a{
  color: var(--text-mid);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color .15s ease;
}
.main-nav a:hover{ color: var(--text-hi); }

.header-actions{ display: flex; align-items: center; gap: 16px; }

.phone-link{
  display: none;
  font-weight: 700;
  color: var(--text-hi);
  font-size: 0.98rem;
  white-space: nowrap;
}

.header-cta{ display: none; }

.burger{
  width: 40px; height: 40px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-s);
  cursor: pointer;
}
.burger span{
  width: 18px; height: 2px; background: var(--text-hi);
  transition: transform .2s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-nav{
  display: none;
  flex-direction: column;
  gap: 2px;
  background: var(--ink-800);
  border-bottom: 1px solid var(--line);
  padding: 8px 24px 20px;
}
.mobile-nav.is-open{ display: flex; }
.mobile-nav a{
  padding: 12px 4px;
  color: var(--text-mid);
  font-weight: 600;
  border-bottom: 1px solid var(--ink-700);
}
.mobile-nav .btn{ margin-top: 14px; align-self: flex-start; }

@media (min-width: 860px){
  .main-nav{ display: flex; }
  .phone-link{ display: inline; }
  .header-cta{ display: inline-flex; }
  .burger{ display: none; }
}

/* ---------------- Hero ---------------- */

.hero{
  position: relative;
  overflow: hidden;
  padding: 64px 0 88px;
  background:
    radial-gradient(80% 60% at 85% 0%, rgba(63,169,160,0.14), transparent 60%),
    var(--ink-800);
}

/* City skyline sits behind the hero content as a faint horizon line.
   The source art is black line-work on a white background; inverting it
   to white-on-black and blending with "screen" makes the black vanish
   into the dark theme, leaving only pale skyline lines. */
.hero-skyline{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  min-height: 110px;
  max-height: 220px;
  background-image: url('images/city-skyline.webp');
  background-repeat: no-repeat;
  background-position: center 42%;
  background-size: cover;
  filter: invert(1);
  mix-blend-mode: screen;
  opacity: 0.16;
  pointer-events: none;
}

.hero-inner{
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-visual{
  order: -1;
  display: flex;
  justify-content: center;
}

.tag{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 0 18px;
}
.tag::before{
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(63,169,160,0.18);
}

.hero-title{
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  line-height: 0.98;
  font-weight: 700;
}
.hero-title .accent{ color: var(--gold); }

.hero-text{
  display: block;
  margin-top: 22px;
  max-width: 46ch;
  color: var(--text-mid);
  font-size: 1.08rem;
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

@media (min-width: 900px){
  .hero{ padding: 96px 0 120px; }
  .hero-inner{ grid-template-columns: 1.15fr 0.85fr; }
  .hero-visual{ order: 0; }
  .logo-mark--lg{ max-width: 320px; }
}

/* ---------------- Section head ---------------- */

.section-head{
  max-width: 56ch;
  margin: 0 0 40px;
}
.section-head p{
  margin-top: 14px;
  color: var(--text-mid);
  font-size: 1.02rem;
}

/* ---------------- Services ---------------- */

.services{
  position: relative;
  padding: 84px 0 70px;
  background: var(--ink-900);
}

.service-grid{
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px){
  .service-grid{ grid-template-columns: repeat(3, 1fr); }
}

.service-card{
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 28px 26px;
}
.service-icon{
  width: 38px; height: 38px;
  color: var(--gold);
  margin-bottom: 18px;
}
.service-card h3{
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.service-card p{
  color: var(--text-mid);
  font-size: 0.96rem;
}

.perk-strip{
  display: grid;
  gap: 20px;
  margin-bottom: 44px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr;
}
@media (min-width: 720px){
  .perk-strip{ grid-template-columns: repeat(3, 1fr); }
}
.perk{ display: flex; align-items: baseline; gap: 14px; }
.perk strong{
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--teal);
  line-height: 1;
}
.perk span{ color: var(--text-mid); font-size: 0.92rem; }

/* ---------------- Price ---------------- */

.price{ padding: 84px 0; background: var(--ink-800); }

.price-tabs{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.price-tab{
  background: var(--ink-700);
  border: 1px solid var(--line);
  color: var(--text-mid);
  padding: 9px 16px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.price-tab.is-active{
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink-900);
}

.table-scroll{
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  -webkit-overflow-scrolling: touch;
}

.price-table{
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.price-table thead th{
  text-align: left;
  background: var(--ink-700);
  color: var(--text-hi);
  font-weight: 700;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.price-table thead th span{
  display: block;
  font-weight: 500;
  color: var(--text-low);
  font-size: 0.78rem;
  white-space: normal;
  margin-top: 2px;
}
.price-table tbody th{
  text-align: left;
  font-weight: 600;
  color: var(--text-hi);
  padding: 11px 16px;
  white-space: nowrap;
  border-bottom: 1px solid var(--ink-700);
}
.price-table tbody td{
  padding: 11px 16px;
  color: var(--text-mid);
  border-bottom: 1px solid var(--ink-700);
  white-space: nowrap;
}

/* Freeze the service-name column so it stays visible while the price
   columns scroll horizontally on narrow screens. */
.price-table thead th:first-child,
.price-table tbody th[scope="row"]{
  position: sticky;
  left: 0;
  z-index: 2;
}
.price-table thead th:first-child{ background: var(--ink-700); }
.price-table tbody th[scope="row"]{ background: var(--ink-800); }
@media (max-width: 899px){
  .price-table thead th:first-child,
  .price-table tbody th[scope="row"]{
    max-width: 42vw;
    white-space: normal;
    line-height: 1.25;
    box-shadow: 4px 0 8px -4px rgba(0,0,0,0.35);
  }
}

.price-table tbody tr:hover td,
.price-table tbody tr:hover th{
  background: var(--ink-700);
}
.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td{ border-bottom: none; }

.price-note-row td{
  color: var(--text-low);
  font-style: italic;
}

.price-table td.is-highlight,
.price-table th.is-highlight{
  background: rgba(232,179,61,0.09);
}

.price-hint{
  margin-top: 12px;
  color: var(--text-low);
  font-size: 0.84rem;
}
@media (min-width: 900px){
  .price-hint{ display: none; }
}

/* ---------------- About ---------------- */

.about{ padding: 84px 0; background: var(--ink-900); }
.about-copy p{
  margin-top: 18px;
  color: var(--text-mid);
  font-size: 1.02rem;
  max-width: 62ch;
}
.about-facts{
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.about-facts li{
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 20px 22px;
}
.about-facts span{ color: var(--text-low); font-size: 0.85rem; }
.about-facts strong{ font-weight: 700; font-size: 1.1rem; }
.about-facts a{ color: var(--gold); }

@media (min-width: 640px){
  .about-facts{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px){
  .about-facts{ grid-template-columns: repeat(4, 1fr); }
}

/* ---------------- Contacts ---------------- */

.contacts{ padding: 84px 0 96px; background: var(--ink-800); }

.contact-grid{
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px){
  .contact-grid{ grid-template-columns: repeat(3, 1fr); }
}

.contact-card{
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 24px;
  transition: border-color .15s ease;
}
a.contact-card:hover{ border-color: var(--gold); }
.contact-label{ color: var(--text-low); font-size: 0.85rem; }
.contact-value{ font-size: 1.15rem; font-weight: 700; }

.contact-note{
  margin-top: 28px;
  color: var(--text-low);
  font-size: 0.86rem;
  max-width: 68ch;
  border-left: 2px solid var(--line);
  padding-left: 16px;
}

/* ---------------- Footer ---------------- */

.site-footer{
  background: var(--ink-900);
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
.footer-inner{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}
.footer-inner .brand{ margin-right: auto; }
.footer-address{ color: var(--text-low); font-size: 0.88rem; width: 100%; }
@media (min-width: 640px){
  .footer-address{ width: auto; }
}
