/*
Theme Name: SDL Legal Boutique
Theme URI: https://new.lbsdl.ru
Author: SDL Legal
Description: Custom theme for SDL Legal Boutique law firm
Version: 1.0
Text Domain: sdl-legal
*/

/* ===== TOKENS ===== */
:root {
  --orange: #e96526;
  --orange-hover: #d4521a;
  --dark: #1b1b1b;
  --dark2: #222222;
  --dark3: #26262b;
  --light: #f7f7f7;
  --white: #ffffff;
  --text: #1b1b1b;
  --text-light: #5a5a5a;
  --gold: #c8a96e;
  --radius: 4px;
  --font: 'Manrope', Arial, sans-serif;
  --max-w: 1200px;
  --transition: 0.25s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-hover); }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section--sm { padding: 48px 0; }
.section--lg { padding: 120px 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
}
.btn--primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn--primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(233,101,38,.35);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline:hover {
  background: var(--white);
  color: var(--dark);
}
.btn--outline-dark {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}
.btn--outline-dark:hover {
  background: var(--dark);
  color: var(--white);
}

/* ===== HEADER ===== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(27,27,27,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition);
}
#site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.site-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--white) !important;
  letter-spacing: -0.5px;
}
.site-logo span { color: var(--orange); }
.site-logo img { height: 68px; width: auto; display: block; }

/* Nav */
#primary-nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
}
#primary-nav ul li a {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
#primary-nav ul li a:hover,
#primary-nav ul li.current-menu-item > a {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.header-cta { margin-left: 16px; }
.header-cta .btn { padding: 10px 22px; font-size: 14px; }

/* Lang switch */
.lang-switch {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}
.lang-switch a {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all var(--transition);
}
.lang-switch a:hover,
.lang-switch a.active {
  color: var(--white);
  border-color: var(--orange);
  background: var(--orange);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all var(--transition);
}

/* ===== HERO ===== */
.hero {
  background: var(--dark);
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(233,101,38,.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero-accent {
  position: absolute;
  top: -80px; right: -80px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233,101,38,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(233,101,38,.15);
  color: var(--orange);
  border: 1px solid rgba(233,101,38,.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-title {
  color: var(--white);
  margin-bottom: 24px;
  font-weight: 800;
}
.hero-title em {
  font-style: normal;
  color: var(--orange);
}
.hero-desc {
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}
.hero-stat {
  padding: 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  transition: border-color var(--transition);
}
.hero-stat:hover { border-color: rgba(233,101,38,.4); }
.hero-stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat-label {
  color: rgba(255,255,255,.6);
  font-size: 14px;
}
.hero-image img {
  border-radius: 12px;
  width: 100%;
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
}
.hero-image-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 12px;
  background: linear-gradient(160deg, #2a2a2a 0%, #1a1a1a 100%);
  border: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.2);
  font-size: 80px;
}

/* ===== SERVICES ===== */
.section--services { background: var(--light); }
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}
.section-title--white { color: var(--white); }
.section-desc {
  color: var(--text-light);
  font-size: 17px;
  max-width: 580px;
  margin-bottom: 56px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,.12);
  border-color: rgba(233,101,38,.2);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(233,101,38,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}
.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.service-card p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
}
.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
}
.service-card .card-link::after { content: '→'; }

/* ===== ABOUT ===== */
.section--about { background: var(--dark); }
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: center;
}
.about-img-wrap { position: relative; }
.about-img-wrap img {
  border-radius: 12px;
  width: 100%;
}
.about-img-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--orange);
  color: var(--white);
  padding: 20px 24px;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 12px 32px rgba(233,101,38,.4);
}
.about-img-badge .num { font-size: 2rem; line-height: 1; }
.about-img-badge .lbl { font-size: 12px; opacity: .85; }
.about-content .section-desc { color: rgba(255,255,255,.65); margin-bottom: 32px; }
.about-features { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: rgba(255,255,255,.8);
  font-size: 15px;
}
.about-feature-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 12px;
  margin-top: 2px;
}

/* ===== TEAM ===== */
.section--team { background: var(--white); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.team-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition);
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,.1);
}
.team-photo {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--light);
  overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-info { padding: 24px 20px; }
.team-name { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.team-role { color: var(--orange); font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.team-bio { color: var(--text-light); font-size: 14px; line-height: 1.6; }

/* ===== NEWS ===== */
.section--news { background: var(--light); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,.1);
}
.news-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #e96526 0%, #1b1b1b 100%);
  overflow: hidden;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
}
.news-meta .cat {
  color: var(--orange);
  font-weight: 600;
}
.news-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 12px;
  flex: 1;
}
.news-card h3 a { color: var(--dark); }
.news-card h3 a:hover { color: var(--orange); }
.news-excerpt { color: var(--text-light); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  margin-top: auto;
}
.news-link::after { content: '→'; }

/* ===== CTA BANNER ===== */
.section--cta {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark3) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.section--cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e96526' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .4;
}
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.cta-inner h2 { color: var(--white); margin-bottom: 16px; }
.cta-inner p { color: rgba(255,255,255,.7); font-size: 18px; margin-bottom: 40px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== CONTACT FORM ===== */
.section--contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 20px; }
.contact-info p { color: var(--text-light); margin-bottom: 32px; }
.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(233,101,38,.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.contact-item-text strong { display: block; font-size: 14px; color: var(--text-light); margin-bottom: 2px; }
.contact-item-text a { color: var(--dark); font-weight: 500; }
.contact-item-text a:hover { color: var(--orange); }
.contact-form-wrap {
  background: var(--light);
  border-radius: 16px;
  padding: 40px;
}
.contact-form-wrap h3 { margin-bottom: 24px; font-size: 1.4rem; }
/* WP form styles */
.wpcf7-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.wpcf7-form .form-group { margin-bottom: 16px; }
.wpcf7-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(0,0,0,.1);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(233,101,38,.1);
}
.wpcf7-form textarea, .wpcf7 textarea { resize: vertical; min-height: 120px; }
.wpcf7-form input[type="submit"],
.wpcf7 input[type="submit"] {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
  width: 100%;
}
.wpcf7-form input[type="submit"]:hover,
.wpcf7 input[type="submit"]:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(233,101,38,.35);
}
.wpcf7-response-output { margin-top: 16px !important; padding: 10px 16px !important; border-radius: 6px !important; font-size: 14px !important; }

/* ===== FOOTER ===== */
#site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .site-logo { display: block; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.5); max-width: 280px; }
.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,.55); font-size: 14px; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--orange); }
.footer-contact p { font-size: 14px; color: rgba(255,255,255,.55); margin-bottom: 8px; }
.footer-contact a { color: rgba(255,255,255,.75); }
.footer-contact a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.35); }
.footer-bottom a { color: rgba(255,255,255,.5); font-size: 13px; }
.footer-bottom a:hover { color: var(--orange); }

/* ===== INNER PAGE HERO ===== */
.page-hero {
  background: var(--dark);
  padding: 140px 0 60px;
  text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero .breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255,255,255,.5);
}
.page-hero .breadcrumb a { color: rgba(255,255,255,.6); }
.page-hero .breadcrumb a:hover { color: var(--orange); }

/* ===== CONTENT PAGE ===== */
.content-wrap { padding: 72px 0; }
.content-wrap h2 { margin-bottom: 16px; margin-top: 40px; }
.content-wrap h3 { margin-bottom: 12px; margin-top: 32px; }
.content-wrap ul { list-style: disc; padding-left: 24px; margin-bottom: 1em; }
.content-wrap ol { padding-left: 24px; margin-bottom: 1em; }
.content-wrap li { margin-bottom: .5em; color: var(--text-light); }
.content-wrap blockquote {
  border-left: 4px solid var(--orange);
  padding: 16px 24px;
  background: var(--light);
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-light);
}

