/* =======================================================================
   NIKMASTER CSS v2 — навчальна версія
   Структура:
   1) Базові змінні та ресети
   2) Глобальна розкладка та типографіка
   3) Кнопки
   4) Header / Навігація
   5) Hero (включно з варіантом для зварювання)
   6) Універсальні сітки і картки
   7) Ціни
   8) Слайдер (портфоліо)
   9) Етапи / Steps
   10) FAQ
   11) About
   12) Reviews
   13) Форми (калькулятор + контакти)
   14) Контактна секція (dark theme)
   15) Карта, гарантії, футер
   16) Адаптив (@media)
======================================================================= */


/* =======================================================================
   1) БАЗОВІ ЗМІННІ ТА РЕСЕТ
======================================================================= */

:root {
  /* Кольори */
  --nm-color-bg: #f5f5f7;
  --nm-color-text: #222222;
  --nm-color-muted: #555555;

  --nm-color-primary: #3366ff;
  --nm-color-primary-soft: #e3e7ff;
  --nm-color-primary-dark: #1d2e70;

  --nm-color-card-bg: #ffffff;
  --nm-color-card-soft: #fafbff;

  --nm-color-footer-bg: #101017;

  /* Тіні */
  --nm-shadow-soft: 0 10px 26px rgba(0, 0, 0, 0.10);
  --nm-shadow-card: 0 14px 34px rgba(0, 0, 0, 0.12);
  --nm-shadow-card-strong: 0 20px 42px rgba(0, 0, 0, 0.16);
  --nm-shadow-hero: 0 24px 60px rgba(0, 0, 0, 0.25);

  /* Радіуси */
  --nm-radius-pill: 999px;
  --nm-radius-card: 18px;
  --nm-radius-large: 24px;

  /* Розміри / відступи */
  --nm-section-padding-y: 36px;
  --nm-section-padding-x: 20px;

  /* Брекпоінти (для читабельності в коментарях) */
  /* mobile: max-width: 767px; */
  /* tablet: min-width: 768px; */
  /* desktop: min-width: 1024px; */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: var(--nm-color-bg);
  color: var(--nm-color-text);
}

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

a:not(.nm-btn),
a:not(.nm-btn):visited {
  color: var(--nm-color-primary);
}

a:not(.nm-btn):hover,
a:not(.nm-btn):focus {
  color: var(--nm-color-primary-dark);
  text-decoration: underline;
}

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


/* =======================================================================
   2) ГЛОБАЛЬНА РОЗКЛАДКА ТА ТИПОГРАФІКА
======================================================================= */

.nm-section {
  padding: var(--nm-section-padding-y) var(--nm-section-padding-x);
  text-align: center;
}

.nm-container {
  max-width: 1400px;
  margin-inline: auto;
}

h1, h2, h3, h4 {
  margin: 0 0 16px;
  font-family: inherit;
}

.nm-section h2 {
  font-size: clamp(24px, 4vw, 32px);
}

.nm-section-intro {
  max-width: 720px;
  margin: 0 auto 32px;
  color: #0f4ad2;
  font-size: 16px;
}


/* =======================================================================
   3) КНОПКИ
======================================================================= */

.nm-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--nm-radius-pill);
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  transition: 0.3s ease;
  cursor: pointer;
  border: none;
  color: var(--nm-color-text);
}

.nm-btn-primary {
  background: linear-gradient(135deg, var(--nm-color-primary), #5a8bff);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.nm-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

.nm-btn-outline {
  border: 2px solid var(--nm-color-primary);
  color: var(--nm-color-primary);
  background: transparent;
}

.nm-btn-outline:hover {
  background: var(--nm-color-primary);
  color: #fff;
}


/* =======================================================================
   4) HEADER / НАВІГАЦІЯ
======================================================================= */

.nm-header {
  padding: 14px var(--nm-section-padding-x);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 245, 247, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e0e0e0;
}

.nm-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin-inline: auto;
  gap: 16px;
  flex-wrap: nowrap;
}

.nm-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nm-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nm-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--nm-radius-pill);
  background: linear-gradient(135deg, var(--nm-color-primary), #8aa3ff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.nm-logo-text {
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 16px;
}

