@font-face {
  font-family: 'AvenirNext';
  src:
    url('/fonts/AvenirNextLTPro-Regular.woff2') format('woff2'),
    url('/fonts/AvenirNextLTPro-Regular.woff') format('woff'),
    url('/fonts/AvenirNextLTPro-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --dark: #333 !important;
  --lite: #e5e2da !important;
  --accent: #083e55 !important;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1)!important;
  --radius: 5px!important;  
  --gap: 12px;
    
}


.lite-margined-wrapper .block-set-editor .my-top-header {
  position: relative;
}

body {
  font-family: "AvenirNext", sans-serif !important;
  margin: 0;
  background: var(--lite);  
}

/* Двухколоночный контейнер для блока about */
.my-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2%;
  padding: 1% 2%;
  box-sizing: border-box;
}

.builder {
  flex: 1 1 48%;
  max-width: 48%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  padding: 1%;
  margin: 0 auto;
}

body.mobile .my-container {
  flex-direction: column;
}

body.mobile .builder {
  flex-basis: 100%;
  max-width: 100%;
}

.builder .image-box,
.builder .image-box img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
button, input, select, textarea, h1, h2, h3, h4, h5, h6, p, .lite-page:not(.block-set-editor.ui-sortable) span {
   font-family: "AvenirNext", sans-serif !important;   
}
h1 {
    font-size: 20px !important;
    font-weight: 500 !important;
}

.my-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1% 2%;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  background-color: var(--accent);
  color: var(--lite);
  transition: all 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.my-menu {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex: 1;
}

.site-footer .my-menu {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
    justify-content: space-evenly;
    flex: 1;
    width: 95%;
    margin: 0 auto var(--gap);
}

.my-menu-link {
    color: var(--lite);
    text-decoration: none !important;
    transition: all .3s ease-in-out;
}

@media (hover:hover) {
    .my-menu-link:hover {
    border-bottom: 1px dashed;
    color: #fff;   
    }
}
.my-menu-link.active {
  border-bottom: 1px solid;
  color: #fff;
}

.my-lang-selector {
  position: relative;
}



.my-lang-code-selected {
  color: var(--lite);
    font-size: 16px;
    font-weight: 400;
    margin: auto 2% !important;
}

.my-lang-options {
  position: absolute;
  top: 100%;
  right: 0; /* По умолчанию выравниваем список вправо */
  left: auto; /* Убираем возможное влияние `left` */
  z-index: 1000;
  background-color: var(--lite, #f9f9f0);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 150px;
    display: none;
}

.my-lang-button:hover + .my-lang-options,
.my-lang-options:hover {
  display: block;
}

body[dir="rtl"] .my-lang-options {
  right: auto; /* Убираем выравнивание вправо */
  left: 0; /* Привязываем список к левой стороне */
}

.my-lang-button {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-radius: var(--radius); 
  width: 100%;
    margin: 2% auto;
    font-size: 16px;
    font-weight: 400;
    color: var(--dark);
    border: none;  
}

.my-lang-button:hover {
  background-color: rgba(0, 0, 0, 0.05);  
}

.my-flag {
  margin-right: 8px;
}



body[dir="rtl"] .my-flag {
  margin-right: 0;
  margin-left: 8px; /* Переносим отступ на другую сторону */
}

/*.content-block {
  margin-top: 5%;
}*/

.my-btn {
  margin: 2% auto;
}

.my-btn .btn {
  background: var(--accent);
    border: 1px solid var(--accent);
    color: var(--lite)!important;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    transition: all .5s ease-in-out;
    font-size: 18px;
    display: inline-block;
    margin-bottom: 0;
    font-weight: normal;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    padding: 3% 5%;
    text-decoration: none !important;
}

@media (hover:hover) {
    .my-btn .btn:hover {
        background: var(--lite);
        color: var(--accent)!important;
    }
}

.content-block img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.content-block .f-header p {
    color: var(--accent);
}
.content-block .f-text p {
    color: var(--dark);
    margin-bottom: 5px;
}

.site-footer {
    background: var(--accent);
    color: var(--lite);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2%;
}
.site-footer p,
.site-footer span {
    color: var(--lite);
    text-align: center;
}
.site-footer .social-icon {
    width: 32px;
    height: 32px;
}
.site-footer .social-icon svg path {
    fill: var(--lite)!important;
}
body.mobile .contact-icons {
    margin: 20px auto;
    gap: 20px;
}
.site-footer .developer {
    font-size: 14px;
}
.site-footer .developer a {
    color: #ffffff!important;
    text-decoration: none!important;
    transition: all .3s ease-in-out;
    border-bottom: 1px dashed;
}
@media (hover:hover) {
    .site-footer .developer a:hover {
        border-bottom: 1px solid;
    }
}

.my-cover-cover {
    background: var(--accent);
}
body.mobile .my-cover-cover {
    padding-bottom: 0!important;
}

.my-cover {
  position: relative;
  width: 100%;
  padding-top: 50%; /* соотношение 7874x3937 */
  background-image: url('images/hunt.webp');
  background-size: cover;
  background-position: center;
}

.my-cover-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 3% 5%; /* небольшой отступ от краёв */
  box-sizing: border-box;
   background: color(display-p3 0.1 0.24 0.33 / 0.2);
}

