:root {
  --y: #FFE23A;      /* galbenul din logo */
  --k: #16181B;      /* fondul negru */
  --k2: #1E2125;     /* planul diagonal */
  --k3: #2E3238;     /* linii fine pe negru */
  --w: #FFFFFF;
  --mut: #A2A8B0;    /* text secundar pe negru */
  --soft: #D5D8DC;   /* text de corp pe negru */
  --ink: #16181B;    /* text pe alb */
  --ink2: #454B53;   /* text secundar pe alb */
  --paper2: #F1F2F3; /* casete pe alb */
}

/* Tanis Protection — site. Culorile (:root) vin din print/brand.css: build-ul le pune în fața
   acestui fișier. Aceleași elemente ca pe mapă și pe coală: negru cu galben doar ca accent, linia
   galbenă în diagonală, etichete Barlow Condensed rărite, pătrățele galbene numerotate. */

@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('/fonts/Barlow-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url('/fonts/Barlow-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('/fonts/Barlow-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-display: swap; src: url('/fonts/Barlow-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url('/fonts/BarlowCondensed-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('/fonts/BarlowCondensed-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url('/fonts/BarlowCondensed-ExtraBold.woff2') format('woff2'); }

:root { --wrap: 1200px; --gut: clamp(20px, 5vw, 48px); --edge: clamp(28px, 5vw, 72px); --line: #D9DCDF; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Barlow', system-ui, sans-serif; font-size: 17px; line-height: 1.6;
       color: var(--ink); background: var(--w); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--y); outline-offset: 3px; }
/* pe alb, galbenul abia se vede (contrast 1,3:1): acolo conturul e negru */
.sec :focus-visible { outline-color: var(--k); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 20; background: var(--y); color: var(--k); padding: 10px 14px; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }

/* tipografie */
h1, h2, h3, .phone { font-family: 'Barlow Condensed', sans-serif; }
h1 { font-weight: 800; font-size: clamp(40px, 6.2vw, 76px); line-height: 1; }
h2 { font-weight: 700; font-size: clamp(32px, 4.2vw, 48px); line-height: 1.05; }
h3 { font-weight: 700; font-size: 23px; line-height: 1.15; }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; }
.kicker { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: .24em;
          text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 9px; height: 9px; background: var(--y); flex: none; }
.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7;
        stroke-linecap: round; stroke-linejoin: round; }
.more { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: .14em;
        text-transform: uppercase; text-decoration: none; display: inline-flex; gap: 8px; align-items: center;
        border-bottom: 2px solid var(--y); padding-bottom: 4px; transition: gap .15s; }
.more:hover { gap: 12px; }
.phone { font-weight: 800; font-size: clamp(40px, 5vw, 60px); line-height: 1; text-decoration: none; }
.phone:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* bara de sus: logo, meniu, telefon */
.masthead { background: var(--k); color: var(--w); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.bar .logo { width: 210px; flex: none; }
.bar .logo svg { display: block; width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 16px; color: var(--soft); padding: 6px 0;
         border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--w); }
.nav a[aria-current="page"] { color: var(--w); border-bottom-color: var(--y); }
.nav .call { display: inline-flex; align-items: center; gap: 8px; background: var(--y); color: var(--k);
             font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 18px; padding: 9px 16px;
             border: 0; border-radius: 2px; }
.nav .call:hover { color: var(--k); background: var(--w); }
.menu-btn { display: none; }

/* zona închisă de sus a fiecărei pagini, cu marginea în diagonală și linia galbenă */
.top { position: relative; background: var(--k); color: var(--w); padding-bottom: var(--edge); }
.edge { position: absolute; left: 0; bottom: -1px; width: 100%; height: calc(var(--edge) + 1px); display: block; }
.top .kicker { color: var(--y); }
.top .lead { color: var(--soft); }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center;
        padding-top: 32px; padding-bottom: 64px; }