.nm-nav {
  display: flex;
  flex: 1;
  flex-wrap: nowrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}

.nm-nav::-webkit-scrollbar {
  display: none;
}

.nm-nav-toggle__checkbox {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.nm-nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--nm-radius-pill);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.nm-nav-toggle__icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.nm-nav-toggle__line {
  width: 18px;
  height: 2px;
  background: #111111;
  border-radius: 999px;
}

.nm-nav-toggle__text {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #111;
}

.nm-nav-toggle:focus-visible {
  outline: 2px solid var(--nm-color-primary);
  outline-offset: 2px;
}

.nm-nav a {
  font-size: 14px;
  color: #333;
  padding: 6px 10px;
  border-radius: var(--nm-radius-pill);
  transition: 0.2s ease;
  white-space: nowrap;
}

.nm-nav a:hover {
  background: var(--nm-color-primary-soft);
  color: var(--nm-color-primary-dark);
}

.nm-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  color: var(--nm-color-primary);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
  border-radius: var(--nm-radius-pill);
  background: linear-gradient(135deg, rgba(90, 139, 255, 0.12), rgba(255, 255, 255, 0.02));
  box-shadow:
    inset 0 0 0 1px rgba(90, 139, 255, 0.35),
    0 12px 26px rgba(90, 139, 255, 0.18),
    0 4px 10px rgba(0, 0, 0, 0.06);
}

.nm-phone__number {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.nm-phone:hover {
  color: var(--nm-color-primary-dark);
  background: linear-gradient(135deg, rgba(90, 139, 255, 0.18), rgba(255, 255, 255, 0.06));
  box-shadow:
    inset 0 0 0 1px rgba(90, 139, 255, 0.45),
    0 14px 30px rgba(90, 139, 255, 0.24),
    0 6px 12px rgba(0, 0, 0, 0.08);
}


/* =======================================================================
   5) HERO
======================================================================= */

.nm-hero {
  padding-top: 96px;
  padding-bottom: 96px;
  background: radial-gradient(circle at top left, #e5ebff 0, #f5f5f7 40%, #f5f5f7 100%);
}

.nm-hero-inner {
  display: grid;
  gap: 32px;
  align-items: center;
}

.nm-hero-text h1 {
  font-size: clamp(28px, 6vw, 40px);
}

.nm-hero-subtitle {
  font-size: 18px;
  margin-bottom: 12px;
  max-width: 640px;
  margin-inline: auto;
}

.nm-hero-description {
  font-size: 16px;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 24px;
  color: #444;
}

.nm-hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nm-hero-media {
  display: flex;
  justify-content: center;
}

.nm-hero-figure {
  max-width: 800px;
  border-radius: var(--nm-radius-large);
  overflow: hidden;
  box-shadow: var(--nm-shadow-hero);
  background: #000;
}

.nm-hero-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.nm-hero-figure figcaption {
  padding: 10px 16px 14px;
  font-size: 14px;
  color: #f0f0f0;
  text-align: left;
}

/* =======================================================================
   6) УНІВЕРСАЛЬНІ СІТКИ І КАРТКИ
======================================================================= */

.nm-cards-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(334px, 1fr));
}

.nm-card {
  background: var(--nm-color-card-bg);
  border-radius: var(--nm-radius-card);
  padding: 24px 22px;
  box-shadow: var(--nm-shadow-card);
  text-align: left;
  transition: 0.3s ease;
}

.nm-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--nm-shadow-card-strong);
}

.nm-card-soft {
  background: var(--nm-color-card-soft);
}

.nm-card-combo {
  border-left: 4px solid var(--nm-color-primary);
}

.nm-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  text-align: left;
}