/* ===== SINGLE POST ===== */
.single-post-wrap { max-width: 820px; margin: 0 auto; padding: 72px 24px; }
.post-header { margin-bottom: 40px; }
.post-meta { display: flex; gap: 16px; font-size: 14px; color: var(--text-light); margin-bottom: 16px; }
.post-meta a { color: var(--orange); }
.post-title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 0; }
.post-content { font-size: 17px; line-height: 1.8; }
.post-content img { border-radius: 8px; margin: 24px 0; }

/* ===== NEWS ARCHIVE ===== */
.archive-wrap { padding: 72px 0; }
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ===== WP DEFAULT BLOCKS ===== */
.wp-block-image img { border-radius: 8px; }
.wp-block-quote { border-left: 4px solid var(--orange); padding-left: 20px; }
.wp-block-separator { border-color: rgba(0,0,0,.1); }
.has-text-align-center { text-align: center; }
.aligncenter { margin: 0 auto; }

/* ===== CONTACT FORM ===== */
.section--contact { background: var(--light); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-left .section-desc { margin-bottom: 40px; }
.contact-facts { display: flex; flex-direction: column; gap: 16px; }
.contact-fact {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-light);
}
.contact-fact a { color: var(--text-light); }
.contact-fact a:hover { color: var(--orange); }
.contact-fact-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(233,101,38,.1);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Form card */
.sdl-form {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 32px rgba(0,0,0,.07);
}
.sdl-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.sdl-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.sdl-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .3px;
}
.sdl-form-group input,
.sdl-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--light);
  border: 1.5px solid #e4e4e4;
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: none;
}
.sdl-form-group input:focus,
.sdl-form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(233,101,38,.12);
}
.sdl-btn-submit {
  width: 100%;
  margin-bottom: 14px;
}
.sdl-form-note {
  font-size: 12px;
  color: #aaa;
  line-height: 1.5;
  margin-bottom: 16px;
}
.sdl-form-response {
  font-size: 14px;
  font-weight: 600;
  min-height: 20px;
  border-radius: var(--radius);
  padding: 0;
  transition: all var(--transition);
}
.sdl-resp-success {
  color: #2a7a3b;
  background: #eaf7ed;
  padding: 12px 16px;
  border: 1px solid #b8e6c1;
  border-radius: var(--radius);
}
.sdl-resp-error {
  color: #b91c1c;
  background: #fef2f2;
  padding: 12px 16px;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-image { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  #primary-nav, .header-cta, .lang-switch { display: none; }
  .nav-toggle { display: block; }
  #primary-nav.open {
    display: block;
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: rgba(27,27,27,.98);
    padding: 20px 24px 32px;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  #primary-nav.open ul { flex-direction: column; gap: 4px; }
  #primary-nav.open ul li a { display: block; padding: 12px 16px; font-size: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
  .archive-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 120px 0 80px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .sdl-form-row { grid-template-columns: 1fr; }
  .sdl-form { padding: 28px 20px; }
  .section { padding: 56px 0; }
  .section--lg { padding: 72px 0; }
  .wpcf7-form .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .sdl-modal-box { padding: 28px 20px; max-height: 90vh; }
  .sdl-modal-header { gap: 10px; margin-bottom: 20px; }
}

/* ===== MODAL ===== */
.sdl-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.sdl-modal[hidden] { display: none; }

.sdl-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
  animation: sdlFadeIn .2s ease;
}
.sdl-modal-box {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 20px;
  padding: 36px 40px 32px;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,.18);
  animation: sdlSlideUp .25s ease;
}
.sdl-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--light);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: background var(--transition), color var(--transition);
  padding: 0;
}
.sdl-modal-close:hover { background: #e4e4e4; color: var(--text); }

.sdl-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}
.sdl-modal-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(233,101,38,.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}
.sdl-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
  line-height: 1.3;
}
.sdl-modal-desc {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}
.sdl-form--modal {
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

/* Contact CTA card (replaces the form on the contact section) */
.contact-cta-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 32px rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  height: 100%;
}
.contact-cta-icon {
  width: 52px;
  height: 52px;
  background: rgba(233,101,38,.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}
.contact-cta-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}
.contact-cta-desc {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.contact-cta-btn { width: 100%; margin-top: 8px; }

@keyframes sdlFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes sdlSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== LOGO FIX ===== */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.15;
  font-size: 18px;
  font-weight: 800;
  color: var(--white) !important;
  letter-spacing: -0.3px;
}
.logo-sdl {
  color: var(--orange);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-right: 8px;
}
.logo-text {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}
.logo-img { height: 44px; width: auto; }

/* ===== NAV FIX ===== */
#primary-nav .nav-list { display: flex; gap: 2px; align-items: center; flex-wrap: nowrap; }
#primary-nav .nav-list > li > a {
  color: rgba(255,255,255,0.78);
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
  display: block;
}
#primary-nav .nav-list > li > a:hover,
#primary-nav .nav-list > li.current-menu-item > a,
#primary-nav .nav-list > li.current_page_item > a {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
/* Old class compat */
#primary-nav ul.menu { display: flex; gap: 2px; align-items: center; flex-wrap: nowrap; }
#primary-nav ul.menu > li > a {
  color: rgba(255,255,255,0.78);
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
  white-space: nowrap;
  display: block;
  transition: all var(--transition);
}
#primary-nav ul.menu > li > a:hover { color: var(--white); background: rgba(255,255,255,0.1); }

/* ===== HEADER RIGHT ===== */
.header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* ===== LANG SWITCH FIX ===== */
.lang-switch { display: flex; gap: 4px; }
.lang-btn {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all var(--transition);
  letter-spacing: 0.3px;
}
.lang-btn:hover { color: var(--white); border-color: var(--orange); }
.lang-btn.active { color: var(--white); background: var(--orange); border-color: var(--orange); }

/* ===== HERO IMAGE (portrait) ===== */
.hero-image {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-image img {
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  height: auto;
  object-fit: cover;
  object-position: top;
  box-shadow: 0 40px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.05);
  display: block;
}

/* ===== SERVICE ICON (SVG) ===== */
.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(233,101,38,.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--orange);
  transition: background var(--transition);
}
.service-card:hover .service-icon { background: rgba(233,101,38,.18); }
.service-icon svg { width: 24px; height: 24px; }

/* ===== NAV-TOGGLE ANIMATION ===== */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== NEWS THUMB PLACEHOLDER ===== */
.news-thumb-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #2a2020 0%, #1b1b1b 100%);
}

/* ===== ABOUT FEATURE ICON FIX ===== */
.about-feature-icon { background: var(--orange); }

/* ===== GSAP ANIMATION INFRASTRUCTURE ===== */

/* Page transition overlay */
#sdl-page-overlay {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 9999;
  pointer-events: none;
  opacity: 1;
}

/* Custom cursor */
#sdl-cursor { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998; }
.cursor-dot {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-ring {
  position: absolute;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(233,101,38,.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: none;
}
@media (hover: none) { #sdl-cursor { display: none; } }

/* Header scrolled state */
#site-header.scrolled {
  background: rgba(20,20,20,0.99);
  box-shadow: 0 2px 24px rgba(0,0,0,.4);
}

/* Hero floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}
.hero-orb--1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(233,101,38,.15) 0%, transparent 65%);
  top: -100px; right: 15%;
}
.hero-orb--2 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(233,101,38,.1) 0%, transparent 65%);
  bottom: 10%; left: 5%;
}
.hero-orb--3 {
  width: 120px; height: 120px;
  border: 1px solid rgba(233,101,38,.2);
  bottom: 25%; right: 8%;
}

/* Hero image overlay gradient */
.hero-image {
  position: relative;
}
.hero-image::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--dark) 0%, transparent 100%);
  border-radius: 0 0 16px 16px;
  pointer-events: none;
}

