/* style.css – Calcu-gator global styles
   - Responsive layout
   - Sticky topbar + dropdowns + mobile burger
   - Calculator layout with sidebar ad
   - Tooltips for field explanations
*/

/* ========= Reset & base ========= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  overflow-y: scroll; /* фиксируем ширину, без дёрганий между страницами */
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f5fb;
  color: #111827;
  overflow-x: hidden;
}

/* ========= Topbar & navigation ========= */

.topbar {
  position: relative;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  background: #ffffffcc;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}

/* Логотип (под картинку) */

.logo a {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #111827;
  font-weight: 700;
  font-size: 20px;
}

.logo img {
  display: block;
  height: 32px; /* оптимальная высота логотипа */
  width: auto;
}

/* Desktop nav */

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  font-size: 14px;
  text-decoration: none;
  color: #4b5563;
  padding: 6px 8px;
  border-radius: 6px;
  display: inline-block;
}

.nav-item > a:hover {
  color: #111827;
  background: #f3f4ff;
}

/* Dropdown (desktop only) */

.has-dropdown .nav-dropdown-menu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 210px;
  padding: 6px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.12);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 60;
}

.nav-dropdown-menu a {
  display: block;
  padding: 6px 8px;
  font-size: 13px;
  color: #4b5563;
  text-decoration: none;
  border-radius: 6px;
}

.nav-dropdown-menu a:hover {
  background: #f3f4ff;
  color: #111827;
}

/* Показываем подменю при наведении (desktop) */
.nav-item.has-dropdown:hover .nav-dropdown-menu {
  display: flex;
}

/* Mobile menu toggle (burger) */

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
}

#country-select {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  background: #ffffff;
}

/* ========= Hero (homepage) ========= */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 32px;
  padding: 40px 32px 32px;
  max-width: 1120px;
  margin: 0 auto;
}

.hero-text h1 {
  font-size: 32px;
  margin: 0 0 12px;
}

/* ========= Generic calculator box ========= */

.calc-box {
  background: #ffffff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.08);
  max-width: 100%;
}


/* Текст-подсказка под кнопкой в калькуляторах */
.calc-box .helper-text,
.calc-box #nsc-result-intro {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #6b7280;
}
.tax-rate-note {
  margin-left: 4px;
  font-size: 12px;
  color: #6b7280;
  font-weight: 400;
}


.calc-box input,
.calc-box select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  background: #ffffff;
}

.calc-box button {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  background: #2563eb;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.15s ease;
  margin-top: 4px;
}

.calc-box button:hover {
  background: #1d4ed8;
}

.calc-box small {
  display: block;
  margin-top: 4px;
  color: #9ca3af;
  font-size: 11px;
}

#salary-result,
#mp-result {
  margin-top: 10px;
  font-size: 14px;
  color: #111827;
}

/* ========= Field labels + tooltips ========= */

.field-label {
  position: relative;
  display: block;
  font-size: 14px;
  color: #63504b;
  margin-bottom: 4px;
  padding-right: 20px; /* место справа под иконку ? */
}

/* Круглый значок вопроса справа от названия поля */

.help-icon {
  position: absolute;
  top: -2px;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid #9ca3af;
  font-size: 10px;
  line-height: 1;
  color: #6b7280;
  cursor: default;
  background: #ffffff;
}

/* Всплывающая подсказка при наведении на ? */

.help-icon .help-tooltip {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 130%;
  background: #111827;
  color: #f9fafb;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11px;
  width: 220px;
  box-shadow: 0 8px 20px rgba(15,23,42,0.45);
  z-index: 80;
  white-space: normal;
}

.help-icon .help-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #111827 transparent transparent transparent;
}

.help-icon:hover .help-tooltip {
  display: block;
}

/* ========= Sponsored / sidebar blocks ========= */

.hero-ads,
.sidebar-ad {
  align-self: flex-start;
  background: #ffffff;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
  font-size: 13px;
  min-height: 120px;
}