.my-cover .my-header,
.my-cover .my-subheader {
    color: var(--lite);
    text-transform: uppercase;
    font-weight: 600;
}
.my-cover .my-header {
    font-size: 36px;
}
.my-cover .my-subheader {
    font-size: 30px;
}
.my-cover .my-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1em; /* временно, будет пересчитано скриптом */
  font-size: clamp(1.2em, 5vw, 2.5em);
  font-weight: bold;
  color: var(--lite);
  overflow: hidden;
}

.my-cover .header-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  opacity: 0;
  transition: opacity 1.5s ease;
  white-space: nowrap;
    color: var(--lite);
}

.my-cover .header-a {
  opacity: 1;
  z-index: 1;
}

.my-cover .header-b {
  z-index: 2;
}

/* Мобильный вид при наличии класса mobile у body */
body.mobile .my-top-header {
  position: fixed !important;
  top: var(--gap) !important;
  left: var(--gap) !important;
  width: 50px !important; /* Маленький квадрат */
  height: 50px !important;
  background-color: var(--accent) !important;
  cursor: pointer !important;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  transition: all 0.3s ease !important;
}

/* Полоски на кнопке меню */
body.mobile .my-top-header::before {
  content: '' !important;
  width: 25px !important;
  height: 3px !important;
  background-color: var(--lite) !important;
  display: block !important;
  margin: auto !important;
  box-shadow: 0 6px 0 0 var(--lite), 0 -6px 0 0 var(--lite);
  transition: all 0.3s ease !important;
}

/* Раскрытое меню */
body.mobile .my-top-header.open {
  width: 70% !important;
  height: 100vh !important;
  background-color: var(--lite) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 5% !important;
  cursor: default !important;
  top: 0 !important;
  left: 0 !important;
  border-radius: 0 !important;
}

/* Лого */
body.mobile .my-top-header:not(.open) .my-logo {
  display: none !important;
}

body.mobile .my-top-header.open .my-logo {
  /*display: block !important;*/
  margin-bottom: 20px !important;
  color: var(--dark) !important;
  font-size: 24px !important;
  font-weight: bold !important;
  width: 100% !important; /* Занимает всю ширину */
}

/* Скрываем .my-menu и .my-lang-selector по умолчанию */
body.mobile .my-top-header .my-menu,
body.mobile .my-top-header .my-lang-selector {
  display: none !important;
}

/* Показываем меню и языки в открытом состоянии */
body.mobile .my-top-header.open .my-menu {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 15px !important;
  width: 100% !important; /* Занимает всю ширину */
}

body.mobile .my-top-header.open .my-menu .my-menu-link {
  color: var(--accent);
  text-decoration: none !important;
}

body.mobile .my-top-header.open .my-lang-selector {
  display: flex !important;
  justify-content: center !important;
  margin-top: auto !important;
  width: 100% !important; /* Занимает всю ширину */
    margin-bottom: 50%;
}

/* Флаги в строку */
body.mobile .my-top-header.open .my-lang-options {
  display: flex !important;
  gap: 10px !important;
  width: 100% !important; /* Занимает всю ширину */
}

