:root {
  --bg: #f7f8fb; /* общий светлый фон */
  --ink: #0a0d12; /* заголовки */
  --text: #2e3440; /* основной текст */
  --muted: #667085; /* вторичный */
  --panel: #ffffff; /* карточки/панели */
  --line: #e6e8ef; /* бордеры */
  --yellow: #f4b000; /* фирменный акцент */
  --blue: #0f172a; /* ссылки */
  --radius: 18px; /* скругления */
  --shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
  --gap: 18px;
}
a {
  color: var(--blue);
  text-decoration: none;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.86);
}
.head {
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 72px;
}
.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--yellow);
  background: #fff;
  color: #111;
  font-weight: 700;
  box-shadow: none;
  transition: 0.15s;
}
.btn-new {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--yellow);
  background: #fff;
  color: #111;
  font-weight: 700;
  box-shadow: none;
  transition: 0.15s;
}
.btn-new:hover {
  transform: translateY(-1px);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.btn-primary {
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: var(--shadow);
}


.form-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.form {
  display: grid;
  gap: 10px;
}
.input,
.select,
.textarea {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: #111;
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(244, 176, 0, 0.22);
}

/* Sections */
.section {
  padding: 44px 0;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.catalog-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  overflow: hidden;
}
.services-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.partner-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  justify-content: center;
}
.our_works-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.our_works-card img {
  border-radius: var(--radius);
}
.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-width: 300px;
}
.kicker {
  color: #475569;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Categories */
.cat-card {
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--yellow);
}

/* Offers */
.price {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color: #111;
}

/* Yellow strip */
.strip {
  background: var(--yellow);
  color: #111;
  padding: 20px;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
}
.strip .input {
  background: #fff;
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

/* Partners */

/* Blog */
.post .meta {
  color: var(--muted);
  font-size: 14px;
}

/* FAQ */
.details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
}

/* Footer */
footer {
  margin-top: 36px;
  padding: 28px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}

.banner-back {
  background: radial-gradient(
      1100px 380px at 82% -10%,
      rgba(244, 176, 0, 0.14),
      transparent
    ),
    linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.7) 60%, transparent),
    repeating-linear-gradient(
      90deg,
      transparent 0 22px,
      rgba(16, 24, 40, 0.05) 22px 23px
    );
  border-bottom: 1px solid var(--line);
}

.benefits-new-block {
  padding: 40px 0px 40px;
}

/* Toolbar */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #111;
}
.chip.active {
  border-color: var(--yellow);
  background: #ffe8a3;
}

@media (max-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .strip {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Контейнер выглядит как select */
.catalogs__params-top-control-sort {
  position: relative;
  display: inline-block;
  width: 280px; /* подгони под дизайн */
  font: inherit;
}

/* «Крышка» селекта — используем твой <span> */
.catalogs__params-top-control-sort > span {
  display: block;
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  padding: 10px 40px 10px 12px;
  cursor: pointer;
  user-select: none;
  line-height: 1.2;
  position: relative;
}

/* Стрелочка */
.catalogs__params-top-control-sort > span::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #666;
  border-bottom: 2px solid #666;
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.15s ease;
}
.catalogs__params-top-control-sort.is-open > span::after {
  transform: translateY(-30%) rotate(-135deg);
}

/* Выпадающий список — твои же кнопки */
.catalogs__params-top-control-sort .catalogs__params-top-control-sort-btns {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: none;
  z-index: 50;
}

/* Показать, когда открыт */
.catalogs__params-top-control-sort.is-open
  .catalogs__params-top-control-sort-btns {
  display: block;
}

/* Стили пунктов (кнопок) */
.catalogs__params-top-control-sort
  .catalogs__params-top-control-sort-btns
  button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
}
.catalogs__params-top-control-sort
  .catalogs__params-top-control-sort-btns
  button:hover,
.catalogs__params-top-control-sort
  .catalogs__params-top-control-sort-btns
  button:focus {
  background: #f4f6f8;
  outline: none;
}

/* Текущий выбранный пункт (если ты навешиваешь .is-active) */
.catalogs__params-top-control-sort
  .catalogs__params-top-control-sort-btns
  button.is-active {
  background: #eef3ff;
}

/* Layout: sidebar + content */
.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 24px 0;
}
.sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
}
.filter {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
  max-width: 360px;
  width: 100%;
}
.filter h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
}
.filter .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.input,
select {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: #111;
}
.input:focus,
select:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(244, 176, 0, 0.18);
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #344054;
}

/* Table price */
.table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
th {
  background: #f9fafb;
  color: #334155;
}
tr:last-child td {
  border-bottom: none;
}
.reviews-block-name-date {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
}
.promo--note {
  border: 1px dashed var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 14px;
}
.promo__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}
.promo--note .promo__phone {
  margin-left: auto;
}
@media (max-width: 640px) {
  .promo--note .promo__phone {
    margin-left: 0;
  }
}
/* demo helpers */
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
}
.hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: #111827;
}
.hdr .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #111827;
}
.features {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 14px;
}
.feat {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #475569;
}
.feat .ico {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #fff9e8;
  border: 1px solid #f5c451;
}

.block-social-form {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 25px;
}

@media (max-width: 560px) {
  .features {
    flex-wrap: wrap;
  }
}


/* Адреса филиалов */

.branches-page {
  padding: 48px 0 72px;
  background: linear-gradient(180deg, #eaf7fb 0%, #f7fcfe 220px, #ffffff 100%);
}

.branches-hero {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.branches-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef9f3;
  color: #4c9f6a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.branches-title {
  margin: 0 0 12px;
  color: #16233b;
  font-size: 38px;
  line-height: 1.15;
  font-weight: 700;
}

.branches-text {
  margin: 0;
  color: #5d6b82;
  font-size: 16px;
  line-height: 1.6;
}

.branches-card {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(22, 35, 59, 0.08);
  overflow: hidden;
  border: 1px solid #edf3f8;
}

.branches-table {
  width: 100%;
  border-collapse: collapse;
}

.branches-table thead th {
  padding: 20px 24px;
  text-align: left;
  background: #f5fbfe;
  color: #16233b;
  font-size: 15px;
  font-weight: 700;
  border-bottom: 1px solid #e8f0f5;
}

.branches-table tbody td {
  padding: 18px 24px;
  color: #334155;
  font-size: 15px;
  line-height: 1.5;
  border-bottom: 1px solid #edf2f7;
}

.branches-table tbody tr:last-child td {
  border-bottom: none;
}

.branches-table tbody tr:hover {
  background: #fbfeff;
}

.branches-table tbody td:first-child {
  width: 32%;
  font-weight: 600;
  color: #16233b;
}

@media (max-width: 767px) {
  .branches-page {
    padding: 32px 0 48px;
  }

  .branches-title {
    font-size: 28px;
  }

  .branches-text {
    font-size: 15px;
  }

  .branches-card {
    border-radius: 18px;
  }

  .branches-table thead {
    display: none;
  }

  .branches-table,
  .branches-table tbody,
  .branches-table tr,
  .branches-table td {
    display: block;
    width: 100%;
  }

  .branches-table tbody tr {
    padding: 16px 18px;
    border-bottom: 1px solid #edf2f7;
  }

  .branches-table tbody tr:last-child {
    border-bottom: none;
  }

  .branches-table tbody td {
    padding: 0;
    border: none;
  }

  .branches-table tbody td:first-child {
    width: 100%;
    margin-bottom: 6px;
    font-size: 16px;
  }

  .branches-table tbody td:last-child {
    color: #5d6b82;
  }
}