﻿/* ===== ОСНОВНЫЕ ПЕРЕМЕННЫЕ И СТИЛИ ===== */
:root {
   --primary: #2a6d39;
   --primary-dark: #1f512b;
   --accent: #e67e22;
   --accent-hover: #d35400;
   --dark: #333333;
   --gray: #666666;
   --light-gray: #f5f5f5;
   --white: #ffffff;
   --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
   --transition: all 0.2s ease;
   --border-radius: 8px;
}

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
   font-family:
      "Segoe UI",
      system-ui,
      -apple-system,
      sans-serif;
   line-height: 1.6;
   color: var(--dark);
   overflow-x: hidden;
   scroll-behavior: smooth;
}

.container {
   width: 100%;
   max-width: 1200px;
   margin: 0 auto;
   padding: 0 20px;
}

.site-main {
   padding: 40px 0;
}

h1,
h2,
h3 {
   font-weight: 700;
   line-height: 1.2;
   margin-bottom: 1rem;
   color: var(--primary-dark);
}
#technology {
   text-align: center;
}
h1 {
   font-size: 2rem;
}
h2 {
   font-size: 2.2rem;
   margin-top: 3rem;
}
h3 {
   font-size: 1.5rem;
   color: var(--dark);
}

.btn {
   display: inline-block;
   padding: 14px 30px;
   background-color: var(--primary);
   color: white;
   border: none;
   border-radius: var(--border-radius);
   font-weight: 600;
   cursor: pointer;
   text-decoration: none;
   transition: var(--transition);
   text-align: center;
}

.btn:hover {
   background-color: var(--primary-dark);
   transform: translateY(-2px);
   box-shadow: 0 6px 15px rgba(42, 109, 57, 0.2);
}

.btn-accent {
   background-color: var(--accent);
   color: white;
}

.btn-accent:hover {
   background-color: var(--accent-hover);
}

.btn-outline {
   background-color: transparent;
   border: 2px solid var(--primary);
   color: var(--primary);
}

.btn-outline:hover {
   background-color: var(--primary);
   color: white;
}

.btn-large {
   padding: 18px 40px;
   font-size: 1.1rem;
}