/* Marquee divider */
.sdl-marquee {
  overflow: hidden;
  background: var(--orange);
  padding: 18px 0;
  white-space: nowrap;
}
.sdl-marquee-inner {
  display: inline-flex;
  gap: 0;
  will-change: transform;
}
.sdl-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  padding: 0 32px;
}
.sdl-marquee-item .dot {
  width: 5px; height: 5px;
  background: rgba(255,255,255,.6);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Section reveal — initial states set by GSAP, graceful no-JS fallback */
@media (prefers-reduced-motion: reduce) {
  .service-card, .news-card, .team-card,
  .about-img-wrap, .about-feature,
  .section-label, .section-title, .section-desc { opacity: 1 !important; transform: none !important; }
}

/* Primary button — shimmer + ripple */
.btn--primary {
  position: relative;
  will-change: transform;
  overflow: hidden;
}
.btn--primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0) 30%,
    rgba(255,255,255,0.28) 50%,
    rgba(255,255,255,0) 70%,
    transparent 100%
  );
  animation: sdlShimmer 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sdlShimmer {
  0%   { left: -100%; }
  40%  { left: 130%; }
  100% { left: 130%; }
}
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0);
  animation: sdlRipple 0.55s linear;
  pointer-events: none;
}
@keyframes sdlRipple {
  to { transform: scale(4); opacity: 0; }
}

/* Hero title clip-path animation initial */
.hero-title { overflow: hidden; }

/* Service card 3D tilt */
.service-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Scrolled-in state for about-img-badge pop */
@keyframes badge-pop {
  0%   { transform: scale(0.5) rotate(-8deg); opacity: 0; }
  70%  { transform: scale(1.1) rotate(2deg);  opacity: 1; }
  100% { transform: scale(1) rotate(0deg);    opacity: 1; }
}
.about-img-badge {
  animation: badge-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-play-state: paused;
}
.about-img-badge.animate { animation-play-state: running; }

/* ══════════════════════════════════════════════════════
   NEWS ARCHIVE
══════════════════════════════════════════════════════ */

/* ── Archive Hero ── */
.news-hero {
  background: var(--dark);
  padding: 140px 0 64px;
  position: relative;
  overflow: hidden;
}
.news-hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.news-hero-orb--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(233,101,38,.1) 0%, transparent 65%);
  top: -150px; right: -80px;
}
.news-hero-orb--2 {
  width: 200px; height: 200px;
  border: 1px solid rgba(233,101,38,.15);
  bottom: -60px; left: 8%;
}
.news-hero-content { position: relative; z-index: 1; max-width: 640px; }
.news-hero-badge { margin-bottom: 20px; }
.news-hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.news-hero-sub {
  color: rgba(255,255,255,.6);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 24px;
}
.article-breadcrumb a { color: rgba(255,255,255,.5); }
.article-breadcrumb a:hover { color: var(--orange); }
.article-breadcrumb span { color: rgba(255,255,255,.3); }

/* ── Filter Tabs ── */
.news-filter-wrap {
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,.07);
  position: sticky;
  top: 72px;
  z-index: 100;
  transition: box-shadow 0.2s;
}
.news-filter-wrap.filters-sticky {
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.news-filter-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.news-filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border: 1.5px solid rgba(0,0,0,.1);
  border-radius: 100px;
  background: transparent;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.filter-tab:hover { border-color: var(--orange); color: var(--orange); }
.filter-tab.active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}
.tab-count {
  background: rgba(233,101,38,.15);
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  min-width: 20px;
  text-align: center;
}
.filter-tab.active .tab-count {
  background: rgba(255,255,255,.15);
  color: var(--white);
}

/* ── News Archive Grid ── */
.news-archive-wrap { padding: 56px 0 96px; }

.news-grid-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  /* First item spans 2 cols as featured */
}
.news-item--featured { grid-column: span 2; }

/* Card */
.news-item { border-radius: 14px; overflow: hidden; background: var(--white); border: 1px solid rgba(0,0,0,.07); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.news-item:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(0,0,0,.11); }
.news-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.news-item--featured .news-card-link { flex-direction: row; }

/* Thumb */
.news-card-thumb {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  flex-shrink: 0;
}
.news-item--featured .news-card-thumb { width: 55%; aspect-ratio: auto; }
.news-item:not(.news-item--featured) .news-card-thumb { aspect-ratio: 16/9; }

.news-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}
.news-item:hover .news-card-thumb img { transform: scale(1.06); }

.news-card-placeholder { width: 100%; height: 100%; min-height: 200px; }
.news-card-placeholder svg { display: block; width: 100%; height: 100%; }

/* Category badge on thumb */
.news-card-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

/* Body */
.news-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-item--featured .news-card-body { padding: 36px 32px; justify-content: center; }

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
}
.news-card-meta-sep { opacity: 0.4; }

.news-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 10px;
  flex-shrink: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item--featured .news-card-title {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  -webkit-line-clamp: 4;
}

.news-card-excerpt {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}
.news-item--featured .news-card-excerpt { -webkit-line-clamp: 5; }

.news-card-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  margin-top: auto;
  transition: gap 0.2s ease;
}
.news-item:hover .news-card-read { gap: 10px; }
.news-card-read svg { transition: transform 0.2s ease; }
.news-item:hover .news-card-read svg { transform: translateX(3px); }

/* Card entrance animation */
@keyframes news-anim-in {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.news-item.anim-in {
  animation: news-anim-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Empty state */
.news-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--text-light);
}
.news-empty-icon { margin-bottom: 16px; opacity: 0.5; }

/* ══════════════════════════════════════════════════════
   ARTICLE / SINGLE POST
══════════════════════════════════════════════════════ */

/* Article hero */
.article-hero {
  background: var(--dark);
  padding: 140px 0 52px;
  position: relative;
  overflow: hidden;
}
.article-hero--legal-practice { background: #0d1b2a; }
.article-hero--company-news   { background: #111a11; }
.article-hero--personal        { background: #1a0d0d; }
.article-hero--analytics       { background: #0e0e1e; }

.article-hero-orb {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233,101,38,.12) 0%, transparent 65%);
  top: -100px; right: -60px;
  pointer-events: none;
}
.article-hero-inner { max-width: 860px; }

.article-cat-tag {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.article-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}
.article-meta-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.article-date, .article-read-time {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: rgba(255,255,255,.55);
}
.article-date svg, .article-read-time svg { color: var(--orange); }

/* Cover image */
.article-cover { background: var(--dark); padding-bottom: 0; }
.article-cover-container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.article-cover-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px 12px 0 0;
  display: block;
}

/* Layout */
.article-layout { padding: 56px 0 80px; }
.article-columns {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

/* Sidebar */
.article-sidebar-sticky {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  transition: color var(--transition);
}
.back-link:hover { color: var(--orange); }

/* TOC */
.article-toc h4, .article-share h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 12px;
}
#toc-list { display: flex; flex-direction: column; gap: 2px; }
#toc-list li a {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  padding: 5px 8px;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  transition: all var(--transition);
  line-height: 1.4;
}
#toc-list li a:hover, #toc-list li a.toc-active {
  color: var(--orange);
  border-left-color: var(--orange);
  background: rgba(233,101,38,.06);
}
#toc-list .toc-h3 a { padding-left: 20px; font-size: 12px; opacity: .85; }