.ad-label {
  font-size: 11px;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 6px;
}

.ad-card {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: #111827;
  margin-bottom: 6px;
  font-size: 13px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ad-card:hover {
  border-color: #2563eb;
  box-shadow: 0 6px 18px rgba(37,99,235,0.08);
}

/* ========= Section navigation (e.g. Mortgage calculators bar) ========= */

.section-nav-wrap {
  max-width: 1120px;
  margin: 16px auto 0;
  padding: 0 32px;
}

.section-nav {
  background: #ffffff;
  border-radius: 16px;
  padding: 8px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  box-shadow: 0 6px 18px rgba(15,23,42,0.05);
  font-size: 13px;
}

.section-nav strong {
  color: #6b7280;
}

.section-nav a {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f4ff;
  color: #4b5563;
  text-decoration: none;
  border-bottom: none;
}

.section-nav a:hover {
  background: #2563eb;
  color: #ffffff;
  border-bottom: none;
}

/* ========= Calculator layout: main + sidebar ========= */

.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) 320px; /* 320px под правый рекламный блок */
  gap: 24px;
  max-width: 1120px;
  margin: 24px auto 32px;
  padding: 0 32px;
}

.calc-main {
  min-width: 0;
}

.sidebar {
  min-width: 0;
}

.calc-main .lead {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 12px;
}

/* ========= Content under calculator (SEO текст + inline баннер) ========= */

.calc-content {
  margin-top: 20px;
  font-size: 14px;
  color: #4b5563;
}
/* Узкий SEO-блок на главной странице */
.calc-content.home-seo {
  max-width: 640px;
}

/* Чтобы списки тоже не растягивались шире абзацев */
.calc-content.home-seo ul {
  max-width: 640px;
}


.calc-content h1 {
  font-size: 26px;
  margin: 0 0 10px;
}

.calc-content h2,
.calc-content h3 {
  color: #111827;
  margin: 16px 0 6px;
}

.calc-content ul {
  padding-left: 18px;
  margin: 6px 0 10px;
}

.content-ad {
  margin: 16px 0;
  padding: 8px 0;
  min-height: 90px; /* место под горизонтальный баннер */
  border-radius: 8px;
}

/* ========= Generic sections on homepage ========= */

main section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 32px 24px;
}

main section h2 {
  margin: 24px 0 4px;
  font-size: 22px;
}

main section p {
  margin: 0 0 8px;
  color: #4b5563;
  font-size: 14px;
  max-width: 640px;
}

/* Базовый стиль ссылок в обычном контенте */
main a {
  color: #2563eb;
  text-decoration: none;
  border-bottom: 1px solid rgba(37, 99, 235, 0.25);
  padding-bottom: 1px;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background-color 0.15s ease;
}

main a:hover {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.5);
  background-color: rgba(37, 99, 235, 0.04);
}

main a:visited {
  color: #4b5563;
  border-color: rgba(156, 163, 175, 0.6);
}

/* Ссылки в колонках на главной странице – как в section-nav (sales-tax-calculator-canada.php) */
.calc-grid .calc-column a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f4ff;
  color: #4b5563;
  text-decoration: none;
  border-bottom: none;        /* перебиваем main a */
}

/* hover-эффект как у .section-nav a */
.calc-grid .calc-column a:hover {
  background: #2563eb;
  color: #ffffff;
  border-bottom: none;
}

/* visited – как обычный текст, без фиолетового и подчёркивания */
.calc-grid .calc-column a:visited {
  color: #4b5563;
  border-bottom: none;
}


/* Ссылки внутри калькуляторных текстовых блоков (как (CMHC)) */
.calc-content a {
  color: #4b5563; /* тот же цвет, что и текст */
  border-bottom: 1px solid rgba(75, 85, 99, 0.4);
  padding-bottom: 0;
  font-weight: 500;
  background-color: transparent;
}

.calc-content a:hover {
  color: #111827;
  border-bottom-color: rgba(17, 24, 39, 0.7);
  background-color: transparent;
}

