/* =========================================================
   BrabRusCar — премиальный лендинг тюнинг-ателье
   ========================================================= */

:root{
  --bg:            #0c0c0e;
  --bg-alt:        #131316;
  --surface:       #1a1a1e;
  --surface-2:     #202024;
  --border:        #2b2b30;
  --border-soft:   rgba(255,255,255,.08);

  --text:          #f3f1ec;
  --text-muted:    #a6a39b;
  --text-faint:    #706d66;

  --accent:          #1f7a52;
  --accent-light:    #6fd9a8;
  --accent-dark:     #123f2b;
  --accent-ink:      #f3fbf6;

  --wa:            #3fbf60;
  --tg:            #4fa4e0;

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

  --container:     1220px;
  --header-h:      84px;
  --header-h-sm:   64px;

  --ease: cubic-bezier(.22,.68,0,1.01);
}

*, *::before, *::after{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h-sm);
}
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4{ margin: 0; font-family: 'Bodoni Moda', Georgia, 'Times New Roman', serif; font-weight: 600; letter-spacing: .01em; }
p{ margin: 0; }
button{ font-family: inherit; cursor: pointer; }
input, textarea{ font-family: inherit; }

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

.section{ padding: 108px 0; position: relative; }
.section--tight{ padding: 84px 0; }
@media (max-width: 780px){
  .section{ padding: 72px 0; }
  .section--tight{ padding: 56px 0; }
}

.section-head{
  max-width: 680px;
  margin: 0 0 56px;
}
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-light);
  font-weight: 700;
  margin-bottom: 18px;
}
.eyebrow::before{
  content: '';
  width: 28px; height: 1px;
  background: var(--accent-light);
  display: inline-block;
}
.section-head.center .eyebrow::before,
.eyebrow.center::before{ display: none; }
.eyebrow.center{ justify-content: center; }

.section-title{
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  color: var(--text);
}
.section-title em{
  font-style: italic;
  color: var(--accent-light);
}
.section-sub{
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 640px;
}
.section-head.center .section-sub{ margin-left: auto; margin-right: auto; }

.tag-divider{
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-soft) 20%, var(--border-soft) 80%, transparent);
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease;
  white-space: nowrap;
}
.btn svg{ width: 18px; height: 18px; flex-shrink: 0; }
.btn:active{ transform: scale(.96); }

.btn--accent{
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -10px rgba(31,122,82,.55);
}
.btn--accent:hover{ box-shadow: 0 14px 34px -8px rgba(31,122,82,.7); transform: translateY(-2px); }

.btn--ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--border-soft);
}
.btn--ghost:hover{ border-color: var(--accent); color: var(--accent-light); }

.btn--wa{ background: var(--wa); color: #06210e; }
.btn--wa:hover{ filter: brightness(1.08); transform: translateY(-2px); }
.btn--tg{ background: var(--tg); color: #051726; }
.btn--tg:hover{ filter: brightness(1.08); transform: translateY(-2px); }

.btn--sm{ padding: 11px 20px; font-size: 13px; }
.btn--block{ width: 100%; }

.link-arrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-light);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .03em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(111,217,168,.35);
  padding-bottom: 3px;
  transition: gap .3s var(--ease), border-color .3s ease;
}
.link-arrow:hover{ gap: 13px; border-color: var(--accent-light); }

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height .35s var(--ease), background .35s ease, box-shadow .35s ease, border-color .35s ease;
  background: linear-gradient(to bottom, rgba(10,10,11,.75), rgba(10,10,11,0));
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled{
  height: var(--header-h-sm);
  background: rgba(10,10,11,.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,.6);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand{ display: flex; align-items: center; gap: 12px; }
.brand img{
  height: 58px; width: auto;
  transition: height .35s var(--ease);
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.65));
}
.site-header.is-scrolled .brand img{ height: 44px; }
@media (max-width: 560px){
  .brand img{ height: 48px; }
}

.main-nav{ display: flex; align-items: center; gap: 34px; }
.main-nav a{
  font-size: 13.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color .25s ease;
}
.main-nav a:hover{ color: var(--text); }
.main-nav a::after{
  content:'';
  position:absolute; left:0; right:100%; bottom:0;
  height:1px; background: var(--accent);
  transition: right .3s var(--ease);
}
.main-nav a:hover::after{ right: 0; }

