/* V-Service — дизайн: темна автомобільна тема, акцент червоний. */
:root {
  --bg: #0e1013;
  --bg-2: #14171c;
  --bg-3: #1b1f26;
  --line: #262b33;
  --text: #eef1f4;
  --muted: #9aa3ad;
  --accent: #e63946;
  --accent-dark: #c22833;
  --viber: #7360f2;
  --telegram: #2aabee;
  --radius: 14px;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Rubik", system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

h1, h2 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .02em; line-height: 1.15; }
h1 { font-size: clamp(1.7rem, 4.2vw, 3.1rem); font-weight: 600; }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 600; margin-bottom: .5em; }
.kicker { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: .85rem; letter-spacing: .12em; margin-bottom: .8em; }
.section { padding: 72px 0; }
.section-sub { color: var(--muted); max-width: 640px; margin-bottom: 2em; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .65em 1.3em;
  border-radius: 999px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s; white-space: nowrap; font-family: var(--font-body); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: #3a414b; color: var(--text); background: rgba(255,255,255,.03); }
.btn-outline:hover { border-color: var(--accent); }
.btn-lg { padding: .85em 1.7em; font-size: 1.05rem; }
.btn-viber { background: var(--viber); color: #fff; }
.btn-viber:hover { filter: brightness(1.1); }
.btn-telegram { background: var(--telegram); color: #fff; }
.btn-telegram:hover { filter: brightness(1.1); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(14,16,19,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 22px; height: 64px; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 20px; margin-left: 8px; }
.nav a { color: var(--muted); font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; border: 1px solid #3a414b; border-radius: 999px; overflow: hidden; }
.lang-switch button { background: none; border: none; color: var(--muted); padding: .35em .8em; font-weight: 700; font-size: .8rem; cursor: pointer; }
.lang-switch button.active { background: var(--accent); color: #fff; }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,11,14,.94) 35%, rgba(10,11,14,.55) 75%, rgba(10,11,14,.35)); }
.hero-content { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 60px; max-width: 820px; }
.hero-sub { color: #c8cfd7; font-size: 1.1rem; margin: 1.2em 0 1.8em; max-width: 620px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-names { margin-top: 3em; font-family: var(--font-head); letter-spacing: .25em; color: var(--muted); font-size: .85rem; display: flex; gap: 1em; align-items: center; }
.hero-names .legacy { color: #6c757e; }
.hero-names em { color: var(--accent); font-style: normal; }

/* ---------- Badges ---------- */
.badges { background: var(--bg-2); border-block: 1px solid var(--line); }
.badges-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 22px 20px; }
.badge-item { text-align: center; }
.badge-item strong { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--accent); }
.badge-item span { color: var(--muted); font-size: .85rem; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 18px; }
.service-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
.service-card:hover { transform: translateY(-4px); border-color: #39424e; }
.service-card img { height: 150px; width: 100%; object-fit: cover; }
.service-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { font-family: var(--font-head); font-weight: 500; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: .35em; }
.service-body p { color: var(--muted); font-size: .9rem; flex: 1; }
.service-price { margin-top: 12px; color: var(--accent); font-weight: 700; font-size: .95rem; }

/* ---------- Machine shop ---------- */
.shop-section { background: var(--bg-2); border-block: 1px solid var(--line); }
.shop-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; }
.checklist { list-style: none; margin: 1.2em 0; }
.checklist li { padding-left: 30px; position: relative; margin: .55em 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px;
  background: var(--accent); clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 16%, 84% 4%, 38% 72%); }
.shop-mail { color: var(--muted); font-size: .92rem; border-left: 3px solid var(--accent); padding-left: 14px; }
.shop-media { display: grid; gap: 16px; }
.shop-media img { border-radius: var(--radius); border: 1px solid var(--line); }

/* ---------- Prices ---------- */
.price-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; margin-top: 1.5em; }
.price-group { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.price-group h3 { font-family: var(--font-head); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem; color: var(--accent); margin-bottom: .7em; }
.price-group table { width: 100%; border-collapse: collapse; }
.price-group td { padding: .5em 0; border-bottom: 1px dashed var(--line); font-size: .93rem; vertical-align: top; }
.price-group tr:last-child td { border-bottom: none; }
.price-group td:last-child { text-align: right; white-space: nowrap; font-weight: 600; padding-left: 14px; }
.price-note { color: var(--muted); font-size: .9rem; max-width: 700px; margin-top: 1.6em; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gallery-grid a { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-grid a:hover img { transform: scale(1.05); }

/* ---------- About ---------- */
.about-section { background: var(--bg-2); border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; align-items: start; }
.about-text p { margin-bottom: 1em; color: #c8cfd7; }
.about-media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-media img { border-radius: var(--radius); border: 1px solid var(--line); }
.about-media figcaption { color: var(--muted); font-size: .8rem; margin-top: .5em; }

/* ---------- Booking ---------- */
.book-form { max-width: 720px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.book-form label, .form-full { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--muted); }
.form-full { margin-bottom: 20px; }
.book-form input, .book-form select, .book-form textarea {
  background: var(--bg-3); border: 1px solid #333a45; color: var(--text); border-radius: 10px;
  padding: .7em .9em; font-size: 1rem; font-family: var(--font-body); width: 100%; }
.book-form input:focus, .book-form select:focus, .book-form textarea:focus { outline: none; border-color: var(--accent); }
.botcheck { position: absolute; left: -9999px; opacity: 0; }
.form-error { color: var(--accent); font-size: .92rem; margin-bottom: 14px; }
.book-alt { display: inline-flex; align-items: center; gap: 12px; margin-left: 18px; color: var(--muted); font-size: .92rem; }
.sent-panel { max-width: 720px; margin-top: 28px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.sent-panel h3 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .03em; margin-bottom: .4em; color: #7ed491; }
.send-hint { color: var(--muted); font-size: .85rem; margin-top: 14px; }
.send-call { margin-top: 10px; }
.send-call a { color: var(--accent); font-weight: 700; }

/* ---------- Contacts ---------- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: stretch; }
.contact-item { margin-bottom: 20px; display: flex; flex-direction: column; gap: 2px; }
.contact-label { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-item a { color: var(--accent); }
.contact-phone { font-family: var(--font-head); font-size: 1.5rem; color: var(--text) !important; }
.contact-phone:hover { color: var(--accent) !important; }
.contact-channels { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 340px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(.2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-row { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--muted); font-size: .9rem; }
.footer-logo { height: 30px; opacity: .8; }
.footer-legal { font-size: .8rem; color: #6c757e; }

/* ---------- Floating call button ---------- */
.fab-call { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #fff; display: none; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(230,57,70,.45); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,6,8,.93); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: 82vh; border-radius: 10px; }
.lightbox p { color: var(--muted); margin-top: 12px; }
.lb-close { position: absolute; top: 14px; right: 22px; background: none; border: none; color: #fff; font-size: 2.4rem; cursor: pointer; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .book-alt { display: flex; margin: 14px 0 0; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-2);
    flex-direction: column; padding: 18px 24px; gap: 16px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .burger { display: block; }
  .btn-phone { display: none; }
  .shop-grid, .about-grid, .contacts-grid { grid-template-columns: 1fr; }
  .badges-row { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .fab-call { display: flex; }
  .hero { min-height: 78vh; }
  .btn-book { display: none; }
}