/* =======================================================================
   7) ЦІНИ
======================================================================= */

.nm-prices-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.nm-price-card {
  background: var(--nm-color-card-bg);
  padding: 24px 22px;
  border-radius: var(--nm-radius-card);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.nm-price-value {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.nm-price-note {
  font-size: 14px;
  color: var(--nm-color-muted);
}


/* =======================================================================
   8) СЛАЙДЕР (ПОРТФОЛІО)
   CSS-only slider на радіокнопках.
   FIX:
   - прибираємо "ривок" (radio як fixed)
   - прибираємо "рамку" від обрізаних тіней (padding + shadow)
======================================================================= */

.nm-slider {
  max-width: 900px;
  width: min(900px, 100%);
  margin: 24px auto 0;
  position: relative;
  box-sizing: border-box;
  padding-inline: clamp(10px, 3.5vw, 18px);
}

/* FIX 1: radio не має бути скрол-ціллю */
.nm-slider input {
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* В’юпорт */
.nm-slider-viewport {
  overflow: hidden;
  border-radius: 18px;
  transform: translateZ(0); /* FIX 3: менше "дрижить" */
}

/* трек */
.nm-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.6s ease;
  will-change: transform;
}

/* слайд */
.nm-slide {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;

  /* FIX 2: більше "запасу" під тінь, щоб не виглядало обрізано */
  padding: clamp(12px, 2.6vw, 36px);
}

.nm-slide-figure {
  border-radius: var(--nm-radius-card);
  overflow: hidden;
  background: #000;
  margin: 0 0 14px;

  /* FIX 2: більш природна тінь (менший blur = менше шансів обрізання) */
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.20);
}

.nm-slide-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.nm-slide-figure figcaption {
  padding: 10px 16px 12px;
  font-size: 14px;
  color: #f0f0f0;
  text-align: left;
}

.nm-slide-text {
  font-size: 15px;
  max-width: 700px;
  margin: 0 auto;
}

/* dots */
.nm-slider-dots {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 6px 0;
}

.nm-slider-dots label {
  width: 10px;
  height: 10px;
  border-radius: var(--nm-radius-pill);
  border: 2px solid var(--nm-color-primary);
  cursor: pointer;
  transition: 0.3s ease;
  padding: 8px;
  box-sizing: content-box;
}

/* radio -> track */
#portfolio-slide-1:checked ~ .nm-slider-viewport .nm-slider-track { transform: translateX(0%); }
#portfolio-slide-2:checked ~ .nm-slider-viewport .nm-slider-track { transform: translateX(-100%); }
#portfolio-slide-3:checked ~ .nm-slider-viewport .nm-slider-track { transform: translateX(-200%); }

/* active dot */
#portfolio-slide-1:checked ~ .nm-slider-dots label:nth-child(1),
#portfolio-slide-2:checked ~ .nm-slider-dots label:nth-child(2),
#portfolio-slide-3:checked ~ .nm-slider-dots label:nth-child(3) {
  background: var(--nm-color-primary);
}

/* (Опційно) видимий фокус на dot при навігації клавіатурою */
#portfolio-slide-1:focus-visible ~ .nm-slider-dots label:nth-child(1),
#portfolio-slide-2:focus-visible ~ .nm-slider-dots label:nth-child(2),
#portfolio-slide-3:focus-visible ~ .nm-slider-dots label:nth-child(3) {
  outline: 2px solid var(--nm-color-primary);
  outline-offset: 4px;
}

/* додатковий захист від горизонтального скролу */
.nm-portfolio,
.nm-slider,
.nm-slider-viewport {
  max-width: 100%;
}

@media (max-width: 480px) {
  .nm-slider { padding-inline: 12px; }

  /* на дуже малих — тінь і запас теж мають бути компактні */
  .nm-slide { padding: 12px; }
}