.calc-content a:visited {
  color: #4b5563;
  border-bottom-color: rgba(156, 163, 175, 0.7);
}

/* Не ломаем верхнее меню и логотип */
.topbar a,
.topbar a:hover,
.logo a {
  border-bottom: none;
  background-color: transparent;
}



/* ========= Mobile ========= */

@media (max-width: 853px) {
  .topbar {
    padding: 10px 16px;
  }

  .menu-toggle {
    display: block;
  }

  /* Мобильное меню как выпадающее под шапкой */
  .nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    padding: 8px 16px 12px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15,23,42,0.12);
    flex-direction: column;
    gap: 4px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item > a {
    display: block;
    width: 100%;
    padding: 8px 10px;
  }

  /* На мобиле не показываем hover-дропдауны,
     подменю (если нужно) можно раскрывать JS-кликом */
  .has-dropdown .nav-dropdown-menu {
    display: none;
    position: static;
    box-shadow: none;
    padding: 0;
    margin-left: 10px;
  }

  .nav-item.has-dropdown:hover .nav-dropdown-menu {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 24px 16px;
  }

  main section {
    padding: 4px 16px 20px;
  }

  .calc-layout {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .section-nav-wrap {
    padding: 0 16px;
  }

  .sidebar {
    order: 3;
  }
}
/* Tip Calculator – preset tip buttons */
#tip-calculator .tip-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

#tip-calculator .tip-buttons .tip-btn {
  width: auto;                 /* перебиваем .calc-box button { width:100% } */
  flex: 1;                     /* 4 равные кнопки в ряд */
  padding: 8px 0;
  border-radius: 999px;
  border: 1px solid #ffffff;
  background: #2564ebb0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

#tip-calculator .tip-buttons .tip-btn:hover {
  background: #f3f4ff;
  color: #111827;
}

/* Активная выбранная кнопка */
#tip-calculator .tip-buttons .tip-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
  font-weight: 600;
}

/* === Sleep Calculator (moved from inline) === */
#sleep-calculator .field-label-wrap{
  display:block;
  margin-bottom:6px;
}
#sleep-calculator .field-label{
  position:relative;
  display:inline-flex;
  align-items:flex-start;
  gap:8px;
  margin:0;
  padding-right:0;
}

#sleep-calculator .help-icon{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:16px;height:16px;
  border:1px solid #d0d7de;
  border-radius:50%;
  font-size:12px;font-weight:600;line-height:1;
  cursor:help; user-select:none;
  margin-top:2px;
}

/* Всплывающая подсказка при наведении на ? */
#sleep-calculator .help-icon .help-tooltip{
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 130%;
  background: #111827;
  color: #f9fafb;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11px;
  width: 220px;
  box-shadow: 0 8px 20px rgba(15,23,42,0.45);
  z-index: 80;
  white-space: normal;
}

#sleep-calculator .help-icon:hover .help-tooltip,
#sleep-calculator .help-icon:focus .help-tooltip{ display:block; }

#sleep-calculator .time-inline{
  display:flex; align-items:center; gap:8px; margin-bottom:10px;
}
#sleep-calculator .time-inline input[type="time"]{ flex:1; }
#sleep-calculator .time-inline select{ width:90px; }

.badge{
  display:inline-block;
  padding:2px 6px;
  font-size:14px;
  line-height:1;
  font-weight: bold
  
}

/* Hide AM/PM inside the native <input type="time"> (we use our own selector) */
#sleep-calculator input[type="time"]::-webkit-datetime-edit-ampm-field { 
  display: none; 
}

/* Tighten padding since AM/PM segment is removed */
#sleep-calculator input[type="time"]::-webkit-datetime-edit { 
  padding-right: 0;
}

/* (Optional) keep the picker icon aligned nicely */
#sleep-calculator input[type="time"]::-webkit-calendar-picker-indicator {
  margin-left: 0;
}

/* === /Sleep Calculator === */


