/* ===== БАЗА: фон, текст, ссылки ===== */

body {
  background-color: #f5f7f9;
  color: #212529;
  font-family: "Muli", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: #2e7d32;
}

a:hover,
a:focus {
  color: #1b5e20;
  text-decoration: none;
}

/* ===== НАВИГАЦИЯ СЛЕВА ===== */

#sideNav {
  background-color: #ffffff !important;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
}

#sideNav .navbar-brand span,
#sideNav .navbar-nav .nav-link {
  color: #455a64 !important;
}

#sideNav .navbar-nav .nav-link {
  font-weight: 500;
  letter-spacing: .02em;
}

#sideNav .navbar-nav .nav-link.active {
  color: #2e7d32 !important;
  font-weight: 700;
  position: relative;
}

#sideNav .navbar-nav .nav-link.active::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: #2e7d32;
}

#sideNav .navbar-nav .nav-link:hover {
  color: #2e7d32 !important;
}

/* Картинка-логотип в меню */

#sideNav .img-profile {
  border-radius: 16px !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.3);
}

/* ===== ГЛАВНЫЙ ЭКРАН / О НАС (#about) ===== */

#about {
  min-height: 100vh;
}

#about .my-auto {
  max-width: 820px;
}

#about h1 span {
  font-size: 2.4rem;
  font-weight: 800;
}

/* Подзаголовок после контактов */

#about .lead {
  font-size: 1.05rem;
  color: #455a64;
}

/* Подпись/подзаголовок */

.hero-subtitle {
  font-size: 1rem;
  color: #607d8b;
  margin-bottom: 1.25rem;
}

/* ===== КНОПКИ CTA НА ГЛАВНОМ ЭКРАНЕ ===== */

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-main,
.btn-main:focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #43a047, #2e7d32);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 10px 25px rgba(46, 125, 50, 0.3);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn-main:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(46, 125, 50, 0.4);
  color: #fff;
}

.btn-outline,
.btn-outline:focus {
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid #cfd8dc;
  background-color: #fff;
  color: #455a64;
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.btn-outline:hover {
  border-color: #2e7d32;
  color: #2e7d32;
}

/* ===== СПИСОК ПРЕИМУЩЕСТВ НА ГЛАВНОЙ ===== */

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 1rem;
  color: #263238;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem 1.5rem;
  margin-top: 0.5rem;
}

.advantages-item {
  position: relative;
  padding-left: 1.8rem;
  font-size: 0.95rem;
  color: #455a64;
  line-height: 1.4;
}

.advantages-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2e7d32;
  box-shadow: 0 0 0 6px rgba(67, 160, 71, 0.18);
}

/* ===== ПРОДУКЦИЯ (#experience) – карточки товаров ===== */

/* Карточка продукции – мобильная версия по умолчанию */
.example3 {
  position: relative;
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 1.5rem 0 !important;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  transition: transform .18s ease, box-shadow .18s ease;
  vertical-align: top;
}

.example3 img.example_beauty,
.example3 img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.example3 .example_text {
  position: static;
  padding: 1rem 1.1rem 1.15rem;
  background: #ffffff;
}

.example3 h6 {
  text-transform: none;
  font-family: inherit;
  font-size: 1rem;
  color: #263238;
  margin-bottom: 0.25rem;
}

.example3 span {
  font-size: 0.9rem;
  color: #607d8b;
}

.example3:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

/* Чуть выравниваем внутренности секции "Продукция" */

#experience .resume-content .subheading {
  text-transform: none;
  font-weight: 600;
  color: #263238;
}

#experience .resume-item {
  margin-bottom: 2.5rem;
}

/* ===== КОНТАКТЫ (#education) ===== */

#education .resume-item {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

#education .subheading {
  font-size: 1rem;
  color: #2e7d32;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1rem;
}

.contact-row a {
  font-weight: 500;
}

#education p {
  margin-bottom: 0.4rem;
  color: #455a64;
  font-size: 0.95rem;
}

/* ===== ОБЩИЕ ОТСТУПЫ СЕКЦИЙ ===== */

.section-heading,
.resume-section h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #263238;
}

.resume-section {
  padding-top: 3.5rem !important;
  padding-bottom: 3.5rem !important;
}

/* Чуть компактнее на больших экранах */

@media (min-width: 992px) {
  .resume-section {
    padding-left: 4rem !important;
  }
}

/* ===== ПРОДУКЦИЯ: заголовки и ряды карточек ===== */

.product-section-heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #263238;
}

.product-section-subtitle {
  font-size: 0.95rem;
  color: #607d8b;
  margin-bottom: 1rem;
}

/* по умолчанию – одна карточка под другой (мобилка) */
.product-cards-row {
  display: block;
}

/* карточка на мобиле по центру, умеренная ширина */
.product-cards-row .example3 {
  max-width: 480px;
  margin: 0 auto 1.5rem auto !important;
}

/* ноутбуки и десктопы – 2 карточки в ряд */
@media (min-width: 992px) {
  .product-cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: flex-start;
  }

  .product-cards-row .example3 {
    max-width: none;
    margin: 0 !important;
    flex: 0 0 calc(50% - 1.5rem); /* две карточки в ряд */
  }
}