/* =======================================================================
   9) ЕТАПИ (STEPS) — upgraded timeline
   - автоматична нумерація (01, 02, 03…)
   - таймлайн-лінія + маркери
   - “преміум” hover + акцент
======================================================================= */

.nm-steps-list {
  list-style: none;
  padding: 0;
  max-width: 860px;
  margin: 0 auto;
  text-align: left;

  /* магія нумерації */
  counter-reset: nmStep;
  display: grid;
  gap: 14px;
}

/* один крок */
.nm-steps-list li {
  position: relative;
  padding: 18px 18px 18px 64px; /* місце під номер/маркер */
  background: var(--nm-color-card-bg);
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
}

/* hover — легкий “ліфт” */
.nm-steps-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
  border-color: rgba(51, 102, 255, 0.22);
}

/* вертикальна лінія таймлайну */
.nm-steps-list li::before {
  content: "";
  position: absolute;
  left: 30px;
  top: -18px;
  bottom: -18px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(51, 102, 255, 0.0),
    rgba(51, 102, 255, 0.35),
    rgba(51, 102, 255, 0.0)
  );
}

/* маркер-коло + номер */
.nm-steps-list li::after {
  counter-increment: nmStep;
  content: counter(nmStep, decimal-leading-zero);

  position: absolute;
  left: 16px;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 999px;

  display: grid;
  place-items: center;

  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;

  color: #fff;
  background: linear-gradient(135deg, var(--nm-color-primary), #5a8bff);
  box-shadow:
    0 10px 18px rgba(51, 102, 255, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);

  transition: transform .18s ease, box-shadow .18s ease;
}

/* hover: маркер “пружинить” */
.nm-steps-list li:hover::after {
  transform: translateY(-1px) scale(1.04);
  box-shadow:
    0 14px 26px rgba(51, 102, 255, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

/* перший і останній — лінія не має виглядати як "швабра" */
.nm-steps-list li:first-child::before {
  top: 18px;
}
.nm-steps-list li:last-child::before {
  bottom: 18px;
}

/* мікро-акцент: “підсвічений край” */
.nm-steps-list li {
  background:
    linear-gradient(135deg, rgba(51, 102, 255, 0.05), rgba(255, 255, 255, 0)) ,
    var(--nm-color-card-bg);
}

/* Текст всередині li — якщо там просто речення, виглядає ок.
   Якщо там <strong> або <b> — підкрутимо */
.nm-steps-list li strong,
.nm-steps-list li b {
  color: var(--nm-color-text);
}

/* мобільна оптимізація */
@media (max-width: 767px) {
  .nm-steps-list li {
    padding-left: 56px;
  }
  .nm-steps-list li::before {
    left: 26px;
  }
  .nm-steps-list li::after {
    left: 12px;
  }
}



/* =======================================================================
   10) FAQ — upgraded
   Цілі:
   - видно, що блоки клікабельні
   - чітка стрілка/chevron + анімація
   - м’який hover + підсвітка open
   - плавне розкриття (без JS)
======================================================================= */

.nm-faq-list {
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
  display: grid;
  gap: 12px;
}

/* базова картка */
.nm-faq-item {
  background: var(--nm-color-card-bg);
  border-radius: 16px;
  padding: 0; /* тепер padding дамо всередині summary/content */
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* щоб було зрозуміло що можна натиснути */
.nm-faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.10);
  border-color: rgba(51, 102, 255, 0.22);
}

/* summary як “кнопка” */
.nm-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  user-select: none;
  position: relative;
}

/* прибрати маркер дефолтний */
.nm-faq-item summary::-webkit-details-marker { display: none; }

/* текст питання */
.nm-faq-item summary span,
.nm-faq-item summary {
  font-size: 16px;
  color: var(--nm-color-text);
  line-height: 1.25;
}

/* Chevron (стрілка) */
.nm-faq-item summary::after {
  content: "";
  width: 12px;
  height: 12px;
  flex: 0 0 12px;

  /* малюємо стрілку бордерами */
  border-right: 2px solid rgba(51, 102, 255, 0.9);
  border-bottom: 2px solid rgba(51, 102, 255, 0.9);
  transform: rotate(45deg);
  transition: transform .22s ease, opacity .22s ease;
  opacity: 0.9;
}

/* Підказка “натисни” — легкий градієнт при hover */
.nm-faq-item summary:hover {
  background: linear-gradient(
    135deg,
    rgba(51, 102, 255, 0.06),
    rgba(255, 255, 255, 0)
  );
}

/* Фокус для клавіатури (важливо) */
.nm-faq-item summary:focus-visible {
  outline: 2px solid rgba(51, 102, 255, 0.65);
  outline-offset: -2px;
}

/* Коли відкрите — підсвітка і стрілка вверх */
.nm-faq-item[open] {
  border-color: rgba(51, 102, 255, 0.28);
  box-shadow: 0 18px 44px rgba(51, 102, 255, 0.12), 0 14px 30px rgba(0, 0, 0, 0.08);
}

.nm-faq-item[open] summary {
  background: linear-gradient(
    135deg,
    rgba(51, 102, 255, 0.08),
    rgba(255, 255, 255, 0)
  );
}

.nm-faq-item[open] summary::after {
  transform: rotate(-135deg);
  opacity: 1;
}

/* Контент відповіді
   - Робимо "анімоване" розкриття через grid trick (працює стабільно)
*/
.nm-faq-item > div {
  padding: 0 18px 16px;
  color: var(--nm-color-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* Якщо в тебе всередині details нема div, а просто текст —
   раджу обгорнути відповіді в <div>...</div> (ти вже так робиш) */

/* Лінія-розділювач */
.nm-faq-item[open] > div {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 14px;
}

/* Мікроефект: "пульс" акценту при відкритті (не токсичний) */
@media (prefers-reduced-motion: no-preference) {
  .nm-faq-item[open] {
    animation: nmFaqPop .22s ease;
  }
  @keyframes nmFaqPop {
    from { transform: translateY(0); }
    50% { transform: translateY(-2px); }
    to { transform: translateY(0); }
  }
}



/* =======================================================================
   11) ABOUT — upgraded (без змін HTML)
   - текст стає “карткою”, а не простиньою
   - типографіка, відступи, акценти
======================================================================= */

.nm-about-content {
  max-width: 980px;
  margin: 0 auto;
  text-align: left;

  background:
    linear-gradient(135deg, rgba(51, 102, 255, 0.06), rgba(255, 255, 255, 0)),
    var(--nm-color-card-bg);

  border-radius: 18px;
  padding: clamp(18px, 2.6vw, 34px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.10);
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

/* лівий акцент як “підпис стилю” */
.nm-about-content::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--nm-color-primary), rgba(51,102,255,0.15));
  opacity: 0.9;
}

/* Типографіка */
.nm-about-content p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.65;
  color: #333;
}