/* Accessible hide for captions */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Table wrapper allows horizontal scroll if needed */
.table-wrap { overflow-x: auto; }

/* Base table styling to match site palette */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #ffffff;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}
.data-table tbody tr:nth-child(even) {
  background: #fafbff;            /* лёгкая зебра */
}

/* Mobile layout: cards per row, заголовок таблицы скрываем, подставляем метки */
@media (max-width: 640px) {
  .data-table thead { display: none; }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th[scope="row"],
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 4px 0;
    margin: 8px 0;
  }

  .data-table th[scope="row"] {
    border-bottom: 1px solid #e5e7eb;
    background: #f3f4ff;
    font-weight: 600;
    margin: 0;
    padding: 10px 12px;
  }

  .data-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 0;
  }

  /* Левая подпись для значения берётся из атрибута data-label */
  .data-table td::before {
    content: attr(data-label);
    color: #6b7280;
    font-weight: 600;
    margin-right: 12px;
    flex: 1 1 auto;
  }

  .data-table td {
    color: #111827;
    font-weight: 500;
  }
}

/* Sleep table header: blue background */
.data-table thead th {
  background: #2563eb;   /* blue header */
  color: #ffffff;         /* readable on blue */
  border-bottom: 1px solid #1e40af; /* optional: darker edge */
}

/* Центруем текст только в заголовках столбцов */
.sleep-reco thead th {
  text-align: center;
}

/* Inline radios/checkboxes */
.radio-row label { 
  display: inline-flex; 
  align-items: center; 
  gap: 6px; 
  margin: 0; 
}

/* Всегда держим ряд Units в одну строку */
#bmi-units.radio-row {
  display: flex;
  flex-wrap: nowrap;     /* без переноса */
  gap: 16px;
}
#bmi-units.radio-row label { 
  white-space: nowrap;   /* текст меток не переносим */
}

/* Всегда держим ряд Units в одну строку */
#cc-units.radio-row {
  display: flex;
  flex-wrap: nowrap;     /* без переноса */
  gap: 16px;
}
#cc-units.radio-row label { 
  white-space: nowrap;   /* текст меток не переносим */
}


/* === Radios/Checkboxes: идеальное выравнивание по вертикали === */
.radio-row {
  display:flex;
  flex-wrap:wrap;
  gap:12px 16px;
  align-items:center;           /* центрируем всю группу по оси Y */
}

.radio-row label{
  display:flex !important;      /* чтобы точно был flex */
  align-items:center;           /* радиокнопка и текст по одному центру */
  gap:8px;
  margin:0;
  line-height:1.25;             /* одинаковая высота строки */
  min-height:36px;              /* визуально одинаковая «высота» элемента */
}

.radio-row input[type="radio"],
.radio-row input[type="checkbox"]{
  margin:0;                     /* убираем UA-отступы (Chrome/Windows) */
  vertical-align:middle;
}

/* Блок Units — всегда в одну строку и по центру */
#cc-units.radio-row{
  flex-wrap:nowrap;
  white-space:nowrap;
  align-items:center;
}
#cc-units.radio-row label{ white-space:nowrap; }

/* ==== Homepage: Free Online Calculators heading + search ==== */

/* hero-text уже используется на других страницах, просто переиспользуем */
.hero-text h1 {
  font-size: 32px;
  margin: 0 0 12px;
}

.hero-text p {
  margin: 0 0 16px;
  color: #4b5563;
  max-width: 640px;
}

/* Форма поиска калькуляторов */
.calc-search {
  margin: 12px 0 20px;
  max-width: 640px;
}

.calc-search-inner {
  display: flex;
  gap: 8px;
}

.calc-search-inner input[type="search"]:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.calc-search-inner button:hover {
  background: #1d4ed8;
}

@media (max-width: 640px) {
  .calc-search-inner {
    flex-direction: column;
  }

}
/* ==== Grid с 4 столбцами категорий ==== */

.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 12px;
}

.calc-column h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.calc-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.calc-column li {
  margin-bottom: 4px;
}