/* Share buttons */
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(0,0,0,.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.share-btn:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.share-btn.copied { border-color: #2ecc71; color: #2ecc71; }

/* Article content typography */
.article-content {
  font-size: 17px;
  line-height: 1.78;
  color: #2a2a2a;
  min-width: 0;
}
.article-content p { margin-bottom: 1.4em; }
.article-content p:last-child { margin-bottom: 0; }

.article-content h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--dark);
  margin: 2.2em 0 0.8em;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(233,101,38,.2);
  line-height: 1.3;
}
.article-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin: 1.8em 0 0.6em;
}
.article-content strong, .article-content b {
  font-weight: 700;
  color: var(--dark);
}
.article-content em {
  font-style: italic;
  color: var(--text-light);
}
/* Hide "Опубликовано:" lines */
.article-content > p:first-child > em:only-child { display: none; }

.article-content ul, .article-content ol {
  padding-left: 24px;
  margin-bottom: 1.4em;
}
.article-content ul { list-style: none; padding-left: 0; }
.article-content ul > li {
  padding-left: 28px;
  position: relative;
  margin-bottom: .6em;
  color: #3a3a3a;
}
.article-content ul > li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
}
.article-content ol > li { margin-bottom: .6em; color: #3a3a3a; }

.article-content blockquote {
  border-left: 4px solid var(--orange);
  background: rgba(233,101,38,.04);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 2em 0;
  color: var(--dark);
  font-size: 1.05em;
  font-style: italic;
}
.article-content blockquote p { margin-bottom: 0; }

.article-content img {
  width: 100%;
  border-radius: 10px;
  margin: 2em 0;
  height: auto;
  display: block;
}
.article-content a {
  color: var(--orange);
  border-bottom: 1px solid rgba(233,101,38,.3);
  transition: border-color var(--transition);
}
.article-content a:hover { border-bottom-color: var(--orange); }
.article-content hr {
  border: none;
  border-top: 1px solid rgba(0,0,0,.1);
  margin: 2.5em 0;
  display: none; /* Hide the raw <hr> */
}

/* Author box */
.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--light);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  padding: 28px;
  margin-top: 56px;
}
.author-box-photo {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
  border: 3px solid var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.author-box-name { font-weight: 800; font-size: 16px; color: var(--dark); }
.author-box-role { font-size: 13px; color: var(--orange); font-weight: 600; margin-bottom: 8px; }
.author-box-bio  { font-size: 14px; color: var(--text-light); line-height: 1.6; margin: 0; }

.article-back-row { margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(0,0,0,.08); }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .news-item--featured { grid-column: span 3; }
  .news-item--featured .news-card-link { flex-direction: column; }
  .news-item--featured .news-card-thumb { width: 100%; aspect-ratio: 21/9; }
  .news-item--featured .news-card-title { font-size: 1.3rem; }
  .article-columns { grid-template-columns: 200px 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .news-grid-inner { grid-template-columns: repeat(2, 1fr); }
  .news-item--featured { grid-column: span 2; }
  .article-columns { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .article-cover-img { max-height: 340px; }
}
@media (max-width: 600px) {
  .news-grid-inner { grid-template-columns: 1fr; }
  .news-item--featured { grid-column: span 1; }
  .news-item--featured .news-card-thumb { aspect-ratio: 4/3; }
  .news-hero { padding: 120px 0 48px; }
  .news-hero-title { font-size: 2.6rem; }
  .article-title { font-size: 1.6rem; }
  .article-layout { padding: 40px 0 60px; }
  .news-archive-wrap { padding: 40px 0 60px; }
  .news-card-body { padding: 18px; }
  .news-filter-wrap { top: 0; position: static; }
  .news-filter-tabs { padding: 14px 0; }
  .author-box { flex-direction: column; gap: 14px; }
  .author-box-photo { width: 56px; height: 56px; }
}

/* ============================================================
   PRELOADER — SDL Letter Reveal + Curtain
   ============================================================ */
#sdl-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: all;
  overflow: hidden;
}
#preloader-curtain-top,
#preloader-curtain-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  background: #0d0d0d;
  z-index: 1;
}
#preloader-curtain-top  { top: 0; }
#preloader-curtain-bottom { bottom: 0; }

#preloader-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  z-index: 2;
  pointer-events: none;
}
#preloader-logo {
  display: flex;
  align-items: baseline;
  gap: 0;
  line-height: 1;
  overflow: hidden;
}
.pl-sdl {
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  font-size: clamp(64px, 10vw, 96px);
  color: #e96526;
  letter-spacing: -2px;
  line-height: 1;
}
.pl-rest {
  font-family: 'Manrope', sans-serif;
  font-weight: 300;
  font-size: clamp(20px, 3.2vw, 32px);
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.05em;
  padding-left: 10px;
  line-height: 1.25;
}
#preloader-bar {
  width: clamp(160px, 28vw, 320px);
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
#preloader-bar-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #e96526, #ff8c42);
  transform: scaleX(0);
  transform-origin: left center;
  border-radius: 2px;
}

/* ============================================================
   FLIP CARDS — Services
   ============================================================ */

/* Reset the old service-card hover & ::before */
.service-card::before { display: none !important; }
.service-card:hover { transform: none !important; box-shadow: none !important; border-color: transparent !important; }

/* New flip wrapper */
.service-card {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  overflow: visible !important;
  perspective: 1100px;
  cursor: pointer;
  min-height: 340px;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 340px;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 14px;
}

/* Flip on hover (desktop) */
@media (hover: hover) {
  .service-card:hover .service-card-inner,
  .service-card:focus-within .service-card-inner {
    transform: rotateY(180deg);
  }
}

/* Flip on .flipped class (touch) */
.service-card.flipped .service-card-inner {
  transform: rotateY(180deg);
}

/* Both faces */
.service-card-front,
.service-card-back {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
}

