/* Страница «Все бренды» — в стиле сайта: Muller, бордовый #4b0708 / красный #ac1318, скругления 20px */
.als-brands { --red: #ac1318; --red-dark: #870407; --wine: #4b0708; --ink: #1b1b1b; --muted: #5d5d5d; --line: #ececec; --card-line: #e2d6d6;
  font-family: var(--t-text-font, 'Muller', Arial, sans-serif); color: var(--ink); background: #f9f9f9; padding: 28px 0 60px; }
.als-brands *, .als-brands *::before, .als-brands *::after { box-sizing: border-box; }
.als-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.als-h2 { font-size: 33px; line-height: 1.2; font-weight: 700; text-transform: uppercase; margin: 0 0 24px; }
.als-h2_light { color: #fff; }

/* кнопки */
.als-btn { display: inline-flex; align-items: center; gap: 12px; height: 51px; padding: 0 8px 0 26px; border-radius: 25px;
  background: var(--red); color: #fff !important; font-size: 16px; font-weight: 500; text-decoration: none; border: 0; cursor: pointer;
  transition: background-color .2s ease-in-out; font-family: inherit; }
.als-btn:hover { background: var(--red-dark); }
.als-btn__icon { flex: 0 0 auto; aspect-ratio: 1; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--red); display: inline-flex; align-items: center; justify-content: center; }
.als-btn__icon svg { width: 12px; height: 12px; }
.als-btn_ghost { background: transparent; color: var(--red) !important; border: 2px solid var(--red); padding: 0 24px; }
.als-btn_ghost:hover { background: var(--red); color: #fff !important; }
.als-btn_big { height: 58px; font-size: 18px; }
.als-btn:focus-visible, .als-hero__btn:focus-visible, .als-brands__chip:focus-visible { outline: 3px solid #f0b400; outline-offset: 2px; }

/* первый экран */
.als-hero { display: grid; grid-template-columns: 701fr 486fr; gap: 13px; }
.als-hero__card { position: relative; overflow: hidden; background: var(--wine) url(/images/als-rosette-bg.webp) right bottom / cover no-repeat; color: #fff; border-radius: 20px; padding: 40px 40px 36px; min-height: 363px; display: flex; flex-direction: column; }
.als-hero__ornament { display: none; }  /* фон карточки — как у первого экрана E+H (встреча 20.10) */
.als-hero__title { position: relative; font-size: 35px; line-height: 1.2; font-weight: 800; text-transform: uppercase; margin: 0 0 18px; max-width: 560px; }
.als-hero__subtitle { position: relative; font-size: 18px; line-height: 1.5; margin: 0 0 28px; max-width: 540px; }
.als-hero__btn { position: relative; margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 14px;
  background: #fff; color: var(--red) !important; border-radius: 25px; padding: 9px 9px 9px 26px; font-size: 18px; font-weight: 500; text-decoration: none; }
.als-hero__btn-icon { flex: 0 0 auto; aspect-ratio: 1; width: 51px; height: 51px; border-radius: 50%; background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.als-hero__btn-icon svg { width: 14px; height: 14px; }
.als-hero__btn:hover .als-hero__btn-icon { background: var(--red-dark); }
.als-hero__side { background: #fff; border-radius: 20px; padding: 28px 30px; display: flex; flex-direction: column; gap: 16px; }
.als-stat { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.als-stat b { font-size: 35px; font-weight: 800; color: var(--red); min-width: 108px; line-height: 1; }
.als-stat span { font-size: 15px; line-height: 1.35; color: var(--muted); }
.als-hero__note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* бренды */
.als-brands__section { margin-top: 70px; }
.als-brands__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.als-brands__chip { padding: 9px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--line); color: var(--ink) !important;
  font-size: 14px; font-weight: 500; text-decoration: none; transition: border-color .2s, color .2s; }
.als-brands__chip:hover { border-color: var(--red); color: var(--red) !important; }
.als-brands__grid { display: flex; flex-direction: column; gap: 16px; }
.als-brand { display: grid; grid-template-columns: 260px 1fr; gap: 32px; background: #fff; border-radius: 20px; padding: 28px; scroll-margin-top: 110px;
  transition: box-shadow .2s; }
.als-brand:target { box-shadow: 0 0 0 2px var(--red); }
.als-brand__logo { height: 150px; border-radius: 18px; background: linear-gradient(135deg, #f6eded, #fff); border: 1px solid #f0dcdc;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px;
  font-size: 22px; font-weight: 800; color: var(--wine); line-height: 1.15; }
.als-brand__name { font-size: 24px; font-weight: 800; margin: 0 0 10px; text-transform: uppercase; }
.als-brand__about { font-size: 16px; line-height: 1.5; margin: 0 0 16px; }
.als-brand__list-title { font-size: 15px; font-weight: 600; line-height: 1.4; margin: 0 0 10px; }
.als-brand__list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.als-brand__list li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.4; }
.als-brand__list li::before { content: ''; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.als-brand__usage { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0 0 20px; }
.als-brand__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* форма */
.als-form-section { margin-top: 70px; scroll-margin-top: 90px; }
.als-form-section__card { display: grid; grid-template-columns: 380px 1fr; gap: 40px; background: var(--wine); border-radius: 20px; padding: 44px 40px; color: #fff; }
.als-form-section__intro p { font-size: 16px; line-height: 1.5; margin: 0 0 20px; }
.als-form-section__contacts { font-weight: 600; opacity: .85; }
.als-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; background: #fff; border-radius: 20px; padding: 28px; color: var(--ink); }
.als-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.als-field_wide { grid-column: 1 / -1; }
.als-field input, .als-field textarea { font: inherit; font-size: 16px; font-weight: 400; color: #000; border: 2px solid var(--red-dark); border-radius: 20px;
  padding: 12px 18px; background: #fff; outline: none; width: 100%; }
.als-field textarea { resize: vertical; min-height: 104px; }
.als-field input:focus, .als-field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(172,19,24,.15); }
.als-field.is-invalid input { border-color: #e0001b; background: #fff6f6; }
.als-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); }
.als-check input { width: 18px; height: 18px; accent-color: var(--red); margin: 1px 0 0; flex: none; }
.als-check a { color: var(--ink) !important; border-bottom: 1px solid currentColor; text-decoration: none; }
.als-check.is-invalid span { color: #e0001b; }
.als-form__footer { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.als-form__status { margin: 0; font-size: 14px; }
.als-form__status.is-error { color: #e0001b; }
.als-form__status.is-ok { color: #1a7f37; font-weight: 600; }
.als-form .als-upload__button { height: 45px; }

@media screen and (max-width: 1199px) {
  .als-h2, .als-hero__title { font-size: 30px; }
}
@media screen and (max-width: 959px) {
  .als-hero { grid-template-columns: 1fr; }
  .als-brand { grid-template-columns: 1fr; gap: 18px; }
  .als-brand__logo { height: 96px; }
  .als-form-section__card { grid-template-columns: 1fr; gap: 24px; padding: 32px 24px; }
}
@media screen and (max-width: 639px) {
  .als-brands { padding-top: 16px; }
  .als-h2, .als-hero__title { font-size: 24px; }
  .als-hero__card { padding: 28px 20px 24px; min-height: 0; }
  .als-hero__subtitle { font-size: 16px; }
  .als-hero__btn { font-size: 15px; padding-left: 18px; }
  .als-hero__btn-icon { width: 44px; height: 44px; }
  .als-hero__side { padding: 22px 20px; }
  .als-stat b { font-size: 28px; min-width: 84px; }
  .als-brands__section, .als-form-section { margin-top: 48px; }
  .als-brands__chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -20px; margin-right: -20px; padding: 0 20px 6px; }
  .als-brands__chip { white-space: nowrap; }
  .als-brand { padding: 20px; }
  .als-brand__head { display: none; }
  .als-brand__name { font-size: 20px; }
  .als-brand__list { grid-template-columns: 1fr; }
  .als-form { grid-template-columns: 1fr; padding: 20px; }
  .als-btn_big { width: 100%; justify-content: space-between; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } }

/* официальные логотипы брендов */
.als-brand__logo_img { background: #fff; border-color: #eee6e6; padding: 22px 34px; box-sizing: border-box; }
.als-brand__logo_img img { max-width: 100%; max-height: 72px; object-fit: contain; display: block; }
.als-brand__logo_dark { background: #0b2341; border-color: #0b2341; }
.als-brand:hover .als-brand__logo_img img { transform: scale(1.04); }
.als-brand__logo_img img { transition: transform .3s; }
@media (max-width: 639px) { .als-brand__logo_img { padding: 16px 24px; } .als-brand__logo_img img { max-height: 56px; } }

/* формы заявки и код заказа — фирменный фон, как в остальных блоках сайта */
.als-form-section__card { background: #4b0708 url(/images/als-rosette-bg.webp) right center / cover no-repeat; }
/* скрытое поле выбора файла не должно расширять страницу (als-forms.css здесь не подключён) */
.als-upload__button { position: relative; overflow: hidden; }
.als-upload__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

/* телефон: чипы брендов — в несколько строк (ряд с прокруткой обрезался у края), длинные списки свёрнуты (28.10) */
.als-brand__more { display: none; }
@media screen and (max-width: 639px) {
  .als-brands__chips { flex-wrap: wrap !important; overflow: visible !important; margin-left: 0 !important; margin-right: 0 !important; padding: 0 !important; }
  .als-brand:not(.is-open) .als-brand__list li:nth-child(n+5) { display: none; }
  .als-brand__more { display: inline-flex; margin: 2px 0 14px; padding: 0; border: 0; background: none; color: var(--red); font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
}