/* Скрываем span.my-lang-name и span.my-flag-selected */
body.mobile .my-top-header.open .my-lang-button span.my-lang-name,
body.mobile .my-top-header.open .my-lang-button span.my-flag-selected,
body.mobile .my-top-header.open .my-lang-button span.my-lang-code-selected,
body.mobile .my-top-header.open .my-lang-button {
  display: none !important;
}
body.mobile .my-top-header.open .my-lang-options .my-lang-button {
    display: flex !important;
}


/* Отменяем десктопные стили для .my-lang-options */
body.mobile .my-top-header .my-lang-options {
  position: relative !important;  /* Отмена абсолютного позиционирования */
  top: auto !important;
  right: auto !important;
  left: auto !important;
  z-index: auto !important;
  box-shadow: none !important;
  overflow: visible !important;
  min-width: unset !important;
}


.modal-dialog {
  width: 80vw!important;
}
.modal-content {
  border-radius: var(--radius)!important;
  padding: 3%;
    background: var(--lite);
}

.modal .new-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2%;
  justify-content: center; /* опционально: центрируем блоки при 1 элементе */
}

.modal .new-container .lite-block:not(.lite-invisible-block) {
  flex: 0 1 48%;
  min-width: 280px;
  display: flex; /* добавим: нужно для выравнивания вложенного блока */
  justify-content: center; /* центрируем .lt-block-wrapper по горизонтали */
}

.modal .new-container .lite-block.lite-invisible-block {
    flex: 100%;
}

.modal .new-container .lite-block .lt-block-wrapper,
.modal .new-container .lite-block .lt-block {
  width: 100%; /* растягиваемся на всю доступную ширину lite-block */
  max-width: 100%; /* на всякий случай */
    padding:1%!important;
}

.modal .new-container .simple-image {
    margin: auto!important;
}

.modal .new-container .image-wrapper a,
.modal .new-container img {
  cursor: pointer;
  border-radius: var(--radius)!important;
  box-shadow: var(--shadow);
}

.modal .new-container .my-header .f-header p,
.modal .new-container .my-header2 .f-subheader p {
    color: var(--accent)!important;
    font-family: "AvenirNext", sans-serif !important;
}
.modal .new-container .my-description .f-text p {
    color: var(--dark)!important;
    font-family: "AvenirNext", sans-serif !important;
}

.modal .new-container .my-header p{
    font-size: 24px;
}

.order-btn {
  background: var(--accent);
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  padding: 1% 2%;
  color: var(--lite);
  text-decoration: none!important;
  box-shadow: var(--shadow);
  transition: all .5s ease-in-out;
    width: fit-content;
  cursor: pointer;
  margin: auto;
    display: none;
}

.order-btn a {
    color: var(--lite);
    text-decoration: none!important;
    transition: all .5s ease-in-out;
}

@media (hover:hover) {
  .order-btn:hover {
    color: var(--accent);
    background: var(--lite);
  }
    .order-btn:hover a {
    color: var(--accent);
    }
}


.modal .fa-times::before {
  content: \"\"!important;
}
.modal .close-btn .fa-times::before {
  content: \"\\f00d\"!important;
}

.contact-block {
    display: flex;
    flex-wrap: nowrap; 
    justify-content: center;
    align-items: stretch;            /* 🔥 тянет оба блока в одинаковую высоту */
    gap: 20px;
    margin: 2%;
}

/* Левая колонка — форма */
.contact-form-wrapper {
    max-width: none;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex: 1 1 60%;
    padding: 2%;

    display: flex;
    flex-direction: column;          /* тянем вниз */
    justify-content: flex-start;
}

/* Правая колонка — фото */
.contact-photo {
    flex: 1 1 40%;
    text-align: center;
    display: flex;
    align-items: stretch;
}

.contact-photo img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    height: 100%;                    /* 🔥 фото равной высоты с формой */
    object-fit: cover;               /* 🔥 эстетичное обрезание */
}

/* Мобильная версия — «раскладываем» в столбец */
.mobile .contact-block {
    flex-wrap: wrap;
}

.mobile .contact-form-wrapper,
.mobile .contact-photo {
    flex: 100%;
    height: auto;                   /* сброс общей высоты */
}

