/*
Theme Name: Контракты Всем
Theme URI: https://kontraktvsem.ru
Description: Полноценная редактируемая WordPress-тема для рекрутингового агентства «Контракты Всем».
Version: 1.1.1
Author: Dmitry Glazkov
Author URI: https://dglazkov.ru
Text Domain: kontraktvsem
*/

/* ── CSS VARIABLES ── */
:root {
  --ink:          #1a1c20;
  --ink-soft:     #3d4148;
  --ink-muted:    #6b7280;
  --bg:           #f8f7f4;
  --bg-card:      #ffffff;
  --accent:       #1e3a5f;
  --accent-hover: #2c5282;
  --accent-sub:   #ebf0f7;
  --border:       #dde1e9;
  --green:        #1a6b3c;
  --green-bg:     #edf7f2;
  --rule:         1px solid #dde1e9;
  --radius:       6px;
  --max-w:        1100px;
  --transition:   0.2s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(28px, 5vw, 46px); }
h2 { font-size: clamp(22px, 3vw, 32px); margin-bottom: 16px; }
h3 { font-size: 18px; margin-bottom: 10px; }
h4 { font-size: 15px; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ── LAYOUT ── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}

.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 10px;
  display: block;
}

.section-lead {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 600px;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 48px;
}

hr.divider {
  border: none;
  border-top: var(--rule);
  margin: 0;
}

/* ── HEADER ── */
#site-header {
  background: var(--bg-card);
  border-bottom: var(--rule);
  position: sticky;
  top: 0;
  z-index: 200;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-branding a {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  color: inherit;
}

.site-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.site-tagline {
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── NAVIGATION ── */
.main-nav { display: flex; align-items: center; gap: 0; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}

.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a,
.main-nav ul li.current_page_item a {
  background: var(--accent-sub);
  color: var(--accent);
}

.header-phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  white-space: nowrap;
}

.header-phone-wrap a {
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
}

.header-phone-wrap span {
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── BURGER (mobile) ── */
.nav-toggle {
  display: none;
  background: none;
  border: var(--rule);
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── HERO ── */
.hero {
  background: var(--accent);
  color: #fff;
  padding: 80px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -100px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -120px; left: 3%;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 5px 14px;
  border-radius: 3px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
}

.hero h1 {
  color: #fff;
  max-width: 720px;
  margin-bottom: 22px;
}

.hero-lead {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 44px;
}

.hero-facts {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-fact strong {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: #fff;
}

.hero-fact span {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── HERO FORM LAYOUT ── */

.hero-inner--with-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  gap: 72px;
}

.hero-content {
  min-width: 0;
}

.hero-form-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 390px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  color: var(--text);
}

.hero-form-head,
.hero-form-kicker {
  display: none;
}

.hero-form-card h2,
.hero-form-card p {
  margin: initial;
}

.hero-form-body {
  margin: 0;
  width: 100%;
}

.hero-form-body > * {
  margin-top: 0;
  margin-bottom: 0;
}

.hero-form-body form {
  margin: 0;
}

.hero-form-body input,
.hero-form-body textarea,
.hero-form-body select {
  max-width: 100%;
}

.hero-form-body .btn,
.hero-form-body button,
.hero-form-body input[type="submit"] {
  width: 100%;
}

@media (max-width: 1080px) {
  .hero-inner--with-form {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 48px;
  }
}

@media (max-width: 980px) {
  .hero-inner--with-form {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-form-card {
    max-width: 520px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 56px 0 64px;
  }

  .hero-inner {
    padding: 0 18px;
  }

  .hero-facts {
    gap: 22px;
  }

  .hero-form-card {
    max-width: 100%;
  }
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  line-height: 1;
}

.btn-primary {
  background: #fff;
  color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-sub);
  color: var(--accent-hover);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.btn-dark {
  background: var(--accent);
  color: #fff;
}

.btn-dark:hover {
  background: var(--accent-hover);
  color: #fff;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── STEPS GRID ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background: var(--bg-card);
  padding: 32px 26px;
  transition: background var(--transition);
}

.step-card:hover { background: var(--accent-sub); }

.step-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 40px;
  font-weight: 600;
  color: var(--border);
  line-height: 1;
  margin-bottom: 14px;
  transition: color var(--transition);
}

.step-card:hover .step-num { color: var(--accent-sub); }

.step-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--ink);
}

.step-text {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ── CARDS GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: var(--rule);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(30,58,95,0.07);
}

.card-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-sub);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.card-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
}

.card p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ── LEGAL BLOCK ── */
.legal-block {
  background: var(--green-bg);
  border: 1px solid #b8deca;
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  max-width: 720px;
}

.legal-block svg {
  width: 22px;
  height: 22px;
  stroke: var(--green);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 2px;
}

.legal-block p {
  font-size: 14px;
  color: #1a3d2a;
  line-height: 1.65;
  margin: 0;
}

.legal-block strong { font-weight: 600; }