/* FRONT */
.service-card-front {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.08);
  justify-content: flex-start;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.service-card-front .service-icon {
  width: 52px;
  height: 52px;
  background: rgba(233,101,38,.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
  transition: background 0.3s;
}
.service-card-front h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.3;
  flex-shrink: 0;
}
.service-card-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #777;
  margin: 0 0 14px;
  flex-shrink: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0;
  flex-shrink: 0;
  align-content: flex-start;
}
.service-chip {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  color: #555;
  background: rgba(0,0,0,.03);
  white-space: nowrap;
  line-height: 1.4;
}
.card-link-hint {
  display: inline-block;
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

/* BACK */
.service-card-back {
  background: linear-gradient(140deg, #1b1b1b 0%, #2a1a0e 60%, #1b1b1b 100%);
  border: 1px solid rgba(233,101,38,.25);
  transform: rotateY(180deg);
  justify-content: space-between;
  box-shadow: 0 12px 40px rgba(233,101,38,.15);
}
.service-back-icon {
  width: 44px;
  height: 44px;
  background: rgba(233,101,38,.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.service-back-icon svg { width: 20px; height: 20px; }
.service-back-icon svg path,
.service-back-icon svg circle,
.service-back-icon svg rect,
.service-back-icon svg polyline,
.service-back-icon svg line { stroke: #e96526 !important; }
.service-card-back p {
  color: rgba(255,255,255,.82);
  font-size: 14px;
  line-height: 1.75;
  flex: 1;
  margin: 0 0 20px;
}
.btn--white-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s;
  align-self: flex-start;
  flex-shrink: 0;
}
.btn--white-outline:hover {
  background: rgba(233,101,38,.2);
  border-color: #e96526;
  color: #fff;
}
.btn--white-outline::after { content: '→'; }

/* services-grid needs min-height so cards don't collapse */
.services-grid { align-items: stretch; }
.services-grid .service-card { height: 100%; }
@media (max-width: 767px) {
  .service-card { min-height: 260px; }
  .service-card-inner { min-height: 260px; }
  .service-card-front,
  .service-card-back { padding: 28px 22px 26px; }
  .service-card-front .service-icon { width: 48px; height: 48px; margin-bottom: 16px; }
  .service-card-front h3 { font-size: 16px; }
}

/* ============================================================
   FLIP CARD HEIGHT FIX — force explicit height so
   position:absolute children (front/back) get full size
   ============================================================ */
.services-grid {
  align-items: stretch;
}
.service-card {
  height: 300px;
}
.service-card-inner {
  height: 300px;
}
.service-card-front,
.service-card-back {
  height: 300px;
}
@media (max-width: 767px) {
  .service-card,
  .service-card-inner,
  .service-card-front,
  .service-card-back { height: 270px; }
}

/* ============================================================
   PRELOADER CSS SAFETY FALLBACK
   If JS fails / GSAP doesn't load, preloader auto-hides
   ============================================================ */
@keyframes preloader-auto-hide {
  to { opacity: 0; pointer-events: none; visibility: hidden; }
}
#sdl-preloader {
  animation: preloader-auto-hide 0.5s 3.5s forwards;
}

/* ============================================================
   PreloaderLogoAnimation — v4
   ============================================================ */

/* ── Скрываем header пока intro активен ─────────────────── */
html.intro-active #site-header {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: none !important;
}

/* ── Overlay fullscreen ──────────────────────────────────── */
.sdl-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(
    circle at center,
    rgba(242, 99, 35, 0.18) 0%,
    rgba(18, 18, 18, 0.98) 42%,
    #111111 100%
  );
  overflow: hidden;
  pointer-events: all;
  /* CSS fallback: auto-hide если JS не сработал */
  animation: sdl-intro-fallback-hide 0.4s 4.5s ease forwards;
}

@keyframes sdl-intro-fallback-hide {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* Отменяем CSS-fallback если JS управляет анимацией */
.sdl-intro-overlay.js-controlled {
  animation: none !important;
}

/* ── Логотип в центре ────────────────────────────────────── */
.sdl-intro-logo {
  position: absolute;
  /* top/left задаётся через JS после измерения offsetWidth/Height */
  width: clamp(160px, 18vw, 300px);
  height: auto;
  opacity: 0;
  will-change: transform, opacity;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 0 44px rgba(242, 99, 35, 0.4));
  /* CSS-фолбэк: логотип появится даже без GSAP */
  animation: sdl-logo-fade-in 0.5s 0.3s ease forwards;
}
@keyframes sdl-logo-fade-in {
  to { opacity: 1; }
}

/* ── Reduced motion — только fade ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .sdl-intro-overlay {
    animation: sdl-intro-fallback-hide 0.3s 0.8s ease forwards;
  }
}

/* ── Сброс старых preloader-стилей ──────────────────────── */
#preloader-curtain-top,
#preloader-curtain-bottom,
#preloader-center,
#preloader-logo,
#preloader-bar,
#preloader-bar-fill,
.pl-sdl,
.pl-rest { display: none !important; }

/* ============================================================
   DROPDOWN NAVIGATION — desktop hover + mobile accordion
   ============================================================ */

/* --- Parent item wrapper --- */
.nav-has-dropdown {
  position: relative;
}

/* --- Dropdown container: hidden by default --- */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: rgba(24,24,24,0.97);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 8px 0;
  z-index: 999;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  list-style: none;
  margin: 0;
}

/* --- Show on hover (desktop) --- */
.nav-has-dropdown:hover > .nav-dropdown {
  display: block;
}

/* --- Show when .open class toggled (mobile/JS) --- */
.nav-has-dropdown.open > .nav-dropdown {
  display: block;
}

/* --- Dropdown item links --- */
.nav-dropdown li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-dropdown li a {
  display: block;
  padding: 10px 20px;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav-dropdown li a:hover {
  color: #e96526;
  background: rgba(233,101,38,0.08);
}

/* --- Special class for modal-open items inside dropdown --- */
.nav-dropdown li a.sdl-modal-open {
  color: #e96526;
  font-weight: 600;
}
.nav-dropdown li a.sdl-modal-open:hover {
  background: rgba(233,101,38,0.14);
}

/* --- Arrow rotation when dropdown open --- */
.nav-has-dropdown.open .nav-arrow,
.nav-has-dropdown:hover .nav-arrow {
  transform: rotate(180deg);
}
.nav-arrow {
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
  transition: transform 0.22s ease;
}

/* ============================================================
   MOBILE DROPDOWN — accordion under burger
   ============================================================ */
@media (max-width: 900px) {

  /* Hide desktop nav */
  #primary-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(16,16,16,0.98);
    z-index: 8000;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 28px 40px;
    overflow-y: auto;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  #primary-nav.open {
    display: flex;
  }

  /* Top-level items stacked vertically */
  #primary-nav > li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  #primary-nav > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
  }

  /* Dropdown inside mobile: static, full-width accordion */
  .nav-has-dropdown:hover > .nav-dropdown {
    display: none; /* disable hover on mobile */
  }
  .nav-has-dropdown.open > .nav-dropdown {
    display: block;
  }
  .nav-dropdown {
    position: static;
    top: auto;
    left: auto;
    min-width: 100%;
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 4px 0 8px 16px;
    margin-bottom: 4px;
  }
  .nav-dropdown li a {
    font-size: 14px;
    padding: 10px 8px;
    color: rgba(255,255,255,0.65);
  }
}

/* ============================================================
   MODAL FORM — button + field fixes
   ============================================================ */
.sdl-btn-submit {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  background: #e96526;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.sdl-btn-submit:hover { background: #d4521b; }
.sdl-btn-submit:active { transform: scale(0.98); }
.sdl-btn-submit:disabled { opacity: 0.65; cursor: not-allowed; }

.sdl-field-error {
  color: #e96526;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}
.sdl-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  line-height: 1.5;
}
.sdl-check-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #e96526;
}
.field-invalid {
  border-color: #e96526 !important;
  box-shadow: 0 0 0 2px rgba(233,101,38,0.18) !important;
}

/* Mobile modal bottom-sheet */
@media (max-width: 600px) {
  .sdl-modal {
    position: fixed !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    border-radius: 20px 20px 0 0 !important;
    max-height: 92vh;
    overflow-y: auto;
  }
}

/* ============================================================
   DROPDOWN FIX — override #primary-nav ul { display:flex }
   ============================================================ */

/* Force-hide all sub-nav lists */
#primary-nav ul.nav-dropdown {
  display: none !important;
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  flex-direction: column !important;
  min-width: 220px !important;
  background: rgba(20,20,20,0.97) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 10px !important;
  padding: 8px 0 !important;
  z-index: 9999 !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5) !important;
  gap: 0 !important;
  align-items: stretch !important;
}

/* Show on hover */
#primary-nav .nav-has-dropdown:hover > ul.nav-dropdown {
  display: flex !important;
}

/* Show when JS adds .open */
#primary-nav .nav-has-dropdown.open > ul.nav-dropdown {
  display: flex !important;
}

/* Sub-items layout */
#primary-nav ul.nav-dropdown > li {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
#primary-nav ul.nav-dropdown > li > a {
  display: block !important;
  padding: 10px 20px !important;
  color: rgba(255,255,255,0.82) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  border-radius: 0 !important;
  background: transparent !important;
}
#primary-nav ul.nav-dropdown > li > a:hover,
#primary-nav ul.nav-dropdown > li.sdl-modal-open > a:hover {
  color: #e96526 !important;
  background: rgba(233,101,38,0.10) !important;
}
#primary-nav ul.nav-dropdown > li.sdl-modal-open > a {
  color: #e96526 !important;
  font-weight: 600 !important;
}

/* Mobile: accordion — override #primary-nav.open ul */
@media (max-width: 900px) {
  #primary-nav ul.nav-dropdown {
    position: static !important;
    top: auto !important;
    left: auto !important;
    min-width: 100% !important;
    background: rgba(255,255,255,0.05) !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 4px 0 8px 16px !important;
  }
  #primary-nav .nav-has-dropdown:hover > ul.nav-dropdown {
    display: none !important;  /* no hover on mobile */
  }
  #primary-nav .nav-has-dropdown.open > ul.nav-dropdown {
    display: flex !important;
  }
}

