/* =========================================================
   Трейд лок — traidlock.asia (Москва)
   Замки и запорные устройства, мебельная фурнитура и
   комплектующие.
   Design concept: четвёртый сайт серии на эту тему в Москве
   (после zamok.asia, zamizap.asia, zammos.asia), поэтому —
   премиальная торгово-оптовая эстетика: глубокий бордовый +
   тёплое золото, вместо промышленных/технических палитр прежних
   трёх сайтов. Гарнитуры Libre Baskerville (нарядный дисплей,
   каталожный характер) + Nunito Sans.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Nunito+Sans:wght@400;500;600;700;800&display=swap');

:root{
  --paper:      #F6F3EF;
  --paper-2:    #FFFFFF;
  --ink:        #2B1A1E;
  --ink-2:      #3A252A;
  --steel:      #6E6260;
  --steel-dim:  #A79C99;
  --maroon:      #7A2430;
  --maroon-dark: #5C1B24;
  --maroon-tint: #EFD9DC;
  --gold:      #C79A3D;
  --gold-dark: #9C7728;
  --gold-tint: #F2E4C4;
  --line:       rgba(43,26,30,0.12);
  --line-strong:rgba(43,26,30,0.22);

  --display: 'Libre Baskerville', Georgia, serif;
  --body:    'Nunito Sans', 'Segoe UI', sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --container: 1150px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html, body{ max-width:100%; overflow-x:hidden; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--body);
  font-size:16px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--display); font-weight:700; letter-spacing:0; margin:0; color:var(--ink); }
p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }

.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }
.svc-grid > *, .trust-grid > *, .footer-grid > *, .stats-row > *, .process > *{ min-width:0; }

::selection{ background:var(--gold); color:#2B1A1E; }
:focus-visible{ outline:2px solid var(--maroon-dark); outline-offset:2px; }

/* ---------- kicker ---------- */
.kicker{ font-family:var(--body); font-size:13px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--maroon-dark); position:relative; padding-left:26px; display:block; }
.kicker::before{ content:""; position:absolute; left:0; top:0.5em; width:16px; height:2px; background:var(--gold); }
section.deep .kicker{ color:var(--gold-tint); }
section.deep .kicker::before{ background:var(--gold); }