/* ВАЖНО: не трогаем цвет/фон ссылок,
   чтобы они вели себя так же, как на других страницах.
   main a {...} и main a:hover {...} уже описаны выше,
   здесь их не переопределяем. Можно разве что сделать
   их блочными, если потребуется: */
/*
.calc-column a {
  display: inline-block;
}
*/



/* ==== Grid с 4 столбцами категорий ==== */

.calc-column h3 {/* ==== Homepage: centered hero with fun calculators ==== */

  font-size: 16px;
  margin: 0 0 6px;
}

.calc-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.calc-column li {
  margin-bottom: 4px;
}

/* Адаптация под планшет/мобилу */
@media (max-width: 1024px) {
  .calc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }

  .hero.hero--center {
    padding: 24px 16px;
  }
}

/* ===== Homepage: single-column hero ===== */
.hero.hero--single {
  grid-template-columns: minmax(0, 1fr);
}

/* ===== Homepage / Search: calculators heading & search bar ===== */


.calc-search-inner input[type="search"] {
  flex: 1;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  background: #ffffff;
}

.calc-search-inner input[type="search"]:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.calc-search-inner button {
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  background: #2563eb;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.15s ease;
  white-space: nowrap;
}

.calc-search-inner button:hover {
  background: #1d4ed8;
}

/* ===== Grid with 4 columns for calculator categories ===== */

.calc-column h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.calc-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.calc-column li {
  margin-bottom: 4px;
}

/* адаптация под планшет и мобильные */
@media (max-width: 1024px) {
  .calc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }

  .calc-search-inner {
    flex-direction: column;
  }

  .calc-search-inner button {
    width: 100%;
    text-align: center;
  }

    .hero.hero--center {
    padding: 24px 16px;
  }
}


/* Центрирует заголовок в таблице (<table class="data-table center-table">)*/
.data-table.center-table thead th:first-child,
.data-table.center-table tbody th[scope="row"] {
  text-align: center;
}

/* Всегда держим ROI time toggle в одну строку */
#roi-time-row.radio-row {
  flex-wrap: nowrap;        /* без переноса */
  gap: 16px;
}

#roi-time-row.radio-row label {
  white-space: nowrap;      /* не переносить "Use Dates" / "Use Length" */
}

.calc-error {
  margin-top: 8px;
  color: #b91c1c;
  font-size: 0.75rem; /* 14px */
}

/* ========= Footer ========= */

footer {
  max-width: 1120px;
  margin: 16px auto 0;
  padding: 16px 32px 32px;
  font-size: 12px;
  color: #9ca3af;
}

/* ссылки в футере всегда серые, как текст */
footer a,
footer a:link,
footer a:visited {
  color: #4b5563 !important;
  text-decoration: none;
}

/* эффект наведения — по желанию */
footer a:hover,
footer a:active {
  color: #e5e7eb;
  text-decoration: underline;
}

/* Ссылки в футере: серые, без синего подчёркивания */
main footer a,
main footer a:link,
main footer a:visited {
  color: #9ca3af;
  text-decoration: none;
  border-bottom: none;
}

/* Ховер по желанию */
main footer a:hover,
main footer a:active {
  color: #e5e7eb;
  text-decoration: underline;
  border-bottom: none;
}

/* Размеры лого Desktop & Mobile */
.logo img{
  width: 220px;   /* desktop */
  height: auto;   /* сохраняем пропорции */
  display: block; /* убирает лишний нижний отступ у img */
}

@media (max-width: 768px){
  .logo img{
    width: 180px; /* mobile */
  }
}

/* FAQs blok */
  .faq-list { margin-top: 14px; }
  .faq-item {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: #fff;
    max-width: 100%;
  }
  .faq-item summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::after {
    content: "▾";
    font-size: 18px;
    line-height: 1;
    opacity: 0.75;
  }
  .faq-item[open] summary::after { content: "▴"; }
  .faq-answer { padding-top: 8px; }
  .faq-answer p { margin: 0; }

