/* ===========================================================
   IT-Мастер Пенза — общий стиль сайта
   Палитра: #E8F4FD (фон-акцент), #B3E0FF (голубой средний),
            #4DA8DA (голубой основной/акцент), #1A5276 (текст тёмно-синий)
   =========================================================== */

:root {
  --bg-light: #E8F4FD;
  --blue-soft: #B3E0FF;
  --blue-main: #4DA8DA;
  --blue-dark: #1A5276;
  --white: #FFFFFF;
  --text-body: #2C3E50;
  --text-muted: #5A7A99;
  --shadow-sm: 0 2px 10px rgba(26, 82, 118, 0.08);
  --shadow-md: 0 8px 24px rgba(26, 82, 118, 0.12);
  --shadow-lg: 0 16px 40px rgba(26, 82, 118, 0.16);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container-max: 1200px;
  --header-height: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  font-family: var(--font-main);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

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

section { padding: 88px 0; }

@media (max-width: 768px) {
  section { padding: 56px 0; }
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-main);
  background: var(--bg-light);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
}

h3 { font-size: 22px; margin-bottom: 10px; }

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

.section-head p {
  color: var(--text-muted);
  font-size: 17px;
}

.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-main), #3B8FC0);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.btn-secondary {
  background: var(--white);
  color: var(--blue-dark);
  border: 2px solid var(--blue-soft);
}
.btn-secondary:hover { transform: translateY(-3px); border-color: var(--blue-main); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: var(--bg-light);
  color: var(--blue-dark);
}
.btn-ghost:hover { background: var(--blue-soft); transform: translateY(-2px); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(179, 224, 255, 0.6);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}
.header.scrolled { box-shadow: var(--shadow-sm); }

.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--blue-dark);
  flex-shrink: 0;
}
.logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--blue-main), var(--blue-dark));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}
.nav a {
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 15px;
  color: var(--text-body);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.nav a:hover { background: var(--bg-light); color: var(--blue-dark); }

@media (max-width: 1180px) {
  .nav { gap: 2px; }
  .nav a { font-size: 14px; padding: 9px 9px; }
  .header-contact { display: none; }
}

@media (max-width: 640px) {
  .header-actions .btn-primary { display: none; }
}

.nav-item-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 260px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s ease;
}
.nav-item-dropdown:hover .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14.5px;
}
.dropdown a:hover { background: var(--bg-light); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.header-contact {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  text-align: right;
  color: var(--text-muted);
}
.header-contact strong { color: var(--blue-dark); font-size: 15px; }

.burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--bg-light);
  border: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.burger span { width: 20px; height: 2px; background: var(--blue-dark); border-radius: 2px; transition: 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav { display: none; }
  .header-contact { display: none; }
  .burger { display: flex; }
}

.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  padding: 20px 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  display: block;
  padding: 16px 4px;
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid var(--bg-light);
  color: var(--blue-dark);
}
.mobile-menu .mm-sub { padding-left: 16px; font-size: 15.5px; font-weight: 400; color: var(--text-muted); }
.mobile-menu .btn { margin-top: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-height) + 72px);
  padding-bottom: 88px;
  background: radial-gradient(circle at 15% 20%, var(--bg-light) 0%, var(--white) 55%),
              linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -160px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--blue-soft) 0%, rgba(179,224,255,0) 70%);
  border-radius: 50%;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 {
  font-size: clamp(32px, 4.6vw, 50px);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero .subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3.1;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  bottom: 20px; left: 20px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-dark);
}

/* ---------- Perks / features ---------- */
.perks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .perks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .perks { grid-template-columns: 1fr; } }

/* Variant for smaller groups placed inside a narrower content column
   (e.g. next to a sidebar): 2 columns by default, 1 column on narrow
   screens — instead of relying on a fixed 2-column inline style that
   never collapsed on mobile. */
.perks-compact { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { .perks-compact { grid-template-columns: 1fr; } }

.perk-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(179,224,255,0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.perk-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.perk-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--bg-light), var(--blue-soft));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.perk-card h3 { font-size: 17px; margin-bottom: 6px; }
.perk-card p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- About ---------- */
.about { background: var(--bg-light); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-text p { color: var(--text-body); font-size: 16.5px; margin-bottom: 24px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  background: var(--white);
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-dark);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 8px;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-image img { width: 100%; }

/* ---------- Services cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 980px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(179,224,255,0.4);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card-top {
  height: 160px;
  background: linear-gradient(135deg, var(--blue-main), var(--blue-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 46px;
  position: relative;
}
.service-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.service-card-body p { color: var(--text-muted); font-size: 15px; margin-bottom: 22px; flex: 1; }

/* ---------- Intro paragraph above lists ---------- */
.lead-text {
  font-size: 16.5px;
  color: var(--text-body);
  max-width: 740px;
  margin-bottom: 28px;
}
.lead-text + .lead-text { margin-top: -14px; }

/* ---------- Checklist (paragraph style with emoji + indentation) ---------- */
.checklist { display: flex; flex-direction: column; gap: 14px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-light);
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
}
.checklist li .emoji {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
}
.checklist li .li-text { padding-top: 2px; }
.checklist li .li-text strong {
  display: block;
  color: var(--blue-dark);
  font-size: 15.5px;
  margin-bottom: 4px;
}
.checklist li .li-text span {
  display: block;
  color: var(--text-muted);
  font-size: 14.5px;
  padding-left: 4px;
  border-left: 2px solid var(--blue-soft);
  padding-left: 12px;
  margin-left: 2px;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(179,224,255,0.5);
  position: relative;
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-soft), var(--bg-light));
  color: var(--blue-dark);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 18px;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: calc(var(--header-height) + 24px) 0 0;
  font-size: 14px;
  color: var(--text-muted);
}
.breadcrumbs a:hover { color: var(--blue-main); }
.breadcrumbs span { margin: 0 6px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 32px 0 64px;
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
}
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; max-width: 780px; }
.page-hero p { font-size: 17px; color: var(--text-muted); max-width: 640px; margin-bottom: 28px; }