.nm-about-content p:last-child {
  margin-bottom: 0;
}

/* Підкреслити сильні слова */
.nm-about-content strong,
.nm-about-content b {
  color: var(--nm-color-text);
}

/* Гарні списки (якщо є ul/ol) */
.nm-about-content ul,
.nm-about-content ol {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.nm-about-content li {
  position: relative;
  padding-left: 26px;
  color: #333;
  line-height: 1.55;
}

.nm-about-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--nm-color-primary), #5a8bff);
  box-shadow: 0 8px 18px rgba(51, 102, 255, 0.22);
  transform: translateY(-50%);
}

/* Трохи “дорогого” повітря на десктопі */
@media (min-width: 1024px) {
  .nm-about-content {
    padding: 36px 40px;
  }
}



/* =======================================================================
   12) REVIEWS
======================================================================= */

.nm-review-card {
  background: var(--nm-color-card-bg);
  border-radius: var(--nm-radius-card);
  padding: 22px 20px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.nm-review-card blockquote {
  margin: 0 0 10px;
}

.nm-review-card figcaption {
  font-size: 14px;
  color: var(--nm-color-muted);
}


/* =======================================================================
   13) ФОРМИ (КАЛЬКУЛЯТОР + КОНТАКТИ) — upgraded
   - Калькулятор: card UI, чистий фокус, кращі select/input
   - Контакти (dark) не чіпаємо: вона перекриває своїм блоком 14)
======================================================================= */

.nm-calc-form,
.nm-contact-form {
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
}

/* ---------- Калькулятор (light) ---------- */
.nm-calc-form {
  background: var(--nm-color-card-bg);
  border-radius: 18px;
  padding: clamp(16px, 2.6vw, 26px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.10);
}

/* Сітка рядків */
.nm-calc-form .nm-form-row {
  margin-bottom: 14px;
}

/* Лейбли — компактніші, “дорогіші” */
.nm-calc-form .nm-form-row label {
  font-size: 13px;
  font-weight: 700;
  color: #2a2a2a;
  letter-spacing: 0.01em;
}

/* Поля вводу/селекти — однаковий стиль */
.nm-calc-form .nm-form-row input,
.nm-calc-form .nm-form-row select,
.nm-calc-form .nm-form-row textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  font-size: 15px;
  font-family: inherit;
  background: linear-gradient(180deg, #ffffff, #fbfbff);
  color: var(--nm-color-text);

  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

/* При hover — легка реакція */
.nm-calc-form .nm-form-row input:hover,
.nm-calc-form .nm-form-row select:hover,
.nm-calc-form .nm-form-row textarea:hover {
  border-color: rgba(51, 102, 255, 0.35);
}

/* Фокус — головне відчуття “якісного UI” */
.nm-calc-form .nm-form-row input:focus,
.nm-calc-form .nm-form-row select:focus,
.nm-calc-form .nm-form-row textarea:focus {
  outline: none;
  border-color: rgba(51, 102, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(51, 102, 255, 0.14);
}

/* Placeholder — спокійний */
.nm-calc-form .nm-form-row input::placeholder,
.nm-calc-form .nm-form-row textarea::placeholder {
  color: rgba(34, 34, 34, 0.45);
}

/* Select: нормальна стрілка + прибрати різний дефолт між браузерами */
.nm-calc-form .nm-form-row select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(51, 102, 255, 0.85) 50%),
    linear-gradient(135deg, rgba(51, 102, 255, 0.85) 50%, transparent 50%),
    linear-gradient(to right, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.10));
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    calc(100% - 40px) 50%;
  background-size:
    6px 6px,
    6px 6px,
    1px 22px;
  background-repeat: no-repeat;
  padding-right: 52px;
}