/* очень широкие экраны – 3 карточки в ряд */
@media (min-width: 1400px) {
  .product-cards-row .example3 {
    flex: 0 0 calc(33.333% - 1.5rem);
  }
}

/* ===== FAQ ===== */

.faq-wrapper {
  max-width: 820px;
}

.faq-item {
  margin-bottom: 0.75rem;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  padding: 0.75rem 1rem;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  color: #263238;
  position: relative;
  padding-right: 1.5rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-weight: 600;
  color: #2e7d32;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-size: 0.95rem;
  color: #455a64;
}

/* ===== КОНТАКТЫ: действия и форма ===== */

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.contact-form {
  margin-top: 0.75rem;
}

.contact-form .form-group {
  margin-bottom: 0.85rem;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #607d8b;
}

.contact-form .form-control,
.contact-form textarea {
  font-size: 0.95rem;
}

/* Переключатель согласия - зелёный toggle */

.form-agreement {
  margin: 0.75rem 0 1rem;
}

.agreement-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: #607d8b;
}

.agreement-toggle input {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #cfd8dc;
  transition: background 0.15s ease;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.25);
  transition: transform 0.15s ease;
}

.agreement-toggle input:checked + .toggle-slider {
  background: #2e7d32;
}

.agreement-toggle input:checked + .toggle-slider::before {
  transform: translateX(18px);
}

.agreement-text {
  max-width: 260px;
}

/* Глобально режем горизонтальный скролл */

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Адаптивный размер заголовка на мобильных */

@media (max-width: 480px) {
  h1, .section-heading, #about h1 span {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
    word-break: break-word;
  }
}

.company-name-title {
  word-break: break-word;
  overflow-wrap: anywhere;
}

h1, h2, h3, .section-heading {
 /* word-wrap: break-word;
  overflow-wrap: break-word;*/
}

@media (max-width: 390px) {
  h1 {
    font-size: 1.6rem !important;
  }
}

@media (max-width: 330px) {
  h1 {
    font-size: 1.4rem !important;
  }
}
/* ===== ФИКС ГОРИЗОНТАЛЬНОГО СКРОЛЛА НА ВСЕХ УСТРОЙСТВАХ ===== */

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ===== АДАПТИВНЫЙ ЗАГОЛОВОК НА МОБИЛЕ, ЧТОБЫ ВЛЕЗАЛ В ЭКРАН ===== */

@media (max-width: 480px) {
  h1, .section-heading, #about h1 span {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
    word-break: break-word;
  }
}

.company-name-title {
  word-break: break-word;
  overflow-wrap: anywhere;
}

h1, h2, h3, .section-heading {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 390px) {
  h1 {
    font-size: 1.6rem !important;
  }
}

@media (max-width: 330px) {
  h1 {
    font-size: 1.4rem !important;
  }
}

/* ===== КАРТОЧКИ ПРОДУКЦИИ: АДАПТИВ ===== */

/* Базовая карточка – мобильная версия */
.example3 {
  position: relative;
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 1.5rem 0 !important;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  transition: transform .18s ease, box-shadow .18s ease;
}

/* Картинки в карточках */
.example3 img.example_beauty,
.example3 img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Ряд карточек – по умолчанию колонка */
.product-cards-row {
  display: block;
}

/* На мобиле ограничиваем ширину и центрируем, чтобы не казались слишком длинными */
.product-cards-row .example3 {
  max-width: 480px;
  margin: 0 auto 1.5rem auto !important;
}

/* Ноутбуки / десктопы: 2 карточки в ряд */
@media (min-width: 992px) {
  .product-cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: flex-start;
  }

  .product-cards-row .example3 {
    max-width: none;
    margin: 0 !important;
    flex: 0 0 calc(50% - 1.5rem); /* две карточки в ряд */
  }
}

/* Очень широкие экраны: 3 карточки в ряд */
@media (min-width: 1400px) {
  .product-cards-row .example3 {
    flex: 0 0 calc(33.333% - 1.5rem);
  }
}

/* ===== НЕМНОГО ПОДЖАЛИ ОТСТУПЫ НА ОЧЕНЬ МАЛЕНЬКИХ ЭКРАНАХ ===== */

@media (max-width: 575.98px) {
  .resume-section {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  #education .resume-item {
    padding: 1.25rem 1.25rem;
  }

  .faq-wrapper {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
}
/* Мобилка: поджимаем первый экран, чтобы текст комфортно влезал */

@media (max-width: 575.98px) {

  /* боковые отступы секций чуть меньше */
  .resume-section {
    padding-left: 1.2rem !important;
    padding-right: 1.2rem !important;
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  /* основной текст на первом экране */
  #about .lead {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
  }

  /* заголовок "ПРЕИМУЩЕСТВА РАБОТЫ С НАМИ" поменьше */
  .section-title,
  .section-heading {
    font-size: 1.25rem;
  }

  /* преимущества – в один столбец, чтобы строки были короче */
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem 0.8rem;
  }

  .advantages-item {
    font-size: 0.9rem;
  }
}
/* Исправляем перенос названия компании — запрещаем ломать слово по буквам */
.company-name-title,
#about h1 span {
  word-break: normal !important;
  overflow-wrap: normal !important;
  white-space: normal !important;
}