.hero h1 { margin-top: 22px; }
.hero .lead { margin-top: 24px; max-width: 34em; }
.reach { margin-top: 36px; display: grid; gap: 6px; justify-items: start; }
.reach .who { font-size: 15px; color: var(--mut); }
.reach .phone { color: var(--y); }
.reach .alt { margin-top: 12px; font-size: 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.reach .alt a { color: var(--w); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.reach .alt a:hover { text-decoration: underline; }
.reach .alt .icon { color: var(--y); }

.pagehead { padding-top: 40px; padding-bottom: 64px; }
.pagehead h1 { margin-top: 20px; font-size: clamp(40px, 5.4vw, 64px); max-width: 16em; }
.pagehead .lead { margin-top: 22px; max-width: 40em; }

/* poza cu marginea stângă tăiată în diagonală și o linie galbenă pe tăietură */
.shot { background: var(--y); clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); aspect-ratio: 4 / 5; }
.shot picture, .shot img { width: 100%; height: 100%; }
.shot img { object-fit: cover; clip-path: polygon(calc(16% + 5px) 0, 100% 0, 100% 100%, 5px 100%); }
/* poza pe toată lățimea, cu marginea de jos în diagonală */
.wide { background: var(--y); aspect-ratio: 21 / 8; clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%); }
.wide picture, .wide img { width: 100%; height: 100%; }
.wide img { object-fit: cover; clip-path: polygon(0 0, 100% 0, 100% calc(78% - 5px), 0 calc(100% - 5px)); }

/* secțiunile pe alb */
.sec { padding-top: clamp(56px, 8vw, 104px); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.sec-head h2 { margin-top: 14px; max-width: 18em; }

.stats { background: var(--k); color: var(--w); border-radius: 3px; display: grid; grid-template-columns: repeat(3, 1fr); }
.stats > div { display: flex; align-items: center; gap: 16px; padding: 30px 36px; }
.stats > div + div { border-left: 1px solid var(--k3); }
.stats .n { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: clamp(48px, 5vw, 64px); line-height: 1; color: var(--y); }
.stats .l { font-size: 15px; line-height: 1.35; color: var(--soft); }

.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 64px; }
.points h3::before { content: ""; display: block; width: 44px; height: 4px; background: var(--y); margin-bottom: 16px; }
.points p { margin-top: 10px; color: var(--ink2); }

/* serviciile, numerotate în pătrățele galbene, ca pe verso */
.svc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 64px; counter-reset: svc; }
.svc li { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; counter-increment: svc; }
.svc li::before { content: counter(svc, decimal-leading-zero); grid-row: span 2; width: 44px; height: 44px;
                  background: var(--y); color: var(--k); display: grid; place-items: center;
                  font: 700 18px 'Barlow Condensed', sans-serif; }