section {
   margin-bottom: 50px;
}

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.mytheme-site-breadcrumbs {
   position: relative;
   z-index: 5;
   padding: 18px 0 12px;
   background: linear-gradient(180deg, rgba(245, 245, 245, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
   border-bottom: 1px solid rgba(42, 109, 57, 0.08);
}

.mytheme-site-breadcrumbs__list {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   gap: 8px 12px;
   margin: 0;
   padding: 0;
   list-style: none;
}

.mytheme-site-breadcrumbs__item {
   display: inline-flex;
   align-items: center;
   gap: 12px;
   min-width: 0;
   color: var(--gray);
   font-size: 14px;
   line-height: 1.5;
}

.mytheme-site-breadcrumbs__item:not(:last-child)::after {
   content: "/";
   color: rgba(51, 51, 51, 0.35);
}

.mytheme-site-breadcrumbs__link {
   color: var(--primary);
   text-decoration: none;
   transition: var(--transition);
}

.mytheme-site-breadcrumbs__link:hover {
   color: var(--accent);
}

.mytheme-site-breadcrumbs__current {
   color: var(--dark);
   font-weight: 600;
}

nav.breadcrumbs,
nav.mytheme-product-page__breadcrumbs {
   display: none !important;
}

@media (max-width: 767px) {
   .mytheme-site-breadcrumbs {
      padding: 14px 0 10px;
   }

   .mytheme-site-breadcrumbs__list {
      gap: 6px 10px;
   }

   .mytheme-site-breadcrumbs__item {
      gap: 10px;
      font-size: 13px;
   }
}

/* ===== FORM CONTROLS (shared) ===== */
.form-row {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 20px;
   margin-bottom: 20px;
}

.form-group {
   margin-bottom: 20px;
}

.form-group label {
   display: block;
   margin-bottom: 8px;
   font-weight: 500;
   color: var(--dark);
}

.form-control {
   width: 100%;
   padding: 14px;
   border: 2px solid #ddd;
   border-radius: var(--border-radius);
   font-size: 16px;
   transition: var(--transition);
}

.form-control:focus {
   border-color: var(--primary);
   outline: none;
   box-shadow: 0 0 0 3px rgba(42, 109, 57, 0.1);
}

.form-consent {
   display: flex;
   flex-direction: column;
   gap: 8px;
   margin: 16px 0 14px;
}

.form-consent__label {
   display: flex;
   align-items: flex-start;
   gap: 10px;
   cursor: pointer;
   font-size: 14px;
   line-height: 1.5;
   color: inherit;
}

.form-consent__checkbox {
   flex: 0 0 auto;
   width: 18px;
   height: 18px;
   margin-top: 2px;
   accent-color: var(--primary);
}

.form-consent__text {
   color: inherit;
}

.form-consent__text a {
   color: var(--accent);
   font-weight: 600;
   text-decoration: underline;
   text-underline-offset: 2px;
}

.product-description {
   overflow: hidden;
   display: -webkit-box;
   -webkit-line-clamp: 4;
   -webkit-box-orient: vertical;
   max-height: calc(1.4em * 5);
}
.product-actions {
   grid-template-columns: 1fr !important;
}
.product-specs {
   margin: 0px !important;
}
.form-consent__error {
   color: #c0392b;
   font-size: 13px;
   line-height: 1.4;
}

/* ===== МОДАЛЬНОЕ ОКНО КОММЕРЧЕСКОГО ПРЕДЛОЖЕНИЯ ===== */
.modal-overlay {
   display: none;
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background-color: rgba(0, 0, 0, 0.5);
   z-index: 1100;
   align-items: center;
   justify-content: center;
   padding: 20px;
}

.modal-overlay.active {
   display: flex;
}

.lead-hp {
   display: none !important;
}

.modal {
   background-color: var(--white);
   border-radius: 10px;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
   width: 100%;
   max-width: 600px;
   max-height: 90vh;
   overflow-y: auto;
   animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
   from {
      opacity: 0;
      transform: translateY(-20px);
   }
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

.modal-header {
   background-color: var(--primary);
   color: white;
   padding: 20px;
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.modal-title {
   font-size: 18px;
   font-weight: 700;
}

.modal-close {
   background: none;
   border: none;
   color: white;
   font-size: 24px;
   cursor: pointer;
   line-height: 1;
   padding: 0;
   width: 30px;
   height: 30px;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 50%;
   transition: var(--transition);
}

.modal-close:hover {
   background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
   padding: 25px;
}

/* ===== CABINS SIZE MODAL (shared) ===== */
.cabins-modal {
   display: none;
   position: fixed;
   inset: 0;
   background: rgba(9, 18, 14, 0.68);
   z-index: 1200;
   align-items: center;
   justify-content: center;
   padding: 24px;
   overflow-y: auto;
   backdrop-filter: blur(4px);
}

.cabins-modal.active {
   display: flex;
   animation: cabinsModalFadeIn 0.2s ease;
}

@keyframes cabinsModalFadeIn {
   from {
      opacity: 0;
   }
   to {
      opacity: 1;
   }
}

.cabins-modal-content {
   background: var(--white);
   border: 1px solid rgba(42, 109, 57, 0.14);
   border-radius: 14px;
   box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
   display: flex;
   flex-direction: column;
   max-height: calc(100vh - 48px);
   max-height: calc(100dvh - 48px);
   max-width: 620px;
   overflow: hidden;
   position: relative;
   width: min(100%, 620px);
   animation: cabinsModalSlideIn 0.28s ease;
}

@keyframes cabinsModalSlideIn {
   from {
      transform: translateY(18px) scale(0.98);
      opacity: 0;
   }
   to {
      transform: translateY(0) scale(1);
      opacity: 1;
   }
}

.cabins-modal-header {
   display: flex;
   flex: 0 0 auto;
   justify-content: space-between;
   align-items: center;
   gap: 18px;
   margin-bottom: 0;
   padding: 22px 28px;
   background: linear-gradient(135deg, var(--primary), var(--primary-dark));
   color: var(--white);
}

.cabins-modal-title {
   color: inherit;
   font-size: clamp(20px, 3vw, 26px);
   line-height: 1.2;
   margin: 0;
}

.cabins-close-modal {
   flex: 0 0 auto;
   background: rgba(255, 255, 255, 0.14);
   border: none;
   font-size: 26px;
   line-height: 1;
   cursor: pointer;
   color: var(--white);
   width: 36px;
   height: 36px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: var(--transition);
}

.cabins-close-modal:hover {
   background: rgba(255, 255, 255, 0.24);
   color: var(--white);
}

.cabins-close-modal:focus-visible {
   outline: 3px solid rgba(255, 255, 255, 0.55);
   outline-offset: 2px;
}

#customSizeForm {
   display: flex;
   flex: 1 1 auto;
   flex-direction: column;
   min-height: 0;
   overflow-y: auto;
   padding: 28px;
}

#customSizeForm .form-row {
   display: grid;
   grid-template-columns: repeat(2, minmax(0, 1fr));
   gap: 16px;
   margin: 0 0 18px;
}

#customSizeForm .form-group {
   margin: 0 0 18px;
}

#customSizeForm .form-row .form-group {
   margin: 0;
}

