/* Мобильная версия: только этот файл и подключение в HTML.
   Десктопный style.css не меняется.
   Брейкпоинт: до 991px.
   Числа в новых декларациях — в px (корень html ниже синхронизирует rem из основного CSS). */

/* По умолчанию (десктоп) — мобильный блок продукции скрыт */
.products .products-mobile {
  display: none;
}

@media screen and (max-width: 991px) {
  html {
    font-size: 1px !important;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
    max-width: 100%;
  }

  /* Шапка + бургер-меню */
  header {
    padding-top: 0;
  }

  body.nav-open header {
    z-index: 10020;
  }

  header .container {
    flex-wrap: nowrap;
    align-items: center;
    row-gap: 12px;
    padding: 10px 16px;
    position: relative;
    z-index: 1;
  }

  body.nav-open header .container {
    z-index: 10003;
  }

  header .header-logo {
    max-width: 120px;
    flex-shrink: 0;
  }

  nav.header-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 86vw);
    height: 100%;
    height: 100dvh;
    margin: 0;
    padding: 68px 0 28px;
    background: rgba(23, 22, 20, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-left: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    transform: translateX(100%);
    visibility: hidden;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.38s;
  }

  body.nav-open nav.header-nav {
    transform: translateX(0);
    visibility: visible;
  }

  nav.header-nav .nav-item {
    font-size: 16px;
    padding: 16px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    line-height: 130%;
    transition: background 0.22s ease, color 0.22s ease;
  }

  nav.header-nav .nav-item:hover,
  nav.header-nav .nav-item:focus-visible {
    background: rgba(167, 136, 115, 0.14);
    outline: none;
  }

  .header-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: auto;
    padding: 18px 22px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .header-nav-mail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.22s ease, border-color 0.22s ease;
  }

  .header-nav-mail:hover,
  .header-nav-mail:focus-visible {
    background: rgba(167, 136, 115, 0.14);
    outline: none;
  }

  .header-nav-cta {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    padding: 14px 18px;
    font-size: 14px;
  }

  header .header-buttons .header-icon-mail,
  header .header-buttons .white-button {
    display: none !important;
  }

  .header-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(14, 14, 14, 0.58);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.34s ease, visibility 0.34s ease;
  }

  body.nav-open .header-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .header-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0 0 0 10px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    z-index: 10002;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  }

  .header-burger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
  }

  .header-burger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.26s ease;
    transform-origin: center;
  }

  body.nav-open .header-burger .header-burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.nav-open .header-burger .header-burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  body.nav-open .header-burger .header-burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  header .header-buttons {
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
    min-width: 0;
  }

  header .header-buttons .header-icon-phone {
    flex-shrink: 0;
  }

  /* Герой: фон от верхнего края, внутренние отступы у контейнера */
  .hero {
    height: auto;
    min-height: 420px;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 56px;
  }

  .hero .container {
    align-items: flex-start;
    position: relative;
    z-index: 2;
    padding-top: 116px;
    padding-bottom: 12px;
  }

  .hero .bg {
    object-position: top center;
  }

  #about {
    scroll-margin-top: 56px;
  }

  .hero .hero-info {
    margin-bottom: 32px;
    max-width: 100%;
  }

  .hero .section-heading {
    font-size: 28px;
    margin-bottom: 14px;
    line-height: 108%;
  }

  .hero .section-text:last-of-type {
    margin-bottom: 22px;
  }

  .hero br {
    display: none;
  }

  /* О нас */
  .about .img-block img {
    display: none !important;
  }

  .about {
    padding: 48px 0 56px;
  }

  .about .abou-bg {
    display: none;
  }

  .about .container {
    flex-direction: column;
    gap: 24px;
  }

  .about .img-block {
    max-width: none;
    flex-shrink: 1;
    min-height: 0;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .about .img-block .block-heaidng {
    position: relative;
    top: auto;
    left: auto;
    font-size: 16px;
    gap: 8px;
  }

  .about .img-block .block-heaidng::before {
    width: 6px;
    height: 6px;
  }

  .about .section-heading {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .about .section-text {
    margin-bottom: 14px;
    font-size: 15px;
  }

  .regular-text {
    font-size: 15px;
  }

  .section-heading {
    font-size: 26px;
  }

  /* Плюсы */
  .plusses {
    padding: 56px 0 40px;
  }

  .plusses .wrapper {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 28px;
  }

  .plusses .wrapper .item {
    padding: 18px 16px;
  }

  .plusses .wrapper .item .item-heading {
    font-size: 32px;
  }

  .plusses .wrapper .item .item-text {
    font-size: 15px;
    margin-top: 12px;
  }

  .plusses .wrapper .item .plusses-icon {
    width: 36px;
    height: 36px;
    display: block;
    margin-bottom: 4px;
  }

  .plusses .empty-button {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 15px;
  }

  /* Продукция */
  .products {
    padding: 48px 0;
  }

  .products .block-heaidng {
    margin-bottom: 12px;
    font-size: 13px;
    gap: 8px;
  }

  .products .block-heaidng::before {
    width: 5px;
    height: 5px;
  }

  .products .section-heading {
    margin-bottom: 20px;
    font-size: 28px;
    line-height: 110%;
  }

  .products .top {
    flex-direction: column;
    gap: 10px;
  }

  .products .top .top-item {
    max-width: none !important;
    width: 100%;
    height: auto;
    min-height: 220px;
    overflow: hidden;
  }

  .products .top .top-item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(23, 22, 20, 0) 0%, rgba(23, 22, 20, 0.55) 100%);
    pointer-events: none;
  }

  .products .top .top-item:nth-child(2) .top-item-text {
    max-width: none;
  }

  .products .top .top-item .top-item-text {
    padding: 16px;
    font-size: 14px;
    line-height: 130%;
  }

  /* На мобиле прячем десктопные .mid и .btm — используется .products-mobile */
  .products .mid,
  .products .btm {
    display: none;
  }

  /* Mobile-only блок с карточками продукции */
  .products .products-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
  }

  .products .pm-card {
    position: relative;
    display: block;
    width: 100%;
    height: 300px;
    background: #372821;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
  }

  .products .pm-card::before {
    content: "";
    position: absolute;
    left: -1px;
    bottom: -29px;
    z-index: 0;
    width: 315px;
    height: 283px;
    background: url("../media/products/mobile/ellipse-6311.svg") center / contain no-repeat;
    pointer-events: none;
  }

  .products .pm-card--drink {
    height: 350px;
  }

  .products .pm-card--drink::before {
    left: 0;
    top: auto;
    bottom: -4px;
    width: 100%;
    height: 200px;
    background: url("../media/products/mobile/ellipse-631.svg") center / 100% 100% no-repeat !important;
  }

  .products .pm-card--drink-tall {
    height: 402px;
  }

  .products .pm-info {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .products .pm-card--drink .pm-info {
    top: 40px;
  }

  .products .pm-info h3 {
    font-family: "Manrope", sans-serif;
    font-weight: 400;
    font-size: 22px;
    line-height: 130%;
    color: #fff;
    margin: 0;
  }

  .products .pm-info p {
    font-family: "Manrope", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 130%;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
  }

  .products .pm-card--drink .pm-info p {
    color: rgba(255, 255, 255, 0.8);
  }

  .products .pm-img {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
  }

  .products .pm-img img {
    position: absolute;
    width: auto;
  }

  /* Позиционирование изображений по Figma (карточка 340×… px) */
  .products .pm-card--imperial .pm-img img {
    left: -147px;
    top: 86px;
    width: 526px;
    height: 351px;
  }

  .products .pm-card--classic .pm-img img {
    left: 2px;
    top: 96px;
    width: 169px;
    height: 253px;
  }

  .products .pm-card--tattoo .pm-img img {
    left: -2px;
    top: 95px;
    width: 169px;
    height: 253px;
  }

  .products .pm-card--center .pm-img img {
    left: -5px;
    top: 109px;
    width: 169px;
    height: 253px;
  }

  /* Напитки: бутылка по центру */
  .products .pm-card--drink .pm-img img {
    left: 50%;
    transform: translateX(-50%);
    top: 178px;
    width: 86px;
    height: 155px;
  }

  .products .pm-card--drink-tall .pm-img img {
    top: 208px;
    width: auto;
    height: 184px;
  }

  .products .pm-card--madman .pm-img img {
    left: 50%;
    transform: translateX(-50%);
    top: 159px;
    width: auto;
    height: 166px;
    opacity: 0.85;
  }

  .products .pm-arrow {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
  }

  .products .pm-arrow svg {
    width: 15px;
    height: 11px;
  }

  .products .pm-elit {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    background: #a78873;
    color: #372821;
    font-family: "Manrope", sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 130%;
    padding: 2px 4px;
    margin: 0;
  }

  .products .pm-section-heading {
    font-family: "Cormorant", sans-serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 130%;
    text-transform: uppercase;
    color: #fff;
    margin: 30px 0 10px;
  }

  /* Производство */
  .employ {
    padding: 48px 0 56px;
  }

  .employ .top {
    flex-direction: column;
    gap: 24px;
    margin-bottom: 36px;
  }

  .employ .top svg.employ-svg {
    display: none;
  }

  .employ .top img {
    display: none !important;
  }

  .employ .top .section-heading {
    font-size: 26px;
  }

  .employ .btm .section-heading {
    font-size: 22px;
    margin-bottom: 22px;
  }

  .employ .btm .section-heading br {
    display: none;
  }

  .employ .btm .wrapper {
    flex-direction: column;
    gap: 14px;
  }

  .employ .btm .wrapper .item {
    align-items: flex-start;
    padding: 16px 16px 24px 16px;
    min-height: 200px;
  }

  .employ .btm .wrapper .item .regular-text {
    margin-top: 16px;
    font-size: 15px;
  }

  /* Новости */
  .news {
    padding: 48px 0;
  }

  .news .block-heaidng {
    margin-bottom: 20px;
  }

  .news .wrapper {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .news .wrapper .item .item-heading {
    font-size: 18px;
  }

  .news .wrapper .item .item-description,
  .news .wrapper .item .item-date,
  .news .wrapper .item .item-go {
    font-size: 14px;
  }

  .news .empty-button {
    width: 100%;
    justify-content: center;
    margin-top: 24px;
    padding: 14px 24px;
  }

  /* Форма */
  .form .img-block img {
    display: none !important;
  }

  .form {
    flex-direction: column;
  }

  .form .img-block {
    max-width: none;
    width: 100%;
    flex-shrink: 1;
  }

  .form .img-block .block-heaidng {
    position: relative;
    top: auto;
    left: auto;
    padding: 20px 16px 8px;
    font-size: 16px;
    margin-bottom: 14px;
  }

  .form .form-block {
    width: 100%;
    padding: 24px 16px 32px;
    box-sizing: border-box;
  }

  .form .form-block .radios {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .form .form-block .radios label {
    width: 100%;
  }

  .form .form-block .radios label .radio-text {
    font-size: 15px;
  }

  .form .form-block .inputs {
    margin-top: 16px;
    margin-bottom: 20px;
    gap: 8px;
  }

  .form .form-block .inputs input,
  .form .form-block .inputs select,
  .form .form-block .inputs textarea {
    font-size: 15px;
    padding: 14px 16px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #eaeaea;
    color: #141618;
    background: #fff;
  }

  .form .form-block .inputs textarea {
    height: 100px;
    min-height: 100px;
  }

  .form .form-block .inputs .field-group--select select {
    padding-right: 46px;
  }

  .form .form-block .inputs .field-group--select::after {
    right: 16px;
    border-left-width: 4px;
    border-right-width: 4px;
    border-top-width: 6px;
  }

  .form .form-block .policy-line {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
  }

  .form .form-block .policy-line .policy-text {
    font-size: 13px;
    line-height: 128%;
  }

  .form .form-block .policy-line .policy-visual {
    width: 15px;
    height: 15px;
    margin-top: 2px;
  }

  .form .form-block .policy-line .policy-visual::after {
    width: 3px;
    height: 7px;
    border-width: 0 1px 1px 0;
    top: 40%;
  }

  .form .white-button {
    width: 100%;
    margin-top: 20px;
    padding: 14px 24px;
    justify-content: center;
    box-sizing: border-box;
    font-size: 15px;
  }

  .white-button {
    font-size: 15px;
    padding: 14px 20px;
  }

  .empty-button {
    font-size: 15px;
    padding: 14px 20px;
    gap: 8px;
  }

  /* Карточка товара */
  .card .container {
    flex-direction: column;
    gap: 24px;
    padding-top: 108px;
    padding-bottom: 48px;
  }

  .card .card-imgs {
    max-width: 100%;
    width: 100%;
  }

  .card .card-imgs .main-img {
    width: 100%;
    display: block;
  }

  .card .card-imgs .wrapper {
    gap: 10px;
    margin-top: 10px;
  }

  .card .card-imgs .wrapper .card-select-img {
    max-width: none;
    width: calc((100% - 40px) / 5);
    min-width: calc((100% - 40px) / 5);
  }

  .card .card-info {
    display: contents;
  }

  .card .card-info .card-info-top {
    order: 1;
    width: 100%;
    margin-bottom: 24px;
  }

  .card .card-imgs {
    order: 2;
  }

  .card .card-info .card-type {
    margin-bottom: 12px;
    font-size: 12px;
  }

  .card .card-info .card-heading {
    margin-bottom: 10px;
    font-size: 28px;
    line-height: 108%;
  }

  .card .card-info .card-description {
    font-size: 15px;
  }

  .card .card-info .card-description br {
    display: none;
  }

  .card .card-info .card-tabs {
    order: 3;
    width: 100%;
    margin-bottom: 24px;
  }

  .card .card-info .card-tabs .wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .card .card-info .card-tabs .wrapper .item {
    text-align: center;
    font-size: 13px;
    padding: 10px 8px;
  }

  .card .card-info .chars .chars-heading {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .card .card-info .chars {
    order: 4;
    width: 100%;
  }

  .card .card-info .chars .chars-list {
    width: 100%;
    margin-bottom: 16px;
  }

  .card .card-info .chars .chars-item {
    width: 100%;
    grid-template-columns: minmax(120px, 1fr) minmax(0, 1fr);
    gap: 8px;
    padding: 12px 6px;
  }

  .card .card-info .chars .chars-item .regular-text {
    font-size: 14px;
  }

  .card .card-info .chars .chars-description {
    font-size: 13px;
  }

  .card .card-info .chars .chars-description br {
    display: none;
  }

  .card .card-info .white-button {
    order: 5;
    margin-top: 24px;
    width: 100%;
    padding: 14px 24px;
    display: flex;
    justify-content: center;
  }

  .p18 {
    padding: 20px 0;
  }

  .p18 p {
    font-size: 13px;
    line-height: 130%;
  }

  /* Подвал */
  footer {
    padding: 48px 0 40px;
  }

  footer .top {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  footer .footer-logo {
    width: 140px;
  }

  footer .footer-menu .footer-menu-heading {
    font-size: 13px;
    margin-bottom: 12px;
  }

  footer .footer-menu .footer-menu-list {
    gap: 8px;
  }

  footer .footer-menu .footer-menu-item {
    font-size: 15px;
  }

  footer .footer-contants {
    max-width: none;
    gap: 12px;
  }

  footer .footer-contants .footer-phone {
    font-size: 14px;
    line-height: 140%;
  }

  footer .btm {
    margin-top: 36px;
    padding-top: 24px;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  footer .btm a {
    font-size: 13px;
    line-height: 130%;
  }

  /* Наверх */
  .go-btm-top {
    width: 44px;
    height: 44px;
    bottom: 24px;
    right: 16px;
  }

  .go-btm-top svg {
    width: 14px;
    height: 14px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Contacts page */
  .contacts-hero {
    padding-top: 108px;
    padding-bottom: 48px;
  }

  .contacts-hero .section-heading {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .contacts-hero .regular-text {
    font-size: 15px;
  }

  .contacts-info {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .contacts-info .container {
    flex-direction: column;
    gap: 32px;
  }

  .contacts-heading {
    font-size: 18px;
    margin-bottom: 24px;
  }

  .contacts-list {
    gap: 24px;
  }

  .contact-item {
    gap: 16px;
  }

  .contact-icon {
    width: 20px;
    height: 20px;
    margin-top: 1px;
  }

  .contact-label {
    font-size: 12px;
  }

  .contact-value {
    font-size: 15px;
  }

  .legal-info {
    padding: 24px;
  }

  .legal-company {
    font-size: 18px;
    margin: 12px 0 18px;
  }

  .legal-list {
    gap: 10px;
  }

  .legal-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-bottom: 10px;
  }

  .legal-label {
    font-size: 12px;
  }

  .legal-value {
    font-size: 14px;
  }

  .contacts-map {
    padding: 40px 0;
  }

  .contacts-map iframe {
    height: 300px;
  }

  .contacts-form {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .contacts-form .section-heading {
    font-size: 26px;
    margin-bottom: 12px;
  }

  .form-subtitle {
    font-size: 15px;
    margin-bottom: 32px;
  }

  .form-fields {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
  }

  .contacts-form input,
  .contacts-form textarea {
    font-size: 15px;
    padding: 12px 14px;
  }

  .contacts-form textarea {
    min-height: 120px;
  }

  .form-checkbox {
    gap: 10px;
    font-size: 13px;
    margin-bottom: 24px;
  }

  .form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
  }

  .contacts-form .white-button {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    justify-content: center;
  }

  .legal-page {
    padding-top: 108px;
    padding-bottom: 56px;
  }

  .legal-page-head {
    margin-bottom: 32px;
  }

  .legal-page-kicker {
    font-size: 12px;
    margin-bottom: 14px;
  }

  .legal-page-head .section-heading {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .legal-document {
    padding: 24px;
  }

  .legal-document section + section {
    margin-top: 28px;
  }

  .legal-document h2 {
    font-size: 18px;
    margin-bottom: 14px;
  }

  .legal-document p,
  .legal-document li {
    font-size: 14px;
  }

  .legal-document ul {
    padding-left: 18px;
  }
}

@media (min-width: 992px) {
  .header-burger,
  .header-overlay {
    display: none !important;
  }
}