.contact-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 1% auto;
}

.social-icon {
    width: 50px;
    height: 50px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon svg {
    width: 40px;
    height: 40px;
    transition: all .3s ease-in-out;
}

form#contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;                      /* 🔥 заменяет margin-bottom от элементов */
}

body[dir="ltr"] form#contact-form label {
    text-align: left!important;
}

body[dir="rtl"] form#contact-form label,
body[dir="rtl"] form#contact-form input {
    text-align: right!important;
}

/* === Исправление поведения consent-блока в мобильной версии Safari === */
label.consent {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  box-sizing: border-box;
  margin: 1em 0;
  text-align: left;
}

label.consent input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  margin-right: 10px;
  accent-color: var(--accent);
  box-sizing: border-box;
}

label.consent span {
  flex: 1 1 auto;
  display: block;
  width: calc(100% - 30px);
  font-weight: 400;
  font-style: italic;
  font-size: 14px;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  text-align: left;
}

/* RTL версия consent */
body[dir="rtl"] label.consent {
  text-align: right;
}
body[dir="rtl"] label.consent input[type="checkbox"] {
  margin-right: 0;
  margin-left: 10px;
}
body[dir="rtl"] label.consent span {
  text-align: right;
}

/* Общие поля формы */
.contact-form-wrapper input,
.contact-form-wrapper textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 16px;
  box-sizing: border-box;
}

input[data-placeholder] {
    font-weight: 300;
}

textarea#message {
    font-weight: 400;
}

/* Текст перед кнопками методов связи */
.contact-method-text {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    gap: .5em;
}

.contact-method-text p {
    font-weight: 600;
    margin: 0;
}

.contact-method-text span {
    font-style: italic;
    font-size: 14px;
    font-weight: 400;
}

/* === КНОПКИ СПОСОБОВ СВЯЗИ === */
.contact-methods {
    margin: 10px 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.method-btn {
    margin: 5px;
    padding: 0;                     /* важно! иначе SVG уменьшался */
    font-size: 22px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: var(--lite);
    transition: background 0.3s, transform 0.2s;
    width: 40px;
    height: 40px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.method-btn svg {
    width: 24px;                    /* аккуратный размер внутри 40×40 */
    height: 24px;
    flex-shrink: 0;                 /* критично для Safari/iPhone */
    display: block;                 /* убирает inline-пробелы */
}

@media (hover:hover) {
  .method-btn:hover,
  .social-icon:hover svg {
    transform: scale(1.1);
  }
}

.method-btn.active {
  background: var(--accent);
  color: white;
}

.method-btn.active svg path {
    fill: #fff!important;
}

/* Скрытые блоки контактов */
.hidden {
  display: none;
}

/* Модальное окно «спасибо» */
.thankyou-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 30px 40px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1000;
}

.thankyou-modal.show {
  opacity: 1;
}

button#submit-btn {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--lite) !important;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  transition: all .5s ease-in-out;
  font-size: 18px;
  width: fit-content;
  margin: 0 auto;
  padding: 1% 5%;
}

@media (hover: hover) {
    button#submit-btn:hover {
        background: var(--lite);
        color: var(--accent) !important;
    }
}

.contact-input-block {
    text-align: start;
}


.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: zoom-out;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }

  .fullscreen-overlay.open {
    opacity: 1;
    visibility: visible;
  }

  .fullscreen-overlay img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    cursor: default;
  }

  .fullscreen-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 36px;
    font-weight: 300;
    color: white;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .fullscreen-close:hover {
    transform: scale(1.2);
    opacity: 0.8;
  }

.admin-list-item button {
  font-size: 14px;
  padding: 8px 10px;
  border: 1px solid var(--accent);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
}

/* Cart widget styles */
.cart-widget {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}

.cart-button__count {
  background: #222;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
}

.cart-panel {
  position: absolute;
  right: 0;
  bottom: 48px;
  width: 320px;
  max-height: 60vh;
  overflow: auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 12px;
}

.cart-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cart-panel__list .cart-item {
  border-bottom: 1px solid #eee;
  padding: 8px 0;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item__info p {
  margin: 2px 0;
}

.cart-panel__actions {
  margin-top: 8px;
  text-align: right;
}