/* ── PAGE HERO (внутренние страницы) ── */
.page-hero {
  background: var(--accent);
  color: #fff;
  padding: 56px 0;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(24px, 4vw, 38px);
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  font-weight: 300;
  max-width: 560px;
  margin: 0;
}

/* ── TWO-COLUMN LAYOUT ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.two-col-text h2 { margin-bottom: 14px; }
.two-col-text p { color: var(--ink-soft); font-size: 15px; margin-bottom: 16px; }

.two-col-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.two-col-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink-soft);
}

.two-col-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 8px;
}

/* ── TEAM / PERSON CARD ── */
.person-card {
  background: var(--bg-card);
  border: var(--rule);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.person-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-sub);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.person-avatar svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}

.person-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 4px;
}

.person-role {
  font-size: 13px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── CONTACTS TABLE ── */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.contact-item dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.contact-item dd {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
}

.contact-item dd a {
  color: var(--accent);
  font-weight: 500;
}

/* ── REQUISITES BLOCK ── */
.req-block {
  background: var(--bg-card);
  border: var(--rule);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 560px;
}

.req-block h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: var(--rule);
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
}

.req-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: var(--rule);
  font-size: 14px;
}

.req-row:last-child { border-bottom: none; }

.req-row dt { color: var(--ink-muted); flex-shrink: 0; }
.req-row dd { color: var(--ink); text-align: right; font-weight: 500; }

/* ── FORM AREA ── */

.form-section {
  background: var(--accent);
  padding: 76px 0 84px;
  position: relative;
  overflow: hidden;
}

.form-section::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  pointer-events: none;
}

.form-section::after {
  content: "";
  position: absolute;
  bottom: -160px;
  left: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.form-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.form-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.form-section .section-label {
  color: rgba(255, 255, 255, 0.55);
}

.form-section h2 {
  color: #fff;
  margin-bottom: 14px;
}

.form-section .section-lead {
  color: rgba(255, 255, 255, 0.68);
  max-width: 680px;
}

.form-iframe-wrap {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  min-height: 0;
  display: block;
  padding: 0;
}

.form-iframe-wrap > * {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.form-iframe-wrap form {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.form-iframe-wrap iframe {
  width: 100%;
  max-width: 100%;
  border: none;
}

/* Если сам плагин формы ограничивает ширину карточки */
.form-iframe-wrap .gd-form,
.form-iframe-wrap .gd-form-wrap,
.form-iframe-wrap .gd-form-wrapper,
.form-iframe-wrap .gdf-form,
.form-iframe-wrap .gdf-form-wrap,
.form-iframe-wrap .airkondr-form,
.form-iframe-wrap .form-card {
  width: 100%;
  max-width: 100%;
}

/* Если внутри формы есть карточка с собственной шириной */
.form-iframe-wrap [class*="form"] {
  max-width: 100%;
}

@media (max-width: 980px) {
  .form-section {
    padding: 64px 0 72px;
  }

  .form-head {
    margin-bottom: 28px;
  }
}

@media (max-width: 640px) {
  .form-section {
    padding: 54px 0 62px;
  }

  .form-inner {
    padding: 0 18px;
  }

  .form-head {
    margin-bottom: 24px;
  }
}

/* ── FOOTER ── */
#site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.45);
  padding: 40px 0 28px;
}

.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-about .footer-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin-bottom: 12px;
  display: block;
}

.footer-about p {
  font-size: 13px;
  line-height: 1.65;
  max-width: 280px;
}

.footer-nav h4,
.footer-contacts h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  font-weight: 600;
}

.footer-nav ul li { margin-bottom: 8px; }

.footer-nav ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer-nav ul li a:hover { color: rgba(255,255,255,0.9); }