/* ---------- Safety block ---------- */
.safety-block {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-main));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 700px) { .safety-block { grid-template-columns: 1fr; text-align: center; } }
.safety-block .icon-big { font-size: 48px; }
.safety-block h3 { color: var(--white); }
.safety-block p { opacity: 0.92; font-size: 15.5px; margin-bottom: 6px; }
.safety-block p:last-child { margin-bottom: 0; }

/* ---------- FAQ accordion ---------- */
.accordion-item {
  background: var(--white);
  border: 1px solid rgba(179,224,255,0.6);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
}
.accordion-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--blue-dark);
  text-align: left;
}
.accordion-question:hover { background: var(--bg-light); }
.accordion-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: var(--blue-main);
  transition: transform 0.25s ease;
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); background: var(--blue-main); color: var(--white); }
.accordion-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 15px;
}
.accordion-answer p { margin-bottom: 8px; }
.accordion-answer p:last-child { margin-bottom: 0; }
.accordion-item.open .accordion-answer { max-height: 340px; padding: 0 24px 20px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 40px;
}
@media (max-width: 600px) { .form-card { padding: 26px 20px; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--blue-soft);
  font-family: var(--font-main);
  font-size: 15px;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-main);
  box-shadow: 0 0 0 4px rgba(77,168,218,0.15);
}
.field { margin-bottom: 16px; }
.form-note { font-size: 13px; color: var(--text-muted); margin-top: 12px; }
.form-success {
  display: none;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  font-weight: 600;
  color: var(--blue-dark);
  box-shadow: var(--shadow-sm);
}
.form-success.show { display: block; }

/* ---------- Captcha ---------- */
.captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.captcha-question {
  flex-shrink: 0;
  background: var(--white);
  border: 1.5px solid var(--blue-soft);
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 16px;
  color: var(--blue-dark);
  letter-spacing: 0.02em;
  user-select: none;
}
.captcha-row .captcha-input { flex: 1; }
.captcha-error {
  display: none;
  color: #C0392B;
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
}
.captcha-field.has-error .captcha-input { border-color: #C0392B; }
.captcha-field.has-error .captcha-error { display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--blue-main), var(--blue-dark));
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  color: var(--white);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.9); margin-bottom: 28px; font-size: 17px; }
.cta-band .btn-secondary { background: var(--white); border: none; }

/* ---------- Contacts page ---------- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .contacts-grid { grid-template-columns: 1fr; } }
.contact-info-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(179,224,255,0.7);
  font-size: 15.5px;
}
.contact-line:last-child { border-bottom: none; }
.contact-line strong { color: var(--blue-dark); }
.contact-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.requisites {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--blue-soft);
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.8;
}
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 320px;
}
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; font-size: 19px; margin-bottom: 14px; }
.footer p { font-size: 14.5px; color: rgba(255,255,255,0.65); max-width: 320px; }
.footer h4 { color: var(--white); font-size: 15px; margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 14.5px; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer ul a:hover { color: var(--white); }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: background 0.2s;
}
.footer-socials a:hover { background: rgba(255,255,255,0.22); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* ---------- Floating widget ---------- */
.floating-btn {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-main), var(--blue-dark));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  box-shadow: var(--shadow-lg);
  border: none;
  cursor: pointer;
  z-index: 1100;
  transition: transform 0.25s ease;
  animation: pulse 2.4s infinite;
}
.floating-btn:hover { transform: scale(1.08); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(77,168,218,0.45), var(--shadow-lg); }
  70% { box-shadow: 0 0 0 14px rgba(77,168,218,0), var(--shadow-lg); }
  100% { box-shadow: 0 0 0 0 rgba(77,168,218,0), var(--shadow-lg); }
}

.widget-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,82,118,0.35);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 26px;
}
.widget-overlay.open { opacity: 1; visibility: visible; }
.widget-popup {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 360px;
  padding: 28px;
  transform: translateY(30px) scale(0.96);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.widget-overlay.open .widget-popup { transform: translateY(0) scale(1); opacity: 1; }
.widget-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.widget-header h3 { margin-bottom: 0; font-size: 19px; }
.widget-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--bg-light);
  cursor: pointer;
  font-size: 16px;
  color: var(--blue-dark);
}
.widget-popup .form-note { margin-top: 14px; margin-bottom: 0; }

/* ---------- Fade-in on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .floating-btn { animation: none; }
}

/* ---------- Sidebar nav on inner pages ---------- */
.inner-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .inner-layout { grid-template-columns: 1fr; } }
.side-nav {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 20px;
}
.side-nav h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 14px; }
.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 6px;
  color: var(--text-body);
}
.side-nav a .side-nav-icon { flex-shrink: 0; }
.side-nav a .side-nav-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-nav a.active, .side-nav a:hover { background: var(--white); color: var(--blue-dark); box-shadow: var(--shadow-sm); }