/* Number input: мінімізуємо “агресивні” стрілки */
.nm-calc-form input[type="number"]::-webkit-outer-spin-button,
.nm-calc-form input[type="number"]::-webkit-inner-spin-button {
  opacity: 0.35;
}

/* Кнопка калькулятора — по центру, ширша */
.nm-calc-form .nm-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  margin-top: 8px;
}

/* На широких — кнопка не на всю ширину (виглядає “преміум”) */
@media (min-width: 768px) {
  .nm-calc-form .nm-btn {
    width: auto;
    min-width: 340px;
    display: inline-flex;
    justify-content: center;
  }

  .nm-calc-form {
    text-align: center; /* щоб кнопка стала по центру */
  }

  .nm-calc-form .nm-form-row {
    text-align: left; /* але поля/лейбли залишаються “як форма” */
  }
}

/* ---------- Загальна форма-розкладка (твоя база лишається) ---------- */
.nm-form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  gap: 6px;
}


/* =======================================================================
   14) КОНТАКТНА СЕКЦІЯ (DARK THEME)
======================================================================= */

.nm-contact {
  padding: 80px 20px;
  background: linear-gradient(145deg, #0e0e0e, #1a1a1a);
  color: #e5e5e5;
  position: relative;
  overflow: hidden;
}

.nm-contact::before,
.nm-contact::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 70%);
  filter: blur(40px);
  z-index: 0;
}

