/*  Montserrat */
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat/Montserrat-VariableFont_wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Фонтсы */

html, body {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.hide {
  display: none;
}

html {
  font-size: 2vh;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.lock {
  overflow: hidden;
}

/* Медиазапросы для различных разрешений экранов */

/* Мобильные устройства (портретная ориентация) */
@media (max-width: 480px) {
  html {
    font-size: 1.2vh;
  }
  .widthing {
    width: 90%;
  }
  .grid-ctlg, .grid-ctlg-service {
    grid-template-columns: 1fr;
  }
}

/* Мобильные устройства (портретная ориентация, немного больше) */
@media (min-width: 481px) and (max-width: 640px) {
  html {
    font-size: 1.4vh;
  }
  .widthing {
    width: 90%;
  }
  .grid-ctlg, .grid-ctlg-service {
    grid-template-columns: 1fr;
  }
}

/* Мобильные устройства (портретная ориентация, ещё больше) */
@media (min-width: 641px) and (max-width: 767px) {
  html {
    font-size: 1.6vh;
  }
  .widthing {
    width: 85%;
  }
  .grid-ctlg, .grid-ctlg-service {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Планшеты (портретная ориентация) */
@media (min-width: 768px) and (max-width: 1024px) {
  html {
    font-size: 1.8vh;
  }
  .widthing {
    width: 80%;
  }
  .grid-ctlg, .grid-ctlg-service {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Планшеты и маленькие ноутбуки */
@media (min-width: 1025px) and (max-width: 1280px) {
  html {
    font-size: 2vh;
  }
  .widthing {
    width: 75%;
  }
  .grid-ctlg, .grid-ctlg-service {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Большие экраны (ноутбуки и десктопы) */
@media (min-width: 1281px) and (max-width: 1920px) {
  html {
    font-size: 2vh;
  }
  .widthing {
    width: 70%;
  }
  .grid-ctlg, .grid-ctlg-service {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Очень большие экраны (десктопы и телевизоры) */
@media (min-width: 1921px) {
  html {
    font-size: 2.2vh;
  }
  .widthing {
    width: 60%;
  }
  .grid-ctlg, .grid-ctlg-service {
    grid-template-columns: repeat(4, 1fr);
  }
}

.lt-up {
  text-transform: uppercase;
}

.lt-bold {
  font-weight: bold;
}

.lt-thin {
  font-weight: 300;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/* Elems */
.widthing {
  width: 100%;
  max-width: 1200px; /* Можно 1400px — смотри по макету */
  margin: 0 auto;
  padding: 0 20px;
}
.hov-gray {
  transition: all 0.2s ease-in;
}

.hov-gray:hover {
  background-color: rgba(0, 0, 0, 0.25);
}

.divider {
  width: 100%;
  height: 5vh;
  background: url('./imgs/divider.svg');
  background-size: contain;
  background-position: center;
}

.centering {
  display: flex;
  justify-content: center;
  align-items: center;
}

.centering-m {
  margin: auto;
}

.rounded-btn {
  min-width: 100px;
  border-radius: 1vh;
  padding: 2vh;
}

.pagination {
  margin: 2vh auto;
}

.g1 {
  gap: 1.5vh;
}

/* Forms */
label,
input[type=checkbox],
select,
option {
  cursor: pointer;
}

.form-auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 900px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.form-block-wrapper {
  width: 100%;
  max-width: 800px;
  margin: auto;
}

.form-block-wrapper input:not([type="checkbox"]):not([type="radio"]),
.form-block-wrapper select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  font-size: 1rem;
}

.name-inp {
  width: 100%;
  display: block;
  box-sizing: border-box;
  border: none;
  padding: 12px 16px;
  font-size: 1.1rem;
  line-height: 1.4;
  outline: none;
}

.name-inp:focus {
  box-shadow: 0 0 0 2px rgba(3, 108, 157, 0.2);
}

.theme-inp {
  width: 100%;
  border: none;
  padding: 10px;
  padding-left: 20px;
  font-weight: bold;
  font-size: 1.4rem;
}

/* Цвета бренда */
.bg-bindigo {
  background-color: #036c9d;
}

.bg-bblue {
  background-color: #1d7ba7;
}

.bg-bgray {
  background-color: #797979;
}

.bindigo-text {
  color: #036c9d;
}

.bblue-text {
  color: #1d7ba7;
}

.bgray-text {
  color: #4d4d4d;
}

/* header */
.logo {
  height: 40px;
  width: auto;
  display: block;
}

.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar {
  padding: 10px 0;
}

.navbar .widthing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.navbar-brand {
  margin-right: 0;
  flex-shrink: 0;
}

.navbar-brand .logo {
  height: 40px;
}

.navbar-collapse {
  flex-grow: 0;
}

.navbar-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.navbar-nav .nav-link {
  font-size: 1.05rem;
  font-weight: 400;
  transition: color 0.2s ease-in;
  white-space: nowrap;
}

.navbar-nav .nav-link:hover {
  color: #ffd166;
}

.dropdown-menu {
  background-color: #036c9d;
  border: none;
  box-shadow: rgba(0, 0, 0, 0.5) 0 0 5px 0;
}

.dropdown-item {
  color: #fff;
  background-color: transparent;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: #fff;
  background-color: rgba(0, 0, 0, 0.25);
}

.dropdown-item.active,
.dropdown-item:active {
  color: #fff;
  background-color: rgba(0, 0, 0, 0.35);
}

.dropdown-menu form {
  margin: 0;
}

.dropdown-menu button.dropdown-item {
  width: 100%;
  text-align: left;
  color: #fff;
  background-color: transparent;
  border: none;
}

.dropdown-menu button.dropdown-item:hover,
.dropdown-menu button.dropdown-item:focus {
  color: #fff;
  background-color: rgba(0, 0, 0, 0.25);
}

@media (max-width: 1199px) {
  .navbar-nav {
    gap: 12px;
  }

  .navbar-nav .nav-link {
    font-size: 0.95rem;
  }
}

@media (max-width: 991.98px) {
  .navbar {
    padding: 8px 0;
  }

  .navbar .widthing {
    padding: 0 16px;
  }

  .navbar-brand .logo {
    height: 34px;
  }

  .navbar-toggler {
    padding: 0.35rem 0.55rem;
    border-color: rgba(255, 255, 255, 0.35);
  }

  .navbar-collapse {
    width: 100%;
    margin-top: 12px;
    background: #036c9d;
    border-radius: 10px;
    padding: 10px 12px;
  }

  .navbar-nav {
    gap: 0;
    align-items: stretch;
  }

  .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar-nav .nav-link {
    padding: 10px 8px;
    white-space: normal;
  }

  .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    box-shadow: none;
    margin-top: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .navbar .widthing {
    padding: 0 12px;
  }

  .navbar-brand .logo {
    height: 30px;
  }
}

/* footer */
/* ============================
   FOOTER: финальный стиль
   ============================ */

/* footer */
.footer {
  padding: 40px 0;
  color: #fff;
  background-color: #036c9d;
}

.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-logo {
  flex-basis: 100%;
}

.footer-logo img {
  max-height: 50px;
}

.footer-logo p {
  margin-top: 10px;
  font-size: 1.1em;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  flex: 1 1 60%;
  gap: 40px;
}

.footer-column {
  flex: 1 1 120px;
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-weight: bold;
  margin-bottom: 10px;
}

.footer-column a {
  color: #fff;
  text-decoration: none;
  margin-bottom: 5px;
}

.footer-column a:hover {
  opacity: 0.8;
}

.contact-info p {
  margin: 3px 0;
}

.footer-soc {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.footer-soc .social-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
}

.footer-soc .social-link img {
  height: 30px;
  width: 30px;
  border-radius: 50%;
  background: #fff;
}

.manager-text {
  margin-top: 5px;
  font-size: 0.9em;
}

.footer-form {
  max-width: 300px;
  width: 100%;
  flex: 0 0 300px;
  margin-left: auto;
  border: 2px solid #1d7ba7;
  border-radius: 12px;
}

.footer-form-inner {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
}

.footer-form-inner h5 {
  color: #036c9d;
  font-weight: bold;
  margin-bottom: 15px;
}

.footer-form-inner label {
  color: #036c9d;
  font-weight: bold;
}

.footer-form-inner .form-group {
  margin-bottom: 10px;
}

.footer-form-inner input {
  width: 100%;
  padding: 8px;
  border: 1px solid #1d7ba7;
  border-radius: 4px;
}

.footer-form-inner input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(29, 123, 167, 0.2);
}

.btn-footer {
  background: #ffd166;
  color: #333;
  padding: 10px;
  border: none;
  width: 100%;
  font-weight: bold;
  transition: background 0.3s;
  cursor: pointer;
  border-radius: 6px;
  margin-top: 20px;
}

.btn-footer:hover {
  background: #ffaa00;
}

.footer-bottom {
  margin-top: 50px;
  text-align: center;
  font-size: 0.9em;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
}

/* footer adaptive */
@media (max-width: 1024px) {
  .footer {
    padding: 32px 0;
  }

  .footer-wrapper {
    gap: 28px;
  }

  .footer-content {
    gap: 28px;
  }

  .footer-columns {
    gap: 28px;
    flex: 1 1 100%;
  }

  .footer-form {
    flex: 1 1 100%;
    max-width: 360px;
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .footer-logo {
    text-align: center;
  }

  .footer-logo img {
    margin: 0 auto;
  }

  .footer-logo p {
    text-align: center;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .footer-columns {
    width: 100%;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    width: 100%;
    max-width: 320px;
    align-items: center;
  }

  .footer-soc {
    justify-content: center;
  }

  .footer-form {
    max-width: 360px;
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 24px 0;
  }

  .footer-wrapper {
    padding: 0 16px;
    gap: 20px;
  }

  .footer-logo img {
    max-height: 42px;
  }

  .footer-logo p {
    font-size: 0.98rem;
  }

  .footer-column {
    max-width: 100%;
  }

  .footer-form {
    max-width: 100%;
  }

  .footer-form-inner {
    padding: 16px;
  }

  .footer-bottom {
    margin-top: 28px;
    font-size: 0.82rem;
    padding-top: 12px;
  }
}

/* ==== FOOTER FORM ALERT ==== */

.form-alert {
  border: 1px solid #1d7ba7;
  background-color: #e5f0ff; /* нежный фон, твой фирменный синий оттенок */
  color: #036c9d;
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
}

.form-alert-success {
  background-color: #e7f7e7; /* нежно-зелёный */
  border-color: #28a745;
  color: #155724;
}

.form-alert-danger {
  background-color: #ffe5e5; /* нежно-красный */
  border-color: #dc3545;
  color: #721c24;
}

.form-alert-icon {
  margin-right: 8px;
  font-size: 1.2em;
  vertical-align: middle;
}

/* Адаптив для мобильных */
@media (max-width: 992px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-columns {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-form {
    margin-left: 0;
    margin-top: 30px;
    width: 100%;
    max-width: 300px;
  }

  .footer-soc {
    justify-content: center;
  }
}

/* cover */
.cover-wrapper {
  height: 70vh;
  overflow: hidden;
}

.cover-wrapper > * {
  height: 100%;
}

.cover {
  width: 100%;
}

@media (max-width: 950px) {
  .cover {
    width: auto;
    height: 120%;
  }
}

.blur {
  transform: translateY(-100%);
  background: rgba(0, 0, 0, 0.50);
  backdrop-filter: blur(5px);
  z-index: 2;
}

.logos {
  height: auto;
  text-align: center;
}

.fullogo > * {
  height: 7vh;
  max-width: 80vw;
}

/* === MINI CATALOGUE === */

.mini-catalogue {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5vh;
  gap: 5vh;
}

.grid-ctlg {
  display: grid;
  grid-template-columns: repeat(3, minmax(15vh, 1fr));
  gap: 2vh;
}

@media (max-width: 767px) {
  .grid-ctlg {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-ctlg {
    grid-template-columns: 1fr;
  }
}

.category-card {
  display: flex;
  align-items: center;
  border: 2px solid #036c9d; /* фирменный цвет */
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: all 0.3s ease;
}

.category-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.logo-ctg {
  flex: 0 0 auto;
  height: 15vh;
  width: 15vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5vh;
  background-color: #036c9d; /* если нужно */
}

.logo-ctg img {
  width: 9vh;
  height: 9vh;
  transition: transform 0.3s ease;
}

.category-card:hover .logo-ctg img {
  transform: scale(1.1);
}

.category-name {
  flex: 1 1 auto;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  text-align: center;
  padding: 0 1vh;
  word-wrap: break-word;
}

/* Заголовок можно оставить как есть */
.mini-catalogue h3 {
  font-size: 2.4rem;
  margin-bottom: 3vh;
}

@media (max-width: 992px) {
  .mini-catalogue h3 {
    font-size: 2.2rem;
  }
}

@media (max-width: 600px) {
  .mini-catalogue h3 {
    font-size: 2rem;
  }
}

/* Услуги главная страница */

.mini-catalogue-service {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3vh 2vh;
  gap: 5vh;
}

.grid-ctlg-service {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2vh;
}

@media (max-width: 992px) {
  .grid-ctlg-service {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-ctlg-service {
    grid-template-columns: 1fr;
  }
}

.category-card-service {
  display: flex;
  align-items: center;
  border: 2px solid #036c9d;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: all 0.3s ease;
  min-height: 15vh;
}

.category-card-service:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.logo-ctg-service {
  height: 15vh;
  width: 15vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5vh;
  flex-shrink: 0;
}

.logo-ctg-service > * {
  width: 9vh;
  height: 9vh;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.category-card-service:hover .logo-ctg-service > * {
  transform: scale(1.1);
}

.category-name-service {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  text-align: center;
  padding: 0 1vh;
  flex: 1;
  display: block;
}

/* Заголовок и текст */
.mini-catalogue-service h2 {
  font-size: 2.4rem;
  margin-bottom: 1.2vh;
  text-align: center;
}

.mini-catalogue-service p {
  font-size: 18px;
  text-align: center;
  color: #666;
  max-width: 900px;
  margin: 0 auto 3vh auto;
  line-height: 1.6;
}

@media (max-width: 992px) {
  .mini-catalogue-service h2 {
    font-size: 2.2rem;
  }
  .mini-catalogue-service p {
    font-size: 1.05rem;
  }
}

@media (max-width: 600px) {
  .mini-catalogue-service h2 {
    font-size: 2rem;
  }
  .mini-catalogue-service p {
    font-size: 1rem;
  }
}

/* Унифицированный заголовок секций */
.section-title {
  font-size: 2.4rem;
  margin-top: 3vh;
  margin-bottom: 3vh;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
  color: #036c9d; /* основной синий */
}

@media (max-width: 992px) {
  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 600px) {
  .section-title {
    font-size: 2rem;
  }
}

/* Отступ под текстом в блоке Услуги */
.service-description {
  margin-bottom: 4vh;
}

/* downpage */

.guy {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.guy * {
  height: 90vh;
}

/* Каталог */
.this-catalogue {
}

.pcards-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2vw;
  justify-content: center;
}

.product-card {
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
  padding: 20px;
  text-align: left;
}

.pcard-cover {
  width: 100%;
  padding-top: 100%; /* Делает контейнер квадратным */
  position: relative;
  overflow: hidden;
  background-color: #f9f9f9;
  margin-bottom: 15px; /* Добавляет расстояние между картинкой и названием */
}

.pcard-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pcard-text {
  width: 100%;
  text-align: left;
}

.pcard-text h5 {
  margin-bottom: 10px; /* Расстояние между названием и категорией */
  font-size: 1.2em;
}

.product-category {
  color: black;
  margin-bottom: 15px; /* Расстояние между категорией и кнопкой "Подробнее" */
}

.btn-outline-primary {
  border: 1px solid #007bff;
  color: #007bff;
  padding: 10px 20px;
  border-radius: 5px;
  text-align: left;
}

@media (max-width: 1000px) {
  .product-card {
    width: 45%;
  }
}

@media (max-width: 600px) {
  .product-card {
    width: 100%;
  }
}



/* О компании */
.about-intro {
  padding-top: 40px;
  padding-bottom: 40px;
}

.about-section-title {
  margin: 0 0 24px;
  font-size: 2.25rem;
  line-height: 1.1;
}

.about-intro-text {
  margin: 0 0 22px;
  max-width: 980px;
  font-size: 1.14rem;
  line-height: 1.7;
}

.about-logo {
  min-height: 90px;
  padding: 14px 20px;
}

.about-logo__img {
  max-width: 100%;
  height: auto;
  max-height: 74px;
  display: block;
}

/* История компании */
.history-timeline {
  --year-col: 150px;
  --line-col: 74px;
  --content-col: 500px;
  --gap: 40px;

  position: relative;
  display: grid;
  grid-template-columns: var(--year-col) var(--line-col) var(--content-col);
  column-gap: var(--gap);
  row-gap: 34px;
  align-items: start;
  justify-content: center;
  width: 100%;
  max-width: calc(var(--year-col) + var(--line-col) + var(--content-col) + (var(--gap) * 2));
  margin: 0 auto 70px;
}

.history-timeline__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--year-col) + var(--gap));
  width: var(--line-col);
  pointer-events: none;
  z-index: 0;
}

.history-timeline__line img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.history-timeline__row,
.history-timeline__future {
  display: contents;
}

.history-timeline__year,
.history-timeline__content,
.history-timeline__future-text {
  position: relative;
  z-index: 1;
}

.history-timeline__year {
  grid-column: 1;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: #4d4d4d;
  text-align: right;
  align-self: start;
  padding-top: 8px;
}

.history-timeline__content {
  grid-column: 3;
  max-width: 500px;
}

.history-timeline__content h3 {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  color: #4d4d4d;
  text-transform: uppercase;
}

.history-timeline__content h3 + p {
  margin-bottom: 24px;
}

.history-timeline__content p {
  margin: 0 0 18px;
  font-size: 1.08rem;
  line-height: 1.5;
  color: #6b6b6b;
  max-width: 500px;
}

.history-timeline__future-text {
  grid-column: 1;
  align-self: end;
  justify-self: end;
  text-align: right;
  font-size: 2rem;
  line-height: 0.95;
  font-weight: 700;
  color: #4d4d4d;
  text-transform: uppercase;
  padding-bottom: 24px;
}

/* iPad / планшеты */
@media (max-width: 1024px) {
  .about-intro {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .about-section-title {
    margin-bottom: 20px;
    font-size: 2rem;
  }

  .about-intro-text {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.65;
  }

  .about-logo__img {
    max-height: 58px;
  }

  .history-timeline {
    display: block;
    max-width: 100%;
    margin: 0 auto 56px;
  }

  .history-timeline__line {
    display: none;
  }

  .history-timeline__row,
  .history-timeline__future {
    display: block;
  }

  .history-timeline__year,
  .history-timeline__content,
  .history-timeline__future-text {
    position: static;
  }

  .history-timeline__year {
    text-align: left;
    font-size: 1.7rem;
    margin: 0 0 8px;
    padding-top: 0;
  }

  .history-timeline__content {
    max-width: 100%;
    margin-bottom: 28px;
  }

  .history-timeline__content h3 {
    font-size: 1.85rem;
    margin-bottom: 8px;
  }

  .history-timeline__content p {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 100%;
    margin-bottom: 16px;
  }

  .history-timeline__future-text {
    text-align: left;
    font-size: 1.8rem;
    margin-top: 4px;
    padding-bottom: 0;
  }
}

/* телефоны и маленькие планшеты */
@media (max-width: 767px) {
  .about-intro {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .about-section-title {
    font-size: 1.75rem;
    margin-bottom: 18px;
  }

  .about-intro-text {
    font-size: 0.96rem;
    line-height: 1.6;
    margin-bottom: 18px;
  }

  .about-logo {
    min-height: 72px;
    padding: 10px 14px;
  }

  .about-logo__img {
    max-height: 46px;
  }

  .history-timeline {
    --year-col: 72px;
    --line-col: 30px;
    --content-col: minmax(0, 1fr);
    --gap: 14px;

    row-gap: 22px;
    max-width: 100%;
  }

  .history-timeline__year {
    font-size: 1.4rem;
    padding-top: 4px;
  }

  .history-timeline__content h3 {
    font-size: 1.5rem;
    margin-bottom: 7px;
  }

  .history-timeline__content p {
    font-size: 0.94rem;
    line-height: 1.42;
    margin-bottom: 12px;
  }

  .history-timeline__future-text {
    font-size: 1.5rem;
    padding-bottom: 8px;
  }
}

/* телефоны */
@media (max-width: 480px) {
  .about-intro {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .about-section-title {
    font-size: 1.55rem;
    margin-bottom: 14px;
  }

  .about-intro-text {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 16px;
  }

  .about-logo {
    min-height: 64px;
    padding: 8px 12px;
  }

  .about-logo__img {
    max-height: 38px;
  }

  .history-timeline {
    display: block;
    max-width: 100%;
    margin: 0 auto 40px;
  }

  .history-timeline__line {
    display: none;
  }

  .history-timeline__row,
  .history-timeline__future {
    display: block;
  }

  .history-timeline__year,
  .history-timeline__content,
  .history-timeline__future-text {
    position: static;
  }

  .history-timeline__year {
    text-align: left;
    font-size: 1.35rem;
    margin: 0 0 6px;
    padding-top: 0;
  }

  .history-timeline__content {
    max-width: 100%;
    margin-bottom: 22px;
  }

  .history-timeline__content h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
  }

  .history-timeline__content p {
    font-size: 0.93rem;
    line-height: 1.45;
    margin-bottom: 12px;
  }

  .history-timeline__future-text {
    text-align: left;
    font-size: 1.45rem;
    margin-top: 4px;
    padding-bottom: 0;
  }
}

.abzac {
  width: 40%;
}

@media (max-width: 1000px) {
  .guy {
    display: none;
  }
}

@media (max-width: 800px) {
  .no-matter {
    display: none;
  }
}

/* Стили для аккордеона */
.accordion .card {
  border: none;
  background-color: #f8f9fa;
}

.accordion .card-header {
  background-color: #f8f9fa;
  padding: 15px;
}

.accordion .card-header h2 {
  margin-bottom: 0;
}

.accordion .btn-link {
  font-size: 18px; /* Увеличение размера шрифта */
  font-weight: bold;
  color: #212529; /* Темный цвет текста */
  text-decoration: none;
  width: 100%;
  text-align: left;
}

.accordion .btn-link:hover,
.accordion .btn-link:focus {
  text-decoration: none;
  color: #0056b3; /* Цвет при наведении */
}

.accordion .card-body {
  font-size: 16px;
  color: #333; /* Темный цвет текста */
  padding: 15px;
}

.accordion .card {
  margin-bottom: 10px;
}

.accordion .btn-link::after {
  content: "+";
  float: right;
  font-size: 20px;
  font-weight: bold;
}

.accordion .btn-link[aria-expanded="true"]::after {
  content: "-";
}

.carousel-item-iwrapper {
  height: 80vh;
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
}

@media (max-width: 1000px) {
  .carousel-item-iwrapper {
    height: 50vh;
  }
}

@media (max-width: 500px) {
  .carousel-item-iwrapper {
    height: 25vh;
  }
}

.carousel-item-iwrapper > * {
  max-width: 100%;
}

/* Страница товара — верхний блок */
.about-product {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 30px;
}

/* Левая часть с главным изображением */
.product-cover {
  flex: 0 1 520px;
  max-width: 520px;
  width: 100%;
  overflow: visible;
  background: #fff;
}

/* Ссылка Fancybox вокруг главного изображения */
.product-main-image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Главное изображение товара */
.product-main-image-link img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 460px;
  object-fit: contain;
}

/* Правая часть с текстом и аккордеоном */
.product-text {
  flex: 1 1 520px;
  max-width: 520px;
}

/* Планшеты и мобильные */
@media (max-width: 1000px) {
  .about-product {
    flex-direction: column;
    align-items: center;
  }

  .product-cover,
  .product-text {
    max-width: 100%;
    width: 100%;
  }

  .product-main-image-link img {
    max-height: 420px;
  }
}

@media (max-width: 600px) {
  .product-main-image-link img {
    max-height: 320px;
  }
}

/* Модели товара — сетка по карточкам */
.models-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 20px;
}
.model-card{
  border-top: 1px solid #e5e5e5;
  padding-top: 12px;
}
.model-card h5{ margin: 0 0 8px; }
.model-specs{ margin: 0; padding: 0; list-style: none; }
.model-specs li{ margin: 2px 0; }

/* мобилка */
@media (max-width: 800px){
  .models-grid{ grid-template-columns: 1fr; }
}

/* Благодарственные письма — финальные стили */

/* Контейнер обёртки писем */
.letters-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* Или center, если нужно центрировать */
  padding: 0 2vh; /* Добавляем отступы по бокам, как в других секциях */
}

/* Отдельный блок письма */
.letter-wrapper {
  --letter-sizing: 1.6vh;
  height: calc(var(--letter-sizing) * 14);
  width: calc(var(--letter-sizing) * 10);
  margin: 2vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0px 0px 10px 0px #4d4d4d;
  overflow: hidden;
  transition: all 0.2s ease-in;
}

.letter-wrapper:hover {
  --letter-sizing: 1.8vh;
  margin: 1vh;
}

/* Картинка письма */
.letter {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

/* Hover-блок с кнопкой удаления */
.letter-hover {
  height: 100%;
  width: 80%;
  background-color: #00000000;
  transition: all 0.2s ease-in;
}

.letter-wrapper:hover .letter-hover {
  background-color: #4d4d4d60;
  transform: translateY(-110%);
}

/* Ссылка на письмо */
.letter-wrapper a {
  display: block;
  width: 100%;
}

/* Галерея благодарственных писем */
.gallery-wrapper {
  padding: 5vh 2vh;
}

.gallery-thanks {
  gap: 2vh;
}

.gallery-thanks-item {
  flex: 0 1 140px;
  max-width: 160px;
  margin: 1vh;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.gallery-thanks-item:hover {
  transform: scale(1.03);
}

.gallery-thanks-item img.letter {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
}


/* Наши работы */
.ow-state {
  width: 32%;
  padding: 2vh;
  border: 0.1vh solid #4d4d4d;
  border-radius: 1vh;
  max-width: 90vw;
}

.ow-state > * {
  width: 100%;
}

@media (max-width: 750px) {
  .ow-state {
    width: 47.5%;
  }
}

@media (max-width: 400px) {
  .ow-state {
    width: 100%;
  }
}

.ow-cover {
  overflow: hidden;
}

.ow-cover > * {
  width: 100%;
}

/* Фиксированный размер для картики страницы Франшиза */
.fixed-image-container {
  width: 100%;
  max-width: 400px; /* Максимальная ширина для контейнера */
  height: 300px; /* Фиксированная высота для контейнера */
  overflow: hidden;
  margin: 0; /* Убираем отступы для точного выравнивания */
}

.fixed-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Масштабирование с сохранением пропорций */
}

.left-aligned {
  margin-left: 0; /* Устанавливаем контейнер строго по левому краю */
}

.text-aligned-right {
  padding-left: 30px; /* Добавляем отступ слева для выравнивания текста по центру относительно картинки */
  text-align: left;
}  

/* Стили формы админки для создания промо-страницы */
.form-wrapper-admin {
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-wrapper-admin .form-group label {
  color: #212529;
  font-weight: bold;
}

/* Промо-слайдер Ledplast */
.slider-image-wrapper {
  width: 100%;
  max-width: 900px; 
  margin: auto;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-image-wrapper img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 700px; /* регулируй — безопасная высота */
  object-fit: contain;
  display: block;
}

/* Стрелки и индикатор слайдера*/
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.6); /* затемнённый фон */
  border-radius: 50%;
  background-size: 70% 70%;
  padding: 20px;
}

.carousel-indicators li {
  background-color: #000;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 0.5;
}

.carousel-indicators .active {
  background-color: #007bff; /* выделим активный слайд синим */
  opacity: 1;
}

/* Таблица с фиксированной шириной ячеек */
.table-fixed-layout {
  table-layout: fixed;
  width: 100%;
}

.table-fixed-layout td,
.table-fixed-layout th {
  word-break: break-word;
  word-wrap: break-word;
  vertical-align: middle; /* по вертикали по центру */
  text-align: center;     /* по горизонтали по центру */
}

/* Промо заголовок*/
.promo-title {
  font-size: 36px;
  line-height: 1.3;
  font-weight: 700;
}

/* .promo-title .normal-case {
  text-transform: none;
} */

.promo-title .uppercase {
  text-transform: uppercase;
}

@media (max-width: 992px) {
  .promo-title {
    font-size: 28px;
  }
}

@media (max-width: 576px) {
  .promo-title {
    font-size: 22px;
  }
}

/*Фон ячеек таблицы промо*/

.highlight-red {
  background-color: #ffe5e5; /* мягкий красноватый фон */
  font-weight: bold;
}

.highlight-blue {
  background-color: #e5f0ff; /* мягкий синий фон */
  font-weight: bold;
}

/*Стили для Храрактеристики в промо*/

.table-title {
  text-align: center;
  font-size: 1.8rem; /* Было 1.6rem — стал на "1 размер" больше */
  font-weight: bold;
  margin-bottom: 20px;
}

/* Fancybox gallery */
.product-gallery,
.ow-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-gallery-wrapper,
.ow-gallery-wrapper {
  margin-top: 20px;
}

.product-gallery-title,
.ow-gallery-title {
  margin-bottom: 16px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #036c9d;
  text-transform: uppercase;
}

.gallery-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: #f5f5f5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



@media (max-width: 992px) {
  .ow-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .ow-gallery {
    grid-template-columns: 1fr;
  }
}