.svc h2, .svc h3 { font-weight: 700; font-size: 23px; line-height: 1.15; padding-top: 8px; }
.svc p { grid-column: 2; margin-top: 8px; color: var(--ink2); }
.svc.short { gap: 0 64px; }
.svc.short li { grid-template-columns: 36px 1fr; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.svc.short li::before { width: 36px; height: 36px; font-size: 15px; grid-row: auto; }
.svc.short h3 { padding: 0; font-size: 21px; }
.note { margin-top: 20px; font-size: 14px; color: var(--ink2); }

/* licența, cu bara galbenă în stânga */
.lic { background: var(--paper2); border-left: 6px solid var(--y); padding: 26px 32px; color: var(--ink2); }
.lic .kicker { color: var(--ink); font-size: 13px; }
.lic .kicker::before { display: none; }
.lic b { display: block; color: var(--ink); font-weight: 600; font-size: 19px; line-height: 1.35; margin: 8px 0 6px; }
.lic p { font-size: 16px; }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.prose h2 { font-size: 32px; }
.prose h2 + p, .prose p + p { margin-top: 14px; }
.prose p + h2 { margin-top: 44px; }
.prose p { color: var(--ink2); }

.facts { display: grid; grid-template-columns: max-content 1fr; border-top: 1px solid var(--line); margin-top: 20px; }
.facts dt, .facts dd { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 600 13px 'Barlow Condensed', sans-serif; letter-spacing: .2em; text-transform: uppercase;
            color: var(--ink2); padding-right: 32px; padding-top: 17px; }

.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.person { border-top: 4px solid var(--y); padding-top: 22px; }
.person .kicker { color: var(--ink2); font-size: 13px; }
.person .kicker::before { display: none; }
.person .nm { font-weight: 600; font-size: 20px; margin-top: 6px; }
.person .phone { font-size: clamp(36px, 4vw, 48px); display: inline-block; margin-top: 4px; }
.lines { display: grid; gap: 14px; }
.sec .lines { margin-top: 48px; }
.lines li { display: flex; gap: 14px; align-items: flex-start; }
.lines .icon { margin-top: 5px; }
.lines a { text-decoration-color: var(--y); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* subsolul, ca verso-ul colii */
.foot { position: relative; background: var(--k); color: var(--soft); margin-top: clamp(56px, 8vw, 104px);
        padding-top: calc(var(--edge) + 48px); }
.edge-top { position: absolute; left: 0; top: -1px; width: 100%; height: calc(var(--edge) + 1px); display: block; }
.foot-title { color: var(--w); font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 36px; }
.foot-contact { margin-bottom: 56px; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 40px; }
.foot .kicker { color: var(--mut); font-size: 13px; }
.foot .kicker::before { display: none; }
.foot .nm { color: var(--w); font-weight: 600; font-size: 18px; margin-top: 6px; }
.foot .phone { font-size: 38px; color: var(--w); display: inline-block; margin-top: 2px; }
.foot .phone.y { color: var(--y); }
.foot .lines { gap: 10px; font-size: 16px; }
.foot .lines .icon { color: var(--y); }
.foot .lines a { color: var(--soft); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 0; padding-top: 22px; border-top: 1px solid var(--k3); }
.foot-nav a { color: var(--w); text-decoration: none; font-weight: 500; }
.foot-nav a:hover { text-decoration: underline; }
.legal { padding: 22px 0 32px; font-size: 13px; color: var(--mut); }
.callbar { display: none; }

@media (max-width: 860px) {
  .bar { flex-wrap: wrap; }
  .bar .logo { width: 170px; }
  .js .menu-btn { display: inline-flex; background: none; border: 1px solid var(--k3); color: var(--w); cursor: pointer;
                  font: 600 14px 'Barlow Condensed', sans-serif; letter-spacing: .2em; text-transform: uppercase;
                  padding: 10px 14px; border-radius: 2px; }
  .nav { width: 100%; flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--k3); font-size: 18px; }
  .nav a[aria-current="page"] { border-bottom-color: var(--k3); color: var(--y); }
  .nav .call { display: none; }
  .js .nav { display: none; }
  .js .bar.open .nav { display: flex; }

  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 12px; padding-bottom: 24px; }
  .shot { aspect-ratio: 16 / 10; clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 100%);
          margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut)); }
  .shot img { clip-path: polygon(0 calc(14% + 5px), 100% 5px, 100% 100%, 0 100%); }
  .wide { aspect-ratio: 4 / 3; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .foot-contact { grid-template-columns: 1fr 1fr; }
  .foot-contact > :last-child { grid-column: 1 / -1; }

  /* pe mobil, telefonul e mereu la un deget distanță */
  .callbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 10;
             justify-content: center; align-items: center; gap: 10px; background: var(--y); color: var(--k);
             text-decoration: none; font: 700 20px 'Barlow Condensed', sans-serif; padding: 14px;
             border-radius: 3px; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
  .legal { padding-bottom: 104px; }
}

@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; }
  .stats > div { padding: 22px 24px; }
  .stats > div + div { border-left: 0; border-top: 1px solid var(--k3); }
  .points { grid-template-columns: 1fr; gap: 36px; }
  .svc { grid-template-columns: 1fr; gap: 30px; }
  .svc.short { gap: 0; }
  .people { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .foot-contact { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
}