.nm-contact::before {
  top: -60px;
  left: -80px;
}

.nm-contact::after {
  bottom: -60px;
  right: -80px;
}

.nm-contact h2 {
  text-align: center;
  font-size: 38px;
  margin-bottom: 16px;
  color: #ffffff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.25);
  letter-spacing: 1px;
}

.nm-contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  position: relative;
  z-index: 2;
}

.nm-contact-info {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
  padding: 30px 35px;
  border-radius: 16px;
  box-shadow:
    inset 0 0 15px rgba(255, 255, 255, 0.06),
    0 14px 28px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nm-contact-info p,
.nm-contact-info li {
  font-size: 16px;
  color: #dcdcdc;
  margin-bottom: 10px;
}

.nm-contact-info strong {
  color: #ffffff;
}

.nm-contact-info a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: 0.25s;
}

.nm-contact-info a:hover {
  border-color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.nm-contact-form {
  background: linear-gradient(160deg, rgba(50, 50, 50, 0.55), rgba(15, 15, 15, 0.55));
  padding: 25px 25px;
  border-radius: 16px;
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.05),
    0 16px 32px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
}

.nm-contact-form .nm-form-row {
  margin-bottom: 22px;
}

.nm-contact-form .nm-form-row label {
  margin-bottom: 6px;
  font-weight: 500;
  color: #e0e0e0;
}

.nm-contact-form .nm-form-row input,
.nm-contact-form .nm-form-row textarea {
  background: linear-gradient(145deg, #1b1b1b, #141414);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 12px 14px;
  color: #fff;
  font-size: 15px;
  border-radius: 10px;
  box-shadow:
    inset 2px 2px 6px rgba(0, 0, 0, 0.55),
    inset -2px -2px 6px rgba(255, 255, 255, 0.05);
  transition: 0.25s;
}

.nm-contact-form .nm-form-row input:focus,
.nm-contact-form .nm-form-row textarea:focus {
  border-color: #cfcfcf;
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.25),
    inset 0 0 8px rgba(255, 255, 255, 0.08);
  outline: none;
}

.nm-contact .nm-btn-primary {
  background: linear-gradient(145deg, #ffffff, #c0c0c0);
  color: #000;
  border-radius: 12px;
  padding: 14px 26px;
  font-size: 16px;
  box-shadow:
    0 8px 18px rgba(255, 255, 255, 0.35),
    0 4px 10px rgba(0, 0, 0, 0.4);
}

.nm-contact .nm-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 12px 24px rgba(255, 255, 255, 0.45),
    0 6px 14px rgba(0, 0, 0, 0.5);
}

.nm-contact .nm-btn-primary:active {
  transform: translateY(0);
  box-shadow:
    0 4px 10px rgba(255, 255, 255, 0.25),
    0 2px 6px rgba(0, 0, 0, 0.4);
}


/* =======================================================================
   15) MAP, GUARANTEES, FOOTER
======================================================================= */



.nm-map-embed {
  max-width: 900px;
  margin: 0 auto;
}

.nm-map-placeholder {
  border-radius: var(--nm-radius-card);
  background: #e0e4f0;
  padding: 40px 20px;
  box-shadow: var(--nm-shadow-card);
}

/* =======================================================================
   GUARANTEES — upgraded (без зміни HTML)
   Працює з:
   - <ul class="nm-guarantee-list"><li>...</li></ul>
   - або будь-яким контейнером з елементами всередині (WP блоки)
======================================================================= */

.nm-guarantee-list {
  max-width: 980px;
  margin: 0 auto;
  text-align: left;

  /* сітка “карток” */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;

  /* якщо це UL/OL */
  padding: 0;
  list-style: none;
}

/* Стилізуємо будь-яких прямих дітей:
   li (ul/ol) або wp-групи/параграфи (якщо це не список) */