/* ============================================================
   SUBMIT BUTTON FIX — no jelly/ripple, solid button
   ============================================================ */
.sdl-btn-submit {
  width: 100% !important;
  height: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  border: none !important;
  border-radius: 10px !important;
  background: #e96526 !important;
  color: #fff !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  transform: none !important;
  box-shadow: none !important;
  position: relative !important;
  overflow: hidden !important;
}
.sdl-btn-submit:hover { background: #d4521b !important; }
.sdl-btn-submit:active { background: #c04410 !important; transform: none !important; }
.sdl-btn-submit:disabled { opacity: 0.6 !important; cursor: not-allowed !important; }
/* Kill any ripple inside submit */
.sdl-btn-submit .btn-ripple { display: none !important; }

/* ============================================================
   CHECKBOX FIX — exclude checkbox from text-field styles
   ============================================================ */

/* Override: do NOT style checkboxes as text inputs */
.sdl-form-group input[type="checkbox"] {
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: none !important;
  flex-shrink: 0 !important;
  margin-top: 3px !important;
  cursor: pointer !important;
  accent-color: #e96526 !important;
  width: 18px !important;
  height: 18px !important;
}
.sdl-form-group input[type="checkbox"]:focus {
  border: none !important;
  box-shadow: none !important;
}

/* Consent row layout */
.sdl-form-group--check {
  margin-bottom: 20px !important;
}
.sdl-check-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  font-size: 13px !important;
  color: #666 !important;
  line-height: 1.5 !important;
  cursor: pointer !important;
}
.sdl-check-label span {
  flex: 1 !important;
  min-width: 0 !important;
}
.sdl-check-label a {
  color: #e96526 !important;
  text-decoration: underline !important;
}

/* ===== CONTACTS PAGE ===== */
.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
  margin-top: 16px;
}
.contacts-info { display: flex; flex-direction: column; gap: 28px; }
.contacts-fact {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contacts-fact-icon {
  width: 40px; height: 40px;
  background: var(--light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--orange);
}
.contacts-fact-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}
.contacts-fact-value {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}
a.contacts-fact-value {
  color: var(--orange);
  text-decoration: none;
}
a.contacts-fact-value:hover { text-decoration: underline; }

.contacts-form-wrap {
  background: var(--light);
  border-radius: 12px;
  padding: 36px;
}
.contacts-form-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--dark);
}

/* ===== INLINE FORM WRAPPER ===== */
.sdl-inline-form-wrap {
  max-width: 660px;
  margin: 40px 0 0;
}
.sdl-form--inline .sdl-btn-submit {
  width: 100%;
  margin-top: 4px;
}
.page-content .sdl-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== FOOTER CONTACTS ===== */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 1px; opacity: 0.7; }
.footer-contact-item a { color: rgba(255,255,255,0.85); text-decoration: none; }
.footer-contact-item a:hover { color: #fff; text-decoration: underline; }
.footer-contact-item--addr { align-items: flex-start; }
.footer-logo { color: var(--white); text-decoration: none; font-size: 18px; font-weight: 800; }
.footer-logo span { color: var(--gold); }
.footer-bottom-links { display: flex; gap: 24px; }

@media (max-width: 768px) {
  .contacts-layout { grid-template-columns: 1fr; gap: 32px; }
  .contacts-form-wrap { padding: 24px 20px; }
  .page-content .sdl-form-row { grid-template-columns: 1fr; }
  .footer-bottom-links { flex-direction: column; gap: 8px; }
}

/* ============================================================
   VISUAL OVERHAUL v2.3 — полный визуальный аудит
   ============================================================ */

/* --- Hide WP admin bar for public --- */
#wpadminbar { display: none !important; }
html { margin-top: 0 !important; }

/* --- Hero: убираем 100vh, делаем компактнее --- */
.hero {
  min-height: clamp(580px, 88vh, 820px) !important;
  padding: clamp(100px, 11vw, 150px) 0 clamp(56px, 7vw, 80px) !important;
}
@media (max-width: 1024px) {
  .hero { min-height: auto !important; padding: 110px 0 64px !important; }
}
@media (max-width: 768px) {
  .hero { padding: 96px 0 56px !important; }
  .hero-orb { opacity: 0.35; }
}

/* --- Секции: системный вертикальный ритм --- */
.section { padding: clamp(56px, 7vw, 96px) 0 !important; }
.section--sm { padding: clamp(40px, 5vw, 64px) 0 !important; }
.section--lg { padding: clamp(72px, 9vw, 120px) 0 !important; }
/* Уменьшаем разрыв между блоком новостей и контактами */
.section--news  { padding-bottom: clamp(32px, 3.5vw, 52px) !important; }
.section--contact { padding-top:    clamp(32px, 3.5vw, 52px) !important; }

/* --- Hero image: показываем до 1024px --- */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-image { display: flex !important; max-width: 300px; }
  .hero-grid { grid-template-columns: 1fr 280px !important; gap: 40px !important; }
}

/* --- Hero stats: компактнее на мобильном --- */
@media (max-width: 768px) {
  .hero-stats { margin-top: 36px; gap: 10px; }
  .hero-stat { padding: 18px 14px; }
  .hero-stat-num { font-size: 1.9rem; }
  .hero-stat-label { font-size: 12px; }
}

/* --- Section-head: мобильный стек --- */
@media (max-width: 600px) {
  .section-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
    margin-bottom: 32px !important;
  }
}

/* --- Логотип в шапке: разумный размер --- */
.site-logo img {
  height: 56px !important;
  max-height: 56px !important;
  width: auto !important;
}
@media (max-width: 768px) {
  .site-logo img { height: 46px !important; max-height: 46px !important; }
}

/* --- News thumb placeholder: брендированный --- */
.news-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #181818 0%, #2a1005 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.news-thumb-placeholder::before {
  content: 'SDL';
  font-family: 'Manrope', sans-serif;
  font-size: 40px;
  font-weight: 900;
  color: rgba(233,101,38,0.45);
  letter-spacing: -1px;
  line-height: 1;
}
.news-thumb-placeholder::after {
  content: 'LEGAL BOUTIQUE';
  font-family: 'Manrope', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.18);
  text-transform: uppercase;
}
/* Убираем декоративный градиент фона .news-thumb,
   чтобы не было "случайного" orange-to-dark */
.news-thumb {
  background: #181818 !important;
}

/* --- About image badge: не вылезает за пределы --- */
.about-img-badge {
  right: 0 !important;
  bottom: 0 !important;
  border-radius: 0 0 12px 0 !important;
}
@media (max-width: 768px) {
  .about-img-badge {
    right: 12px !important;
    bottom: 12px !important;
    border-radius: 8px !important;
  }
}