.footer-contacts p {
  font-size: 13px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.footer-contacts a {
  color: rgba(255,255,255,0.6);
}

.footer-contacts a:hover { color: rgba(255,255,255,0.9); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.35);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: span 2; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 680px) {
  .main-nav { display: none; }
  .main-nav.is-open { display: flex; }

  #site-header .header-inner { flex-wrap: wrap; height: auto; padding: 12px 24px; }

  .main-nav {
    order: 3;
    width: 100%;
    flex-direction: column;
    padding: 12px 0 8px;
    border-top: var(--rule);
  }

  .main-nav ul { flex-direction: column; width: 100%; gap: 2px; }
  .main-nav ul li a { padding: 10px 12px; }

  .nav-toggle { display: flex; }

  .hero-facts { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-about { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .steps-grid { grid-template-columns: 1fr; }
}

/* ── WORDPRESS CONTENT ── */
.site-main { min-height: 50vh; }
.entry-content { color: var(--ink-soft); }
.entry-content::after { content: ''; display: block; clear: both; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content ul:not([class]) {
  list-style: disc;
  padding-left: 1.25em;
  margin: 0 0 1em;
}
.entry-content ol:not([class]) {
  list-style: decimal;
  padding-left: 1.25em;
  margin: 0 0 1em;
}
.entry-content li:not([class]) { margin-bottom: .35em; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.entry-content th,
.entry-content td { border: var(--rule); padding: 10px 12px; text-align: left; }
.entry-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 10px 0 10px 18px;
  margin: 24px 0;
  color: var(--ink-soft);
}
.entry-content .alignwide { max-width: var(--max-w); margin-left: auto; margin-right: auto; }
.entry-content .alignfull { width: 100%; max-width: none; }
.kv-editable-content > .hero:first-child,
.kv-editable-content > .page-hero:first-child { margin-top: 0; }
.kv-form-placeholder {
  color: rgba(255,255,255,.75);
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  max-width: 520px;
}
.posts-list { display: grid; gap: 20px; }
.post-card {
  background: var(--bg-card);
  border: var(--rule);
  border-radius: var(--radius);
  padding: 28px;
}
.post-card h2 { font-size: 24px; margin-bottom: 10px; }
.navigation.pagination { margin-top: 32px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers {
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: var(--rule);
  border-radius: 4px;
  padding: 0 10px;
  background: var(--bg-card);
}
.page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.card-icon {
  position: relative;
}

.card-icon::before {
  content: "";
  width: 22px;
  height: 22px;
  display: block;
  background: var(--accent);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* 1. Возраст */
.cards-grid .card:nth-child(1) .card-icon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle fill='none' stroke='black' stroke-width='2' cx='12' cy='8' r='4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle fill='none' stroke='black' stroke-width='2' cx='12' cy='8' r='4'/%3E%3C/svg%3E");
}

/* 2. Приём 24/7 */
.cards-grid .card:nth-child(2) .card-icon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle fill='none' stroke='black' stroke-width='2' cx='12' cy='12' r='9'/%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 7v5l3 2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle fill='none' stroke='black' stroke-width='2' cx='12' cy='12' r='9'/%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 7v5l3 2'/%3E%3C/svg%3E");
}

/* 3. Вся Россия */
.cards-grid .card:nth-child(3) .card-icon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle fill='none' stroke='black' stroke-width='2' cx='12' cy='12' r='9'/%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' d='M3 12h18M12 3c3 3.5 3 14 0 18M12 3c-3 3.5-3 14 0 18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle fill='none' stroke='black' stroke-width='2' cx='12' cy='12' r='9'/%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' d='M3 12h18M12 3c3 3.5 3 14 0 18M12 3c-3 3.5-3 14 0 18'/%3E%3C/svg%3E");
}

/* 4. Прямой выход */
.cards-grid .card:nth-child(4) .card-icon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E");
}

/* 5. Документы */
.cards-grid .card:nth-child(5) .card-icon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M7 3h7l4 4v14H7zM14 3v4h4M10 13h5M10 17h5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M7 3h7l4 4v14H7zM14 3v4h4M10 13h5M10 17h5'/%3E%3C/svg%3E");
}

/* 6. Бесплатно */
.cards-grid .card:nth-child(6) .card-icon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}
/* ── WIDGET AREAS ── */
.content-sidebar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.content-sidebar-layout--full {
  display: block;
}

.content-area-main {
  min-width: 0;
}

.site-sidebar {
  background: var(--bg-card);
  border: var(--rule);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 90px;
}

.widget {
  margin-bottom: 28px;
}

.widget:last-child {
  margin-bottom: 0;
}

.widget-title,
.widget h2,
.widget h3 {
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.widget p,
.widget li {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.widget ul,
.widget ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.widget li {
  margin-bottom: 8px;
}

.widget li:last-child {
  margin-bottom: 0;
}

.widget a {
  color: var(--accent);
  font-weight: 500;
}

.widget a:hover {
  color: var(--accent-hover);
}

.widget img {
  height: auto;
}

.widget select,
.widget input[type="text"],
.widget input[type="search"],
.widget input[type="email"] {
  width: 100%;
  max-width: 100%;
  border: var(--rule);
  border-radius: var(--radius);
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
}

.widget button,
.widget input[type="submit"] {
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}

.widget button:hover,
.widget input[type="submit"]:hover {
  background: var(--accent-hover);
}

#site-footer .widget-title,
#site-footer .widget h2,
#site-footer .widget h3,
#site-footer .footer-widget-area h4 {
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
  font-weight: 600;
}

#site-footer .widget p,
#site-footer .widget li,
#site-footer .widget .textwidget {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,0.45);
}

#site-footer .widget a {
  color: rgba(255,255,255,0.6);
}

#site-footer .widget a:hover {
  color: rgba(255,255,255,0.9);
}

#site-footer .widget ul,
#site-footer .widget ol {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

#site-footer .widget li {
  margin-bottom: 8px;
}

.footer-bottom.footer-bottom--widget {
  display: block;
}

.footer-bottom.footer-bottom--widget .widget {
  margin-bottom: 0;
}

.footer-bottom.footer-bottom--widget .widget p,
.footer-bottom.footer-bottom--widget .widget li,
.footer-bottom.footer-bottom--widget .widget .textwidget {
  font-size: 12px;
}

@media (max-width: 900px) {
  .content-sidebar-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-sidebar {
    position: static;
  }
}