.nm-guarantee-list > * {
  position: relative;
  background: var(--nm-color-card-bg);
  border-radius: 16px;
  padding: 18px 18px 18px 52px; /* місце під іконку */
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
}

/* легкий “преміум” hover */
.nm-guarantee-list > *:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
  border-color: rgba(51, 102, 255, 0.22);
}

/* Іконка “check” */
.nm-guarantee-list > *::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;

  color: #fff;
  font-weight: 900;
  font-size: 13px;

  background: linear-gradient(135deg, var(--nm-color-primary), #5a8bff);
  box-shadow:
    0 10px 18px rgba(51, 102, 255, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* М’який акцент на краю (не “виділення секції”, а саме картки) */
.nm-guarantee-list > *::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(51, 102, 255, 0.06), rgba(255,255,255,0));
  opacity: 0.9;
}

/* Текст всередині */
.nm-guarantee-list p {
  margin: 0;
  position: relative;
  z-index: 1;
  color: #333;
  line-height: 1.55;
  font-size: 15px;
}

/* Якщо в пункті є <strong> — робимо його “заголовком” */
.nm-guarantee-list strong,
.nm-guarantee-list b {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  color: var(--nm-color-text);
  position: relative;
  z-index: 1;
}

/* Якщо в тебе там посилання */
.nm-guarantee-list a {
  position: relative;
  z-index: 1;
}

.nm-footer {
  padding: 40px 20px;
  background: var(--nm-color-footer-bg);
  color: #dedede;
}

.nm-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.nm-footer-brand .nm-logo-mark {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
}

.nm-footer-text,
.nm-footer-copy {
  margin: 0;
  font-size: 14px;
}


/* =======================================================================
   16) АДАПТИВНІСТЬ
======================================================================= */

@media (min-width: 768px) {
  .nm-hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }

  .nm-contact-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    align-items: flex-start;
  }
}

@media (max-width: 1024px) {
  .nm-header-inner {
    gap: 12px;
  }

  .nm-nav {
    justify-content: flex-start;
    gap: 10px;
  }

  .nm-nav a {
    white-space: nowrap;
    font-size: 13px;
    padding: 6px 8px;
  }

  .nm-phone {
    padding: 6px 8px;
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  :root {
    --nm-section-padding-y: 24px;
  }

  .nm-header-inner {
    align-items: stretch;
    gap: 12px;
    flex-direction: column;
  }

  .nm-header-brand {
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .nm-nav-toggle {
    display: inline-flex;
  }

  .nm-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  }

  #nm-menu-toggle:checked ~ .nm-nav {
    display: flex;
  }

  .nm-nav a {
    width: 100%;
    text-align: left;
  }

  .nm-section {
    padding-inline: 16px;
  }

  .nm-hero {
    padding-top: var(--nm-section-padding-y);
    padding-bottom: var(--nm-section-padding-y);
  }

  .nm-hero-inner {
    grid-template-columns: 1fr;
  }

  .nm-steps-list li {
    padding: 16px 14px 16px 56px; /* top right bottom left */
  }

  .nm-contact-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .nm-contact {
    padding-top: var(--nm-section-padding-y);
    padding-bottom: var(--nm-section-padding-y);
    padding-inline: 16px;
  }

  .nm-slide-text {
    font-size: 14px;
  }
	
  .nm-guarantee-list {
    grid-template-columns: 1fr;
  }
  .nm-guarantee-list > * {
    padding: 16px 14px 16px 48px;
  }
  .nm-guarantee-list > *::before {
    left: 14px;
    top: 16px;
  }

  .nm-phone {
    width: 100%;
    justify-content: center;
    text-align: center;
    box-shadow:
      inset 0 0 0 1px rgba(90, 139, 255, 0.35),
      0 18px 30px rgba(90, 139, 255, 0.22),
      0 6px 12px rgba(0, 0, 0, 0.1);
  }
	
}