/* --- Contact section на главной: центрированный блок --- */
.contact-single {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.contact-single .section-desc { max-width: 580px; margin-left: auto; margin-right: auto; }
.contact-single .contact-facts {
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.contact-single .contact-fact { font-size: 15px; }
.contact-single [style*="margin-top:32px"] { text-align: center; }
@media (max-width: 600px) {
  .contact-single .contact-facts { flex-direction: column; align-items: flex-start; text-align: left; }
  .contact-single { text-align: left; }
}

/* --- CTA banner: убираем пустоту --- */
.section--cta { padding: clamp(56px, 7vw, 80px) 0 !important; }
.cta-inner p { margin-bottom: 32px !important; }

/* --- Footer: компактнее --- */
#site-footer { padding: 56px 0 28px !important; }
.footer-grid { margin-bottom: 40px; }

/* --- Декоративные орбы: тоньше --- */
.hero-orb { opacity: 0.7; }
.hero-orb--3 { opacity: 0.35; }

/* --- Service cards: одинаковая высота без жёсткого px --- */
.service-card,
.service-card-inner,
.service-card-front,
.service-card-back {
  height: 300px;
}
@media (max-width: 1024px) and (min-width: 768px) {
  .service-card,
  .service-card-inner,
  .service-card-front,
  .service-card-back { height: 280px; }
}
@media (max-width: 767px) {
  .service-card,
  .service-card-inner,
  .service-card-front,
  .service-card-back { height: 260px; }
  .service-card-front h3 { font-size: 15px; }
}

/* --- Нет горизонтального скролла --- */
body, .hero, .section, .sdl-marquee { max-width: 100%; overflow-x: hidden; }

/* --- News cards одинаковая высота --- */
.news-card { height: 100%; }
.news-grid { align-items: stretch; }

/* --- News card title --- */
.news-card h3 { font-size: clamp(15px, 1.6vw, 18px) !important; }
.news-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Плавающая WP edit кнопка: только для admin --- */
.wp-block-post-content .components-button,
.block-editor-block-toolbar { z-index: auto; }

/* ── Services section: scroll-margin so sticky header doesn't cover heading ── */
.section--services {
  scroll-margin-top: 90px;
}
/* Services grid equal-height rows */
.services-grid {
  align-items: stretch;
}
.services-grid .service-card {
  height: 100%;
}
/* On hover: slightly highlight chip area */
@media (hover: hover) {
  .service-card:hover .service-chip {
    border-color: rgba(233,101,38,.3);
    color: #333;
  }
}

/* ══════════════════════════════════════════════════════
   SERVICE CARDS — ЕДИНСТВЕННЫЙ ИСТОЧНИК ВЫСОТЫ
   Перебивает все предыдущие height-правила
══════════════════════════════════════════════════════ */
.services-grid {
  grid-auto-rows: 360px !important;
}
.service-card,
.service-card-inner,
.service-card-front,
.service-card-back {
  height: 360px !important;
  min-height: unset !important;
}
.service-card-front,
.service-card-back {
  overflow: hidden !important;
}
@media (max-width: 1024px) and (min-width: 768px) {
  .services-grid { grid-auto-rows: 400px !important; }
  .service-card,
  .service-card-inner,
  .service-card-front,
  .service-card-back { height: 400px !important; }
}
@media (max-width: 767px) {
  .services-grid { grid-auto-rows: 310px !important; }
  .service-card,
  .service-card-inner,
  .service-card-front,
  .service-card-back { height: 310px !important; }
  .service-card-desc { -webkit-line-clamp: 2; }
}

/* ══════════════════════════════════════════════════════
   MOBILE NAV — полноэкранное красивое меню
══════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Overlay: полная высота от шапки до низа */
  #primary-nav.open {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 72px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: calc(100dvh - 72px) !important;
    background: #111111 !important;
    padding: 8px 0 0 !important;
    border-top: 1px solid rgba(233,101,38,.25) !important;
    overflow-y: auto !important;
    z-index: 9000 !important;
  }

  /* Список пунктов — растягивается */
  #primary-nav.open .nav-list {
    flex-direction: column !important;
    gap: 0 !important;
    padding: 8px 24px 0 !important;
    flex: 1 !important;
  }

  /* Пункт верхнего уровня */
  #primary-nav.open .nav-list > li {
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
  }
  #primary-nav.open .nav-list > li:first-child {
    border-top: none !important;
  }

  /* Ссылка пункта */
  #primary-nav.open .nav-list > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 0 !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    color: rgba(255,255,255,.9) !important;
    text-decoration: none !important;
    letter-spacing: -0.01em !important;
    transition: color 0.2s !important;
  }
  #primary-nav.open .nav-list > li > a:hover,
  #primary-nav.open .nav-list > li.current-menu-item > a {
    color: #e96526 !important;
  }

  /* Стрелка дропдауна */
  #primary-nav.open .nav-list > li > a .nav-arrow {
    font-size: 12px !important;
    opacity: 0.5 !important;
    transition: transform 0.25s, opacity 0.25s !important;
  }
  #primary-nav.open .nav-list > li.open > a .nav-arrow {
    transform: rotate(180deg) !important;
    opacity: 1 !important;
    color: #e96526 !important;
  }

  /* Подменю-аккордеон */
  #primary-nav.open .nav-dropdown {
    position: static !important;
    display: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 0 12px 16px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    min-width: unset !important;
  }
  #primary-nav.open .nav-has-dropdown.open > .nav-dropdown {
    display: block !important;
  }
  #primary-nav.open .nav-dropdown li a {
    display: block !important;
    padding: 9px 8px !important;
    font-size: 14px !important;
    color: rgba(255,255,255,.55) !important;
    transition: color 0.2s !important;
  }
  #primary-nav.open .nav-dropdown li a:hover {
    color: #e96526 !important;
  }

  /* Футер меню — контакты + CTA */
  .mobile-nav-footer {
    padding: 20px 24px 32px !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
    margin-top: auto !important;
    background: #111 !important;
  }
  .mobile-nav-contacts {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
  }
  .mobile-nav-contact-link {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: rgba(255,255,255,.55) !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
  }
  .mobile-nav-contact-link:hover { color: #e96526 !important; }
  .mobile-nav-contact-link svg { flex-shrink: 0; color: #e96526; }
  .mobile-nav-cta {
    width: 100% !important;
    justify-content: center !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
  }

  /* Скрыть футер на десктопе */
}
@media (min-width: 769px) {
  .mobile-nav-footer { display: none; }
}

/* ══════════════════════════════════════════════════════
   DROPDOWN HOVER BRIDGE FIX
   Псевдо-элемент перекрывает зазор между пунктом и дропдауном,
   мышь не теряет hover при переходе из пункта в дропдаун
══════════════════════════════════════════════════════ */
@media (hover: hover) {
  /* Уменьшаем зазор до 2px — визуально всё равно есть отступ */
  #primary-nav ul.nav-dropdown {
    top: calc(100% + 2px) !important;
    /* Невидимая прозрачная зона над дропдауном — перекрывает зазор */
  }
  #primary-nav ul.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 14px;
    background: transparent;
    pointer-events: all;
  }
  /* Чуть больше padding у пунктов для более лёгкого наведения */
  #primary-nav .nav-list > li > a,
  #primary-nav ul.menu > li > a {
    padding-left: 14px !important;
    padding-right: 14px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }
  /* Пункты дропдауна — чуть больше зона клика */
  #primary-nav ul.nav-dropdown > li > a {
    padding: 12px 22px !important;
  }
}

/* JS-hover class holds dropdown open during mouse travel */
@media (hover: hover) {
  #primary-nav .nav-has-dropdown.js-hover > ul.nav-dropdown {
    display: flex !important;
  }
}

/* ══════════════════════════════════════════════════════
   NO-FLIP CARDS — карточки без переворота, кликабельные
══════════════════════════════════════════════════════ */

/* Делаем <a>.service-card блочным, убираем флип */
.service-card {
  display: block !important;
  text-decoration: none !important;
  color: inherit !important;
  perspective: none !important;
  transform-style: flat !important;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important;
}

/* Hover: лёгкий подъём */
@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 16px 48px rgba(0,0,0,.12) !important;
    border-color: rgba(233,101,38,.3) !important;
  }
  .service-card:hover .card-link-hint {
    color: var(--orange) !important;
    gap: 8px !important;
  }
}