#customSizeForm label {
   color: #2b3830;
   display: block;
   font-size: 14px;
   font-weight: 700;
   line-height: 1.3;
   margin-bottom: 8px;
}

#customSizeForm .form-control {
   background: var(--white);
   border: 1px solid #d8e0da;
   border-radius: 8px;
   box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.02);
   color: var(--dark);
   font-size: 15px;
   line-height: 1.3;
   min-height: 48px;
   padding: 12px 14px;
   width: 100%;
}

#customSizeForm .form-control:hover {
   border-color: #bac8bf;
}

#customSizeForm .form-control:focus {
   border-color: var(--primary);
   box-shadow: 0 0 0 3px rgba(42, 109, 57, 0.14);
   outline: none;
}

#customSizeForm .form-actions {
   display: flex;
   justify-content: flex-end;
   margin-top: 6px;
}

#customSizeForm .btn-primary {
   align-items: center;
   background: var(--accent);
   border: 0;
   border-radius: 8px;
   box-shadow: 0 10px 20px rgba(230, 126, 34, 0.22);
   color: var(--white);
   display: inline-flex;
   font-size: 16px;
   font-weight: 700;
   justify-content: center;
   line-height: 1.2;
   min-height: 50px;
   padding: 14px 24px;
   white-space: normal;
   width: 100%;
}

#customSizeForm .btn-primary:hover,
#customSizeForm .btn-primary:focus-visible {
   background: var(--accent-hover);
   box-shadow: 0 12px 24px rgba(211, 84, 0, 0.24);
   color: var(--white);
   transform: translateY(-1px);
}

@media (max-width: 640px) {
   .cabins-modal {
      align-items: flex-start;
      padding: 12px;
   }

   .cabins-modal-content {
      border-radius: 12px;
      max-height: calc(100vh - 24px);
      max-height: calc(100dvh - 24px);
   }

   .cabins-modal-header {
      padding: 18px;
   }

   #customSizeForm {
      padding: 20px 18px;
   }

   #customSizeForm .form-row {
      grid-template-columns: 1fr;
      gap: 14px;
      margin-bottom: 14px;
   }

   #customSizeForm .form-group {
      margin-bottom: 14px;
   }

   #customSizeForm .form-control {
      font-size: 16px;
   }
}

.modal-selected-item {
   background-color: rgba(42, 109, 57, 0.1);
   padding: 15px;
   border-radius: 6px;
   margin-bottom: 20px;
   border-left: 4px solid var(--primary);
}

.modal-selected-title {
   font-weight: 700;
   color: var(--primary);
   margin-bottom: 8px;
   font-size: 16px;
}

.modal-selected-text {
   color: var(--dark);
   font-size: 14px;
   line-height: 1.5;
}

.modal-form-group {
   margin-bottom: 20px;
}

.modal-label {
   display: block;
   margin-bottom: 8px;
   font-weight: 600;
   color: var(--dark);
   font-size: 14px;
}

.modal-input {
   width: 100%;
   padding: 12px 15px;
   border: 1px solid #ddd;
   border-radius: 6px;
   font-size: 14px;
   transition: var(--transition);
}