/* ---------- buttons ---------- */
.btn{ display:inline-flex; align-items:center; gap:10px; font-family:var(--display); font-size:15px; font-weight:700; padding:14px 28px; border-radius:var(--radius-sm); border:1.5px solid transparent; transition:transform .15s ease, background .2s ease, color .2s ease; white-space:normal; }
.btn-primary{ background:var(--maroon); color:#fff; }
.btn-primary:hover{ background:var(--maroon-dark); transform:translateY(-1px); }
.btn-ghost{ border-color:var(--ink); color:var(--ink); background:transparent; }
.btn-ghost:hover{ background:var(--ink); color:var(--paper); }
.btn-block{ width:100%; justify-content:center; }

/* ---------- top bar ---------- */
.topbar{ background:var(--ink); color:#BCA9AC; font-family:var(--body); font-size:13px; }
.topbar .container{ display:flex; justify-content:space-between; align-items:center; min-height:38px; gap:16px; flex-wrap:wrap; padding-top:7px; padding-bottom:7px; }
.topbar a{ color:var(--gold-tint); font-weight:700; }
.topbar-left{ display:flex; gap:20px; flex-wrap:wrap; }
.topbar-left span, .topbar-left a{ display:inline-block; }

/* ---------- header / nav ---------- */
header.site{ position:sticky; top:0; z-index:50; background:rgba(246,243,239,0.96); backdrop-filter:blur(8px); border-bottom:1px solid var(--line); }
.nav{ display:flex; align-items:center; justify-content:space-between; min-height:78px; padding:10px 0; gap:16px; flex-wrap:wrap; }
.logo{ font-family:var(--display); font-weight:700; font-size:21px; color:var(--ink); display:flex; align-items:center; gap:10px; min-width:0; white-space:nowrap; }
@media (max-width:560px){ .logo{ font-size:16px; } }
.logo .mark{ width:42px; height:42px; background:var(--maroon); color:var(--gold-tint); flex:none; display:flex; align-items:center; justify-content:center; border-radius:var(--radius-sm); }
.logo .mark svg{ width:21px; height:21px; }
.logo-text{ display:flex; flex-direction:column; min-width:0; }
.logo-text .lname{ white-space:nowrap; }
.logo-text small{ font-family:var(--body); font-size:10px; letter-spacing:0.04em; color:var(--steel-dim); text-transform:uppercase; font-weight:700; margin-top:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media (max-width:560px){ .logo-text small{ display:none; } }

.navlinks{ display:flex; align-items:center; gap:24px; }
.navlinks a{ font-family:var(--body); font-size:14px; font-weight:700; color:var(--steel); position:relative; padding:6px 0; }
.navlinks a:hover{ color:var(--ink); }
.navlinks a.current{ color:var(--maroon-dark); }

.nav-cta{ display:flex; align-items:center; gap:14px; flex:none; }
.nav-phone{ font-family:var(--display); font-weight:700; font-size:16px; color:var(--ink); white-space:nowrap; }
.burger{ display:none; background:var(--paper-2); border:1px solid var(--line-strong); color:var(--ink); width:44px; height:44px; border-radius:var(--radius-sm); align-items:center; justify-content:center; flex:none; }
@media (max-width:960px){ .navlinks{ display:none; } .burger{ display:flex; } .nav-phone{ display:none; } }
.mobilemenu{ display:none; flex-direction:column; background:var(--paper); border-bottom:1px solid var(--line); }
.mobilemenu.open{ display:flex; }
.mobilemenu a{ padding:16px 24px; font-size:14px; font-weight:700; border-top:1px solid var(--line); color:var(--ink); }
.mobilemenu .btn{ margin:16px 24px; }

/* ---------- hero ---------- */
.hero{ position:relative; padding:60px 0 54px; overflow:hidden; background:var(--paper); border-bottom:1px solid var(--line); }
.hero::before{
  content:""; position:absolute; top:0; left:0; width:100%; height:4px;
  background: repeating-linear-gradient(90deg, var(--maroon) 0 18px, var(--gold) 18px 36px);
  opacity:0.55;
}
.hero-inner{ position:relative; display:grid; grid-template-columns:1.05fr 0.95fr; gap:48px; align-items:center; }
.hero-inner > div{ min-width:0; }
@media (max-width:960px){ .hero-inner{ grid-template-columns:1fr; } }
.hero h1{ font-size:clamp(27px, 3.9vw, 44px); line-height:1.22; margin:16px 0 18px; font-weight:700; }
.hero h1 em{ font-style:italic; color:var(--maroon-dark); }
.hero p.lead{ font-size:16.5px; color:var(--steel); max-width:54ch; margin-bottom:28px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:30px; }
.stats-row{ display:flex; flex-wrap:wrap; gap:10px; }
.stats-row div{ background:var(--paper-2); border:1px solid var(--line-strong); border-radius:var(--radius-sm); padding:10px 18px; display:flex; align-items:baseline; gap:8px; }
.stats-row b{ font-family:var(--display); font-weight:700; font-size:16px; color:var(--maroon-dark); }
.stats-row span{ font-size:11px; color:var(--steel-dim); font-weight:600; }

/* hero — product spec card */
.note-card{ background:var(--paper-2); border:1px solid var(--gold-dark); border-radius:var(--radius); box-shadow:0 32px 60px -32px rgba(43,26,30,0.2); overflow:hidden; }
.note-card-top{ padding:20px 24px; display:flex; align-items:center; gap:14px; background:var(--ink); }
.note-card-top .mark2{ width:38px; height:38px; border-radius:var(--radius-sm); background:var(--gold); color:var(--ink); flex:none; display:flex; align-items:center; justify-content:center; }
.note-card-top .mark2 svg{ width:19px; height:19px; }
.note-card-top .eyebrow{ font-size:11px; font-weight:700; letter-spacing:0.05em; color:var(--gold-tint); text-transform:uppercase; }
.note-card-top h3{ font-size:18px; color:#fff; margin-top:4px; font-weight:700; }
.note-card-body{ padding:18px 24px; }
.note-row{ display:flex; justify-content:space-between; padding:9px 0; border-bottom:1px dashed var(--line-strong); font-size:14px; gap:12px; }
.note-row:last-of-type{ border-bottom:none; }
.note-row span:first-child{ color:var(--steel-dim); font-size:11.5px; flex:none; font-weight:700; }
.note-row span:last-child{ font-weight:700; text-align:right; }
.note-row .ok{ color:var(--maroon-dark); }
.note-card-foot{ padding:14px 24px 18px; font-size:11px; color:var(--steel-dim); border-top:1px solid var(--line); }

/* ---------- sections ---------- */
section{ padding:68px 0; }
section.deep{ background:var(--ink); color:#DCCBCE; }
section.deep h2, section.deep h3, section.deep h4{ color:#fff; }
section.deep .section-head p{ color:#B39C9F; }
section.tint{ background:var(--paper-2); }
.section-head{ max-width:660px; margin-bottom:40px; }
.section-head h2{ font-size:clamp(24px,3.2vw,36px); margin-top:13px; line-height:1.26; }
.section-head p{ margin-top:14px; font-size:15px; color:var(--steel); }

/* ---------- services ---------- */
.svc-tabs{ display:flex; gap:9px; flex-wrap:wrap; margin-bottom:32px; }
.svc-tab{ font-family:var(--body); font-size:13.5px; font-weight:700; padding:9px 18px; border:1.5px solid var(--line-strong); border-radius:var(--radius-sm); color:var(--steel); background:var(--paper-2); }
.svc-tab.active, .svc-tab:hover{ background:var(--ink); color:#fff; border-color:var(--ink); }

.svc-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
@media (max-width:900px){ .svc-grid{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:620px){ .svc-grid{ grid-template-columns:1fr;} }

.svc-card{ background:var(--paper-2); border:1px solid var(--line); border-radius:var(--radius-sm); padding:18px 18px 16px; transition:box-shadow .2s ease, transform .2s ease; }
.svc-card:hover{ box-shadow:0 16px 30px -20px rgba(43,26,30,0.22); transform:translateY(-2px); border-color:var(--gold); }
.svc-card .case{ font-size:11px; font-weight:700; letter-spacing:0.04em; color:var(--maroon-dark); text-transform:uppercase; }
.svc-card h4{ font-family:var(--display); font-size:16px; margin:8px 0 7px; font-weight:700; }
.svc-card p{ font-size:13px; color:var(--steel); line-height:1.55; min-height:50px; }
.svc-card .meta{ display:flex; justify-content:space-between; align-items:center; margin-top:12px; padding-top:12px; border-top:1px dashed var(--line-strong); font-size:12px; gap:10px; }
.svc-card .meta .price{ color:var(--ink); font-weight:700; }
.svc-card .meta .fmt{ text-transform:uppercase; white-space:normal; text-align:right; font-size:10px; font-weight:700; letter-spacing:0.02em; color:var(--gold-dark); }

.svc-note{ margin-top:22px; padding:14px 18px; background:var(--gold-tint); border-radius:var(--radius-sm); font-size:13.5px; color:var(--ink-2); }

/* ---------- process ---------- */
.process{ display:grid; grid-template-columns:repeat(4,1fr); gap:13px; }
@media (max-width:900px){ .process{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:560px){ .process{ grid-template-columns:1fr;} }
.process-step{ background:var(--paper-2); border:1px solid var(--line); border-radius:var(--radius); padding:20px 18px; }
.process-step .num{ font-family:var(--display); font-weight:700; font-size:26px; color:var(--maroon-dark); }
.process-step h4{ font-family:var(--display); font-size:15px; margin:10px 0 6px; font-weight:700; }
.process-step p{ font-size:12.5px; color:var(--steel); }

/* ---------- trust ---------- */
.trust-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
@media (max-width:900px){ .trust-grid{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:560px){ .trust-grid{ grid-template-columns:1fr;} }
.trust-item .n{ font-size:23px; }
.trust-item h4{ font-family:var(--display); font-size:15px; margin:9px 0 6px; font-weight:700; }
.trust-item p{ font-size:12.5px; color:var(--steel); }

/* ---------- address / contact card ---------- */
.clinic-card{ background:var(--paper-2); border:1px solid var(--line-strong); border-radius:var(--radius); padding:26px; display:grid; grid-template-columns:1fr 1fr; gap:26px; }
.clinic-card > *{ min-width:0; }
@media (max-width:700px){ .clinic-card{ grid-template-columns:1fr; } }
.clinic-card .line{ display:flex; gap:10px; font-size:14.5px; margin-bottom:11px; color:var(--ink); }
.clinic-card .line b{ font-size:11px; color:var(--steel-dim); min-width:80px; font-weight:700; text-transform:uppercase; flex:none; }

/* ---------- contact form ---------- */
.contact-form{ background:var(--paper-2); border:1px solid var(--line-strong); border-radius:var(--radius); padding:28px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px; }
@media (max-width:560px){ .form-row{ grid-template-columns:1fr; } }
.field label{ display:block; font-size:12px; font-weight:700; color:var(--steel); margin-bottom:7px; }
.field input, .field select, .field textarea{ width:100%; background:var(--paper); border:1px solid var(--line-strong); color:var(--ink); padding:11px 13px; border-radius:var(--radius-sm); font-family:var(--body); font-size:14px; }
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--gold); outline:none; }
.field textarea{ resize:vertical; min-height:96px; }
.consent{ display:flex; gap:9px; align-items:flex-start; font-size:12px; color:var(--steel); margin:16px 0 20px; }
.consent a{ color:var(--maroon-dark); text-decoration:underline; }
.consent input{ margin-top:3px; flex:none; }
.form-note{ font-size:11px; color:var(--steel-dim); margin-top:13px; }
.form-success{ display:none; background:var(--ink); color:#fff; padding:15px 16px; border-radius:var(--radius-sm); font-size:13.5px; margin-top:15px; }
.form-success.show{ display:block; }
.contact-grid{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:46px; align-items:flex-start; }
.contact-grid > *{ min-width:0; }
@media (max-width:860px){ .contact-grid{ grid-template-columns:1fr; } }

/* ---------- FAQ ---------- */
.faq{ max-width:800px; }
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{ width:100%; display:flex; justify-content:space-between; align-items:center; gap:16px; padding:18px 0; background:none; border:none; color:var(--ink); font-family:var(--display); font-weight:700; font-size:17.5px; text-align:left; }
.faq-q > span:first-child{ flex:1 1 auto; min-width:0; }
.faq-q .plus{ font-size:22px; color:var(--maroon); transition:transform .2s ease; flex:none; font-weight:400; }
.faq-item.open .plus{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .25s ease; }
.faq-item.open .faq-a{ max-height:340px; }
.faq-a p{ padding-bottom:18px; font-size:14px; color:var(--steel); max-width:64ch; }

/* ---------- CTA band ---------- */
.cta-band{ background:var(--ink); color:#fff; padding:48px 0; }
.cta-inner{ display:flex; justify-content:space-between; align-items:center; gap:22px; flex-wrap:wrap; }
.cta-inner h3{ color:#fff; font-size:clamp(20px,2.8vw,27px); max-width:580px; font-weight:700; }
.cta-band .btn-primary{ background:var(--gold); color:var(--ink); }
.cta-band .btn-primary:hover{ background:#fff; }

/* ---------- footer ---------- */
footer.site{ background:var(--ink); color:#AC9A9D; padding:48px 0 0; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px; padding-bottom:36px; border-bottom:1px solid rgba(220,203,206,0.14); }
@media (max-width:820px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-grid h5{ font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:0.04em; color:#7A686B; margin-bottom:14px; }
.footer-grid li{ margin-bottom:9px; font-size:13px; }
.footer-grid a:hover{ color:var(--gold-tint); }
.footer-about p{ font-size:12.5px; color:#977F82; max-width:34ch; margin-top:12px; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding:17px 0; font-size:11px; color:#68585A; flex-wrap:wrap; gap:10px; }
.footer-bottom a:hover{ color:var(--gold-tint); }

/* ---------- cookie banner ---------- */
.cookie-banner{ position:fixed; left:20px; right:20px; bottom:20px; z-index:200; max-width:540px; margin:0 auto; background:#fff; border:1px solid var(--line-strong); border-radius:var(--radius); padding:18px 20px; box-shadow:0 18px 44px rgba(43,26,30,0.2); display:none; gap:14px; flex-direction:column; }
.cookie-banner.show{ display:flex; }
.cookie-banner p{ font-size:12.5px; color:var(--steel); line-height:1.55; }
.cookie-banner a{ color:var(--maroon-dark); text-decoration:underline; }
.cookie-actions{ display:flex; gap:9px; flex-wrap:wrap; }
.cookie-actions .btn{ padding:9px 16px; font-size:13px; }

/* ---------- page hero (inner pages) ---------- */
.pagehead{ padding:40px 0 30px; background:var(--paper-2); border-bottom:1px solid var(--line); }
.crumbs{ font-size:11.5px; font-weight:700; color:var(--steel-dim); margin-bottom:14px; }
.crumbs a:hover{ color:var(--maroon-dark); }
.pagehead h1{ font-size:clamp(23px,3.4vw,34px); }
.pagehead p{ margin-top:13px; color:var(--steel); max-width:60ch; font-size:14.5px; }

/* ---------- legal pages ---------- */
.legal{ max-width:800px; }
.legal h2{ color:var(--ink); font-size:19px; margin:30px 0 12px; font-family:var(--display); font-weight:700; }
.legal h2:first-child{ margin-top:0; }
.legal p, .legal li{ font-size:14px; color:var(--steel); line-height:1.78; margin-bottom:11px; }
.legal ul, .legal ol{ padding-left:22px; margin-bottom:15px; }
.legal ul li{ list-style:disc; }
.legal ol li{ list-style:decimal; }
.legal .updated{ font-size:12px; color:var(--steel-dim); margin-bottom:30px; font-weight:700; }

/* ---------- 404 ---------- */
.err-wrap{ min-height:62vh; display:flex; align-items:center; padding:60px 0; background:var(--paper-2); }
.err-inner{ text-align:center; margin:0 auto; }
.err-code{ font-family:var(--display); font-weight:700; font-style:italic; font-size:clamp(78px,13.5vw,146px); color:var(--gold-tint); line-height:1; -webkit-text-stroke:2px var(--ink); }
.err-inner h1{ font-size:clamp(20px,3.1vw,27px); margin:12px 0 13px; }
.err-inner p{ color:var(--steel); max-width:52ch; margin:0 auto 26px; font-size:14.5px; }
.err-actions{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

/* ---------- misc ---------- */
.skip-link{ position:absolute; left:-999px; top:0; background:var(--ink); color:#fff; padding:10px 16px; z-index:999; }
.skip-link:focus{ left:0; top:0; }
.badge-row{ display:flex; gap:18px; flex-wrap:wrap; align-items:center; margin-top:18px; }
.badge-row span{ font-size:12px; font-weight:700; color:var(--steel); position:relative; padding-left:20px; display:inline-block; }
.badge-row span::before{ content:"✓"; color:var(--maroon-dark); position:absolute; left:0; top:0; font-weight:700; }