.header-actions{ display: flex; align-items: center; gap: 14px; }
.header-phone{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
}
.header-phone small{ font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.header-phone strong{ font-size: 16px; font-weight: 700; letter-spacing: .01em; }

.icon-btn{
  width: 42px; height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-soft);
  color: var(--text);
  transition: transform .3s var(--ease), border-color .3s ease, background .3s ease, color .3s ease;
  flex-shrink: 0;
}
.icon-btn svg{ width: 19px; height: 19px; }
.icon-btn.wa:hover{ background: var(--wa); border-color: var(--wa); color: #06210e; transform: translateY(-2px); }
.icon-btn.tg:hover{ background: var(--tg); border-color: var(--tg); color: #051726; transform: translateY(-2px); }

.burger{
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  background: transparent;
  position: relative;
  flex-shrink: 0;
}
.burger span, .burger span::before, .burger span::after{
  content:'';
  position:absolute; left: 13px; right: 13px;
  height: 1.5px; background: var(--text);
  transition: transform .3s ease, opacity .3s ease, top .3s ease;
}
.burger span{ top: 50%; transform: translateY(-50%); }
.burger span::before{ top: -7px; }
.burger span::after{ top: 7px; }
.burger.is-open span{ background: transparent; }
.burger.is-open span::before{ top: 0; transform: rotate(45deg); }
.burger.is-open span::after{ top: 0; transform: rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav{
  position: fixed; inset: 0;
  z-index: 490;
  background: #0a0a0b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
}
.mobile-nav.is-open{
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.mobile-nav a{
  font-family: 'Bodoni Moda', serif;
  font-size: 26px;
  color: var(--text);
}
.mobile-nav .header-actions{ margin-top: 20px; }

@media (max-width: 980px){
  .main-nav{ display: none; }
  .header-phone{ display: none; }
  .burger{ display: inline-flex; align-items:center; justify-content:center; }
}
@media (max-width: 560px){
  .header-actions .icon-btn{ display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-h);
  overflow: hidden;
  background: #050506;
}
.hero picture, .hero img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 68% 50%;
}
.hero::before{
  content:'';
  position:absolute; inset:0;
  background:
    linear-gradient(to top, rgba(6,6,7,.96) 2%, rgba(6,6,7,.55) 42%, rgba(6,6,7,.25) 65%, rgba(6,6,7,.55) 100%),
    linear-gradient(90deg, rgba(6,6,7,.75) 0%, rgba(6,6,7,.15) 55%, rgba(6,6,7,.35) 100%);
  z-index: 1;
}
.hero-content{
  position: relative; z-index: 2;
  padding: 64px 0 84px;
  max-width: 760px;
}
.hero-title{
  font-size: clamp(38px, 6.2vw, 74px);
  line-height: 1.06;
  color: var(--text);
  text-wrap: balance;
}
.hero-title em{ font-style: italic; color: var(--accent-light); }
.hero-lede{
  margin-top: 24px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}
.hero-ctas{
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-meta{
  margin-top: 56px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-meta div{ display:flex; flex-direction:column; gap:4px; }
.hero-meta strong{ font-family:'Bodoni Moda', serif; font-size: 26px; color: var(--accent-light); }
.hero-meta span{ font-size: 12px; letter-spacing:.08em; text-transform: uppercase; color: var(--text-faint); }

.scroll-cue{
  position: absolute; z-index: 2;
  right: 28px; bottom: 28px;
  display: flex; align-items: center; gap: 10px;
  color: var(--text-faint);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-cue span.line{
  writing-mode: horizontal-tb;
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
@media (max-width: 780px){
  .scroll-cue{ display: none; }
  .hero{ align-items: flex-end; }
  .hero-content{ padding-bottom: 56px; }
  .hero-meta{ gap: 26px; }
}

/* =========================================================
   About
   ========================================================= */
.about-grid{
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 70px;
  align-items: center;
}
.about-media{ position: relative; }
.about-media .frame{
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid var(--border-soft);
}
.about-media img{ width: 100%; height: 100%; object-fit: cover; }
.about-media .frame-inset{
  position: absolute;
  width: 46%;
  aspect-ratio: 4/3;
  right: -8%;
  bottom: -10%;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 5px solid var(--bg);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
}
.about-media .frame-inset img{ width: 100%; height: 100%; object-fit: cover; }

.about-body p{ color: var(--text-muted); font-size: 16.5px; line-height: 1.85; }
.about-body p + p{ margin-top: 18px; }
.about-perks{
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-perks li{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}
.about-perks li svg{
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
}
.about-stats{
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 30px;
}
.about-stats div strong{ display:block; font-family:'Bodoni Moda', serif; font-size: 32px; color: var(--accent-light); }
.about-stats div span{ font-size: 12.5px; color: var(--text-faint); letter-spacing:.04em; }

@media (max-width: 900px){
  .about-grid{ grid-template-columns: 1fr; gap: 56px; }
  .about-media{ max-width: 440px; margin: 0 auto 30px; }
  .about-media .frame-inset{ right: -4%; bottom: -8%; width: 48%; }
}

/* =========================================================
   Services
   ========================================================= */
.services-header{
  position: relative;
  padding: 130px 0 90px;
  overflow: hidden;
  background: #08080a;
}
.services-header img{
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05) brightness(.55);
}
.services-header::before{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(6,6,7,.86) 0%, rgba(6,6,7,.93) 72%, var(--bg) 100%);
}
.services-header .container{ position: relative; z-index: 2; }
.services-header .section-head{ margin-bottom: 0; }
.services-header .section-head > *{
  position: relative;
  text-shadow: 0 2px 18px rgba(0,0,0,.8);
}

.services-body{ padding-top: 70px; }

.svc-groups{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.svc-group{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 34px 30px 30px;
  transition: transform .35s var(--ease), border-color .35s ease, background .35s ease;
}
.svc-group:hover{ transform: translateY(-6px); border-color: rgba(31,122,82,.35); background: var(--surface-2); }
.svc-group .num{
  font-family:'Bodoni Moda', serif;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: .1em;
}
.svc-group h3{
  margin-top: 14px;
  font-size: 21px;
  color: var(--text);
}
.svc-group p{
  margin-top: 14px;
  font-size: 14.8px;
  line-height: 1.7;
  color: var(--text-muted);
}
.svc-group ul{ margin-top: 22px; display: flex; flex-direction: column; gap: 15px; }
.svc-group li{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.8px;
  color: var(--text-muted);
  line-height: 1.5;
}
.svc-group li svg{
  width: 15px; height: 15px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
}

.svc-note{
  margin-top: 40px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: var(--text-faint);
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: .02em;
}
.svc-note b{ color: var(--accent-light); font-weight: 700; }

@media (max-width: 980px){
  .svc-groups{ grid-template-columns: 1fr; }
  .services-header{ padding: 108px 0 70px; }
}

/* =========================================================
   Photo strip
   ========================================================= */
.strip{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  background: var(--bg);
}
.strip a{
  position: relative;
  display: block;
  aspect-ratio: 1/1;
  overflow: hidden;
  cursor: zoom-in;
}
.strip img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease), filter .5s ease;
  filter: grayscale(.15) brightness(.92);
}
.strip a:hover img{ transform: scale(1.08); filter: grayscale(0) brightness(1); }

@media (max-width: 780px){
  .strip{ grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   Portfolio
   ========================================================= */
.portfolio-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pf-card{
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
  border: 1px solid var(--border);
}
.pf-card img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.pf-card:hover img{ transform: scale(1.07); }
.pf-card::after{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(to top, rgba(5,5,6,.92) 0%, rgba(5,5,6,0) 45%);
  opacity: .85;
  transition: opacity .35s ease;
}
.pf-card:hover::after{ opacity: 1; }
.pf-cap{
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 22px;
}
.pf-cap .k{ display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-light); }
.pf-cap .t{ display: block; margin-top: 6px; font-family:'Bodoni Moda', serif; font-size: 19px; color: var(--text); line-height: 1.3; }
.pf-zoom{
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(10,10,11,.55);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .3s ease, transform .3s ease;
}
.pf-card:hover .pf-zoom{ opacity: 1; transform: scale(1); }
.pf-zoom svg{ width: 16px; height: 16px; color: var(--text); }

.portfolio-links{
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 980px){
  .portfolio-grid{ grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 560px){
  .portfolio-grid{ grid-template-columns: 1fr 1fr; }
  .pf-cap .t{ font-size: 16px; }
}

/* =========================================================
   Reviews (placeholder) & Shop (placeholder)
   ========================================================= */
.placeholder-card{
  border: 1px dashed var(--border);
  border-radius: var(--radius-l);
  padding: 64px 40px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(31,122,82,.06), transparent 60%), var(--surface);
}
.placeholder-card .glyph{
  width: 56px; height: 56px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.placeholder-card .glyph svg{ width: 24px; height: 24px; }
.placeholder-card h3{ font-size: 24px; color: var(--text); }
.placeholder-card p{
  margin-top: 12px;
  color: var(--text-muted);
  max-width: 460px;
  margin-left: auto; margin-right: auto;
  font-size: 15px;
  line-height: 1.7;
}

.shop-categories{
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.shop-cat{
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 26px 20px;
  text-align: left;
  background: var(--surface);
  transition: border-color .3s ease, transform .3s var(--ease);
}
.shop-cat:hover{ border-color: rgba(31,122,82,.35); transform: translateY(-4px); }
.shop-cat .glyph{
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}
.shop-cat .glyph svg{ width: 18px; height: 18px; }
.shop-cat h4{ font-size: 15.5px; font-weight: 700; color: var(--text); font-family: 'Plus Jakarta Sans', sans-serif; }
.shop-cat p{ margin-top: 8px; font-size: 13px; color: var(--text-faint); line-height: 1.5; }

@media (max-width: 780px){
  .shop-categories{ grid-template-columns: repeat(2, 1fr); }
  .placeholder-card{ padding: 48px 24px; }
}

/* =========================================================
   CTA banner
   ========================================================= */
.cta-banner{
  position: relative;
  overflow: hidden;
  padding: 130px 0;
  background: #060607;
  text-align: center;
}
.cta-banner img{
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 30%;
  filter: brightness(.62);
}
.cta-banner::before{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(6,6,7,.92), rgba(6,6,7,.86) 40%, rgba(6,6,7,.95));
}
.cta-banner .container{ position: relative; z-index: 2; }
.cta-banner .eyebrow{ justify-content: center; }
.cta-banner .eyebrow::before{ display:none; }
.cta-banner h2{
  font-size: clamp(30px, 4.6vw, 50px);
  color: var(--text);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.2;
  text-shadow: 0 2px 24px rgba(0,0,0,.9);
}
.cta-banner h2 em{ font-style: italic; color: var(--accent-light); }
.cta-banner .hero-ctas{ justify-content: center; margin-top: 64px; }

@media (max-width: 780px){
  .cta-banner{ padding: 90px 0; }
  .cta-banner .hero-ctas{ margin-top: 46px; }
}

/* =========================================================
   Contacts
   ========================================================= */
.contacts-grid{
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
}
.contact-list{ display: flex; flex-direction: column; gap: 20px; }
.contact-row{
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--surface);
  transition: border-color .3s ease, transform .3s var(--ease);
}
.contact-row:hover{ border-color: rgba(31,122,82,.35); transform: translateX(4px); }
.contact-row .ic{
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  color: var(--accent);
}
.contact-row .ic svg{ width: 20px; height: 20px; }
.contact-row .tx small{ display:block; font-size: 11.5px; letter-spacing:.08em; text-transform: uppercase; color: var(--text-faint); }
.contact-row .tx strong{ font-size: 16.5px; font-weight: 700; color: var(--text); }

.contact-form{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 40px;
}
.contact-form h3{ font-size: 22px; color: var(--text); }
.contact-form p.hint{ margin-top: 8px; color: var(--text-muted); font-size: 14px; }
.field{ margin-top: 20px; }
.field label{ display:block; font-size: 12.5px; letter-spacing:.05em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.field input, .field textarea{
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 14px 16px;
  color: var(--text);
  font-size: 15px;
  transition: border-color .3s ease, background .3s ease;
}
.field input::placeholder, .field textarea::placeholder{ color: var(--text-faint); }
.field input:focus, .field textarea:focus{ outline: none; border-color: var(--accent); background: #101013; }
.field textarea{ min-height: 100px; resize: vertical; }
.form-foot{ margin-top: 26px; display:flex; flex-direction:column; gap:14px; }
.form-consent{ font-size: 12px; color: var(--text-faint); line-height: 1.6; }
.form-note{ margin-top: 14px; font-size: 13.5px; color: var(--accent-light); display:none; }
.form-note.is-visible{ display:block; }

/* ---------- Consent checkbox ---------- */
.field .field-consent{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  text-transform: none;
  margin-bottom: 0;
}
.field .field-consent input{
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.field .field-consent span{
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: normal;
  color: var(--text-faint);
}
.field .field-consent a{ color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.field .field-consent a:hover{ color: var(--accent-light); }
.field .field-consent.has-error span{ color: #e0918f; }

/* ---------- Cookie banner ---------- */
.cookie-banner{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 700;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 26px;
  transform: translateY(120%);
  transition: transform .4s var(--ease);
}
.cookie-banner.is-visible{ transform: translateY(0); }
.cookie-banner p{
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 760px;
}
.cookie-banner a{ color: var(--accent-light); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner button{
  flex-shrink: 0;
  padding: 10px 26px;
  border: none;
  border-radius: var(--radius-s);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 700;
  transition: background .25s ease;
}
.cookie-banner button:hover{ background: var(--accent-light); color: var(--accent-dark); }
@media (max-width: 640px){
  .cookie-banner{ padding: 14px 18px; justify-content: flex-start; }
  .cookie-banner button{ width: 100%; }
}

/* ---------- Legal document pages (privacy.html / oferta.html) ---------- */
.legal-page{ padding: 148px 0 108px; }
@media (max-width: 780px){ .legal-page{ padding: 116px 0 72px; } }
.legal-doc{ max-width: 820px; margin: 0 auto; }
.legal-updated{ margin-top: 10px; color: var(--text-faint); font-size: 14px; }
.legal-doc h1{ margin-top: 14px; }
.legal-doc h2{
  margin-top: 44px;
  margin-bottom: 14px;
  font-family: 'Bodoni Moda', Georgia, serif;
  font-weight: 600;
  font-size: 21px;
  color: var(--accent-light);
}
.legal-doc p{ margin-top: 12px; color: var(--text-muted); font-size: 15.5px; line-height: 1.75; }
.legal-doc a{ color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.legal-doc a:hover{ color: var(--accent-light); }
.legal-list{ margin-top: 12px; padding-left: 22px; list-style: disc; color: var(--text-muted); font-size: 15.5px; line-height: 1.75; }
.legal-list li{ margin-top: 8px; }
.legal-list strong{ color: var(--text); }

@media (max-width: 900px){
  .contacts-grid{ grid-template-columns: 1fr; gap: 40px; }
  .contact-form{ padding: 28px; }
}

.legal-note{
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14.5px;
  letter-spacing: .02em;
  color: var(--text-muted);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  background: #08080a;
  border-top: 1px solid var(--border);
  padding: 64px 0 30px;
}
.footer-top{
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand img{ height: 52px; margin-bottom: 18px; }
.footer-brand p{ color: var(--text-faint); font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-social{ display:flex; gap: 10px; margin-top: 22px; }

.footer-col h5{
  font-size: 12px; letter-spacing:.12em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 18px; font-weight: 700;
}
.footer-col ul{ display:flex; flex-direction: column; gap: 12px; }
.footer-col a{ color: var(--text-muted); font-size: 14.5px; transition: color .25s ease; }
.footer-col a:hover{ color: var(--accent-light); }

.footer-bottom{
  border-top: 1px solid var(--border);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-faint);
  font-size: 12.5px;
}
.footer-bottom a{ text-decoration: underline; text-underline-offset: 2px; transition: color .2s ease; }
.footer-bottom a:hover{ color: var(--text-muted); }

@media (max-width: 900px){
  .footer-top{ grid-template-columns: 1fr 1fr; gap: 34px 24px; }
}
@media (max-width: 560px){
  .footer-top{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   Floating contact dock
   ========================================================= */
.dock{
  position: fixed;
  z-index: 480;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dock a{
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -10px rgba(0,0,0,.6);
  transition: transform .3s var(--ease);
}
.dock a:hover{ transform: scale(1.08); }
.dock a svg{ width: 24px; height: 24px; }
.dock .call{ background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: var(--accent-ink); }
.dock .wa{ background: var(--wa); color: #06210e; }
.dock .tg{ background: var(--tg); color: #051726; }

@media (max-width: 780px){
  .dock{
    left: 0; right: 0; bottom: 0;
    flex-direction: row;
    gap: 0;
    background: rgba(10,10,11,.92);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-soft);
    padding: 10px max(10px, env(safe-area-inset-bottom)) calc(10px + env(safe-area-inset-bottom));
  }
  .dock a{
    flex: 1;
    width: auto; height: 48px;
    border-radius: 12px;
    margin: 0 6px;
    box-shadow: none;
  }
}

/* =========================================================
   Lightbox
   ========================================================= */
.lightbox{
  position: fixed; inset: 0; z-index: 900;
  background: rgba(4,4,5,.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
  padding: 40px;
}
.lightbox.is-open{ opacity: 1; visibility: visible; transition: opacity .3s ease; }
.lightbox img{
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 40px 90px -20px rgba(0,0,0,.8);
}
.lightbox-close{
  position: absolute; top: 26px; right: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
}
.lightbox-close svg{ width: 18px; height: 18px; }
@media (max-width: 600px){ .lightbox{ padding: 16px; } }

/* =========================================================
   Reveal-on-scroll
   ========================================================= */
.reveal{ opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal{ opacity: 1; transform: none; transition: none; }
  *{ animation: none !important; transition: none !important; }
}

/* utility */
.va-hidden{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