.modal-input:focus {
   outline: none;
   border-color: var(--primary);
   box-shadow: 0 0 0 2px rgba(42, 109, 57, 0.2);
}

.modal-textarea {
   width: 100%;
   padding: 12px 15px;
   border: 1px solid #ddd;
   border-radius: 6px;
   font-size: 14px;
   min-height: 80px;
   resize: vertical;
   transition: var(--transition);
   font-family: inherit;
}

.modal-textarea:focus {
   outline: none;
   border-color: var(--primary);
   box-shadow: 0 0 0 2px rgba(42, 109, 57, 0.2);
}

.modal-submit-btn {
   width: 100%;
   padding: 14px;
   background-color: var(--primary);
   color: white;
   border: none;
   border-radius: 6px;
   font-weight: 600;
   font-size: 16px;
   cursor: pointer;
   transition: var(--transition);
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 10px;
}

.modal-submit-btn:hover {
   background-color: var(--primary-dark);
}

.modal-footer {
   padding: 15px 25px 25px;
   text-align: center;
   font-size: 12px;
   color: var(--gray);
   border-top: 1px solid #eee;
}

.info-message {
   position: fixed;
   top: 20px;
   left: 50%;
   transform: translateX(-50%);
   background-color: var(--primary);
   color: white;
   padding: 15px 30px;
   border-radius: var(--border-radius);
   box-shadow: var(--shadow);
   z-index: 1000;
   display: none;
}

.info-message.show {
   display: block;
   animation: fadeInOut 3s ease;
}

@keyframes fadeInOut {
   0% {
      opacity: 0;
      top: 10px;
   }
   15% {
      opacity: 1;
      top: 20px;
   }
   85% {
      opacity: 1;
      top: 20px;
   }
   100% {
      opacity: 0;
      top: 10px;
   }
}

/* Разделитель секций */
.section-divider {
   height: 1px;
   background: linear-gradient(to right, transparent, var(--primary), transparent);
   margin: 30px auto;
   max-width: 800px;
}

/* Центрирование кнопок */
.btn-center {
   display: block;
   margin: 30px auto 0;
   max-width: 300px;
}

/* ===== АДАПТИВНОСТЬ (ОБЩЕЕ) ===== */
@media (max-width: 768px) {
   h1 {
      font-size: 2.2rem;
   }

   h2 {
      font-size: 1.8rem;
   }

   .modal {
      margin: 10px;
      max-height: 85vh;
   }
}

@media (max-width: 600px) {
   .modal-body {
      padding: 20px;
   }
}

@media (max-width: 480px) {
   .modal-header {
      padding: 15px;
   }

   .modal-title {
      font-size: 16px;
   }

   .modal-body {
      padding: 15px;
   }
}

/* ===== ТЕКСТОВЫЕ СТРАНИЦЫ (политика, оферта и т.д.) ===== */

.default-entry {
   padding: 65px 0 90px;
}

.default-entry__header {
   margin-bottom: 35px;
   padding-bottom: 20px;
   border-bottom: 1px solid #eee;
}

.default-entry__header h1 {
   font-size: 2.4rem;
   line-height: 1.15;
   color: var(--primary-dark);
   margin: 0;
   letter-spacing: -0.02em;
}

.default-entry__content {
   max-width: 920px;
   font-size: 1.05rem;
   line-height: 1.8;
   color: var(--dark);
   background: #fff;
   padding: 35px 40px;
   border-radius: var(--border-radius);
   box-shadow: var(--shadow);
   overflow: hidden;
}

.default-entry__content > *:first-child {
   margin-top: 0;
}

.default-entry__content > *:last-child {
   margin-bottom: 0;
}

/* Заголовки */
.default-entry__content h2 {
   font-size: 1.8rem;
   line-height: 1.25;
   margin: 40px 0 18px;
   color: var(--primary-dark);
   letter-spacing: -0.01em;
}

.default-entry__content h3 {
   font-size: 1.35rem;
   line-height: 1.3;
   margin: 28px 0 14px;
   color: var(--primary-dark);
}

.default-entry__content h4 {
   font-size: 1.15rem;
   margin: 24px 0 12px;
   color: var(--dark);
}

/* Абзацы */
.default-entry__content p {
   margin: 0 0 16px;
   color: var(--dark);
}