/* Фронт-фейс занимает всю высоту, флип отключён */
.service-card-front {
  position: relative !important;
  transform: none !important;
  backface-visibility: visible !important;
  -webkit-backface-visibility: visible !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Бэк скрыт — его больше нет в HTML, на всякий случай */
.service-card-back {
  display: none !important;
}

/* card-link-hint: всегда оранжевый (был серый span) */
.card-link-hint {
  color: var(--orange) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  margin-top: auto !important;
  padding-top: 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: gap 0.18s ease !important;
}

/* ══════════════════════════════════════════════════════
   COOKIE CONSENT BANNER
══════════════════════════════════════════════════════ */
.sdl-cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 99999;
  background: #111;
  border-top: 1px solid rgba(233,101,38,.3);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}
.sdl-cookie-banner.sdl-cookie-visible {
  transform: translateY(0);
}
.sdl-cookie-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.sdl-cookie-text {
  flex: 1;
  min-width: 220px;
  font-size: 13px;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
  margin: 0;
}
.sdl-cookie-text a {
  color: var(--orange);
  text-decoration: underline;
}
.sdl-cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.sdl-cookie-btn {
  padding: 9px 22px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: opacity .2s;
}
.sdl-cookie-btn--accept {
  background: var(--orange);
  color: #fff;
}
.sdl-cookie-btn--decline {
  background: transparent;
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.15);
}
.sdl-cookie-btn:hover { opacity: .85; }

@media (max-width: 600px) {
  .sdl-cookie-inner { padding: 14px 20px; gap: 14px; }
  .sdl-cookie-actions { width: 100%; }
  .sdl-cookie-btn { flex: 1; }
}

/* ══════════════════════════════════════════════════════
   INLINE STYLE REPLACEMENTS
══════════════════════════════════════════════════════ */
.contact-cta-btn { margin-top: 32px; }
.footer-cta-wrap { margin-top: 20px; }
.footer-cta-btn  { padding: 12px 24px; font-size: 14px; }
.page-cta        { margin-top: 0; }

/* ══════════════════════════════════════════════════════
   CUSTOM SELECT DROPDOWN
══════════════════════════════════════════════════════ */
.sdl-select-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 380px;
  font-family: var(--font);
}
.sdl-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 13px 14px 13px 16px;
  background: #fff;
  border: 1.5px solid rgba(0,0,0,.12);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  text-align: left;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.sdl-select-trigger:hover {
  border-color: rgba(233,101,38,.5);
}
.sdl-select-wrap.is-open .sdl-select-trigger {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(233,101,38,.12);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.sdl-select-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sdl-select-arrow {
  flex-shrink: 0;
  color: var(--orange);
  display: flex;
  align-items: center;
  transition: transform .2s cubic-bezier(.4,0,.2,1);
}
.sdl-select-wrap.is-open .sdl-select-arrow {
  transform: rotate(180deg);
}

/* Dropdown list */
.sdl-select-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 9990;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,.08);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) rgba(255,255,255,.08);
}
.sdl-select-wrap.is-open .sdl-select-list {
  display: block;
  animation: sdl-list-in .18s cubic-bezier(.4,0,.2,1);
}
/* Flip up variant */
.sdl-select-wrap.opens-up .sdl-select-list {
  top: auto;
  bottom: 100%;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
}
.sdl-select-wrap.opens-up.is-open .sdl-select-trigger {
  border-radius: 0 0 var(--radius) var(--radius);
  border-bottom-color: var(--orange);
  border-top-color: transparent;
}
@keyframes sdl-list-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Options */
.sdl-select-option {
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.78);
  cursor: pointer;
  transition: background .12s, color .12s, padding-left .12s;
  line-height: 1.4;
}
.sdl-select-option:hover {
  background: rgba(233,101,38,.12);
  color: #fff;
  padding-left: 22px;
}
.sdl-select-option.is-selected {
  color: var(--orange);
  background: rgba(233,101,38,.08);
  font-weight: 600;
}
.sdl-select-option.is-selected::before {
  content: '✓ ';
  font-size: 12px;
  opacity: .8;
}

/* Scrollbar webkit */
.sdl-select-list::-webkit-scrollbar { width: 4px; }
.sdl-select-list::-webkit-scrollbar-track { background: transparent; }
.sdl-select-list::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 4px; }

@media (max-width: 600px) {
  .sdl-select-wrap { max-width: 100%; }
  .sdl-select-list { max-height: 200px; }
}

/* ══════════════════════════════════════════════════════
   CF7 SELECT — кастомный дропдаун в стиле сайта
══════════════════════════════════════════════════════ */
.wpcf7 select,
.wpcf7-form select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  max-width: 380px;
  padding: 13px 44px 13px 16px;
  border: 1.5px solid rgba(0,0,0,.12);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23e96526' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  line-height: 1.4;
}
.wpcf7 select:focus,
.wpcf7-form select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(233,101,38,.12);
}
.wpcf7 select:hover,
.wpcf7-form select:hover {
  border-color: rgba(233,101,38,.5);
}

/* обёртка label для select — добавляем блок и ограничиваем ширину */
.wpcf7 label:has(select),
.wpcf7-form label:has(select) {
  display: block;
  margin-bottom: 20px;
}
.wpcf7 label:has(select) > span.wpcf7-form-control-wrap,
.wpcf7-form label:has(select) > span.wpcf7-form-control-wrap {
  display: block;
  margin-top: 6px;
}

/* ══════════════════════════════════════════════════════
   CF7 CHECKBOX — стильные чекбоксы в стиле сайта
══════════════════════════════════════════════════════ */
.wpcf7 .wpcf7-checkbox .wpcf7-list-item,
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item {
  display: inline-flex;
  margin-right: 0;
  margin-bottom: 0;
}
.wpcf7 .wpcf7-checkbox,
.wpcf7-form .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.wpcf7 .wpcf7-checkbox .wpcf7-list-item label,
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1.5px solid rgba(0,0,0,.1);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s;
  user-select: none;
  line-height: 1.3;
  white-space: nowrap;
}
.wpcf7 .wpcf7-checkbox .wpcf7-list-item label:hover,
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item label:hover {
  border-color: var(--orange);
  background: rgba(233,101,38,.04);
}
/* Скрываем нативный чекбокс */
.wpcf7 .wpcf7-checkbox .wpcf7-list-item input[type="checkbox"],
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
/* Кастомный маркер */
.wpcf7 .wpcf7-checkbox .wpcf7-list-item label::before,
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item label::before {
  content: '';
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1.5px solid rgba(0,0,0,.25);
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
}
.wpcf7 .wpcf7-checkbox .wpcf7-list-item input[type="checkbox"]:checked + span::before,
.wpcf7 .wpcf7-checkbox .wpcf7-list-item input[type="checkbox"]:checked ~ label::before,
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item input[type="checkbox"]:checked + span::before,
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item input[type="checkbox"]:checked ~ label::before {
  background: var(--orange);
  border-color: var(--orange);
}
/* Checked state — метка + бордер тега */
.wpcf7 .wpcf7-checkbox .wpcf7-list-item:has(input:checked) label,
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item:has(input:checked) label {
  border-color: var(--orange);
  background: rgba(233,101,38,.06);
  color: var(--orange);
}
.wpcf7 .wpcf7-checkbox .wpcf7-list-item:has(input:checked) label::before,
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item:has(input:checked) label::before {
  background: var(--orange);
  border-color: var(--orange);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Секция с кредиторами и имуществом — заголовки над чекбоксами */
.wpcf7-form > p > br { display: none; }
.wpcf7 .wpcf7-checkbox-wrap-label,
.wpcf7-form .wpcf7-checkbox-wrap-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

@media (max-width: 600px) {
  .wpcf7 select,
  .wpcf7-form select { max-width: 100%; }
  .wpcf7 .wpcf7-checkbox,
  .wpcf7-form .wpcf7-checkbox { gap: 8px; }
  .wpcf7 .wpcf7-checkbox .wpcf7-list-item label,
  .wpcf7-form .wpcf7-checkbox .wpcf7-list-item label { font-size: 12px; padding: 7px 11px; white-space: normal; }
}