.default-entry__content strong {
   color: var(--primary-dark);
   font-weight: 700;
}

/* Списки */
.default-entry__content ul,
.default-entry__content ol {
   margin: 0 0 18px;
   padding-left: 22px;
}

.default-entry__content li {
   margin-bottom: 10px;
   line-height: 1.7;
}

.default-entry__content li > ul,
.default-entry__content li > ol {
   margin-top: 10px;
}

/* Ссылки */
.default-entry__content a {
   color: var(--primary);
   text-decoration: underline;
   text-underline-offset: 3px;
   transition: var(--transition);
}

.default-entry__content a:hover {
   color: var(--accent);
}

/* Разделители */
.default-entry__content hr {
   border: 0;
   height: 1px;
   background: #e6e6e6;
   margin: 35px 0;
}

/* Таблицы */
.default-entry__content table {
   width: 100%;
   border-collapse: collapse;
   margin: 22px 0 26px;
   font-size: 0.98rem;
   background: #fff;
   border-radius: 12px;
   overflow: hidden;
   box-shadow: 0 0 0 1px #eee;
}

.default-entry__content thead {
   background: rgba(42, 109, 57, 0.06);
}

.default-entry__content th,
.default-entry__content td {
   border: 1px solid #ececec;
   padding: 14px 16px;
   text-align: left;
   vertical-align: top;
   line-height: 1.6;
}

.default-entry__content th {
   color: var(--primary-dark);
   font-weight: 700;
}

.default-entry__content tr:nth-child(even) td {
   background: #fafafa;
}

/* Цитаты */
.default-entry__content blockquote {
   margin: 22px 0;
   padding: 18px 22px;
   border-left: 4px solid var(--primary);
   background: rgba(42, 109, 57, 0.05);
   border-radius: 0 12px 12px 0;
   color: var(--dark);
}

/* Изображения */
.default-entry__content img {
   max-width: 100%;
   height: auto;
   display: block;
   margin: 20px 0;
   border-radius: 14px;
}

/* Видео / iframe */
.default-entry__content iframe,
.default-entry__content video {
   max-width: 100%;
   border: 0;
   border-radius: 14px;
}

/* Если в контенте есть лишние span/div от редактора */
.default-entry__content span,
.default-entry__content div {
   line-height: inherit;
}

/* Классы из markdown/AI-редактора — просто нейтрализуем лишнее */
.default-entry__content .qwen-markdown-heading,
.default-entry__content .qwen-markdown-paragraph,
.default-entry__content .qwen-markdown-text,
.default-entry__content .qwen-markdown-space,
.default-entry__content .qwen-markdown-hr,
.default-entry__content .qwen-markdown-table-wrapper,
.default-entry__content .qwen-markdown-table-scroll-wrapper {
   all: unset;
}

/* Мобилка */
@media (max-width: 768px) {
   .default-entry {
      padding: 45px 0 70px;
   }

   .default-entry__header {
      margin-bottom: 24px;
      padding-bottom: 16px;
   }

   .default-entry__header h1 {
      font-size: 1.8rem;
   }

   .default-entry__content {
      padding: 22px 18px;
      font-size: 1rem;
      line-height: 1.75;
   }

   .default-entry__content h2 {
      font-size: 1.45rem;
      margin-top: 30px;
   }

   .default-entry__content h3 {
      font-size: 1.2rem;
   }

   .default-entry__content table {
      display: block;
      overflow-x: auto;
      white-space: nowrap;
   }

   .default-entry__content th,
   .default-entry__content td {
      padding: 12px 14px;
   }
}
.default-entry__header {
   margin: 0 0 25px;
   padding: 0;
   border: 0;
   background: transparent;
}

.default-entry__header h1 {
   margin: 0;
   padding: 0;
   font-size: 2.2rem;
   line-height: 1.2;
   color: var(--primary-dark);
   font-weight: 700;
   letter-spacing: -0.02em;
}
.default-entry__header {
   position: static !important;
   top: auto !important;
   left: auto !important;
   right: auto !important;
   bottom: auto !important;
   transform: none !important;
   margin: 0 0 25px;
   padding: 0;
   background: transparent;
   border: 0;
   box-shadow: none !important;
}
