/* ======================================================================
   ОПТОВЫМ ПОКУПАТЕЛЯМ (/optovikam/) — редизайн 2026
   Токены (--rd-*), шрифты, .rd-container — из redesign.css.
   Акцент страницы — ЖЁЛТЫЙ (hero + блок формы). Точный hex уточнит заказчик.
   ====================================================================== */

.rd-opt { --rd-yellow: #FFB701; background: var(--rd-bg); color: #fff; overflow: hidden; }
.rd-opt * { box-sizing: border-box; }

/* Общие примитивы (home.css здесь не подключается) */
.rd-opt .rd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 16px 32px; border: 1px solid transparent; border-radius: 500px;
	font-family: var(--rd-font-text); font-weight: 700; font-size: 16px; line-height: 20px;
	text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.rd-opt .rd-btn--outline { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }
.rd-opt .rd-btn--outline:hover { border-color: #fff; background: #fff; color: #151515; }
.rd-opt .rd-btn--white { background: #fff; border-color: #fff; color: #151515; }
.rd-opt .rd-btn--white:hover { background: var(--rd-gray, #E7E7E7); border-color: var(--rd-gray, #E7E7E7); color: #151515; }
.rd-opt__accent { color: var(--rd-accent); }

.rd-opt__h2 {
	margin: 0 0 56px; font-family: var(--rd-font-head); font-weight: 900;
	font-size: 52px; line-height: 1; text-transform: uppercase; color: #fff;
}
.rd-opt__h2--center { text-align: center; }

/* ============================ HERO (жёлтый) ============================ */
.rd-opt__hero {
	position: relative; overflow: hidden;
	background-color: var(--rd-yellow);
	color: #151515; padding: 52px 0 150px;   /* по макету hero ~704px, крошки 52px от верха */
}
/* Паттерн поверх жёлтого — субтильный, прозрачность 20% (по макету). Картинка светло-серая,
   поэтому multiply (затемняет жёлтый как задумано) + opacity .2 = мягкий паттерн на 20% силы.
   Картинка задаётся inline-переменной --opt-hero-fon. */
.rd-opt__hero::before {
	content: ""; position: absolute; inset: 0; z-index: 0;
	background: var(--opt-hero-fon) center / cover no-repeat;
	mix-blend-mode: multiply; opacity: .2; pointer-events: none;
}
.rd-opt__hero > .rd-container { position: relative; z-index: 1; }
.rd-opt__crumbs { display: flex; align-items: center; gap: 20px; font-size: 16px; margin-bottom: 72px; }
.rd-opt__crumbs a, .rd-opt__crumbs span { color: rgba(21,21,21,.6); text-decoration: none; }
.rd-opt__crumbs a:hover { color: #151515; }
.rd-opt__crumbs-cur { color: #151515; }
.rd-opt__title {
	margin: 0 0 96px; font-family: var(--rd-font-head); font-weight: 900;
	font-size: 64px; line-height: .98; text-transform: uppercase; color: #151515;
}
.rd-opt__hero-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }   /* на всю ширину (по макету) */
.rd-opt__hcol h3 {
	margin: 0 0 14px; font-family: var(--rd-font-head); font-weight: 900;
	font-size: 36px; line-height: 1.05; text-transform: uppercase; color: #151515;
}
.rd-opt__hcol p { margin: 0; font-size: 22px;font-weight: 600; line-height: 1.25; color: #544c4c; max-width: 360px; }

/* ============================ НАШИ ПАРТНЁРЫ ============================ */
.rd-opt__partners { background: #212121; padding: 88px 0; }
.rd-opt__marquee { overflow: hidden; width: 100%; }
.rd-opt__mtrack { display: flex; align-items: center; gap: 24px; width: max-content; animation: rd-opt-marquee 90s linear infinite; }
.rd-opt__mtile { flex: 0 0 auto; width: 260px; height: 150px; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: #151515; }
.rd-opt__mtile img { max-width: 60%; max-height: 44%; width: auto; height: auto; object-fit: contain; opacity: .5; filter: grayscale(1) brightness(1.8); }
@keyframes rd-opt-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================ НАМ ДОВЕРЯЮТ (2 встречные бегущие строки, без подложек) ============================ */
.rd-opt__trust { background: #000000; padding: 96px 0 96px; }
.rd-opt__trust .rd-opt__h2 { margin-bottom: 56px; }
.rd-opt__trust-rows { display: flex; flex-direction: column; gap: 44px; }
.rd-opt__trust-marquee { overflow: hidden; width: 100%; }
.rd-opt__trust-track { display: flex; align-items: center; gap: 64px; width: max-content; }
.rd-opt__trust-track--ltr { animation: rd-opt-trust-ltr 42s linear infinite; }   /* влево */
.rd-opt__trust-track--rtl { animation: rd-opt-trust-rtl 42s linear infinite; }   /* вправо */
/* ФИКСИРОВАННАЯ ширина слота (как плитки в «Наши партнёры») — иначе, пока грузятся
   ленивые картинки, ширина ленты «плавает» и бесшовный сдвиг −50% ломается
   (на мобиле логотипы «кусками»/пропадают). Фикс. ширина = стабильная лента. */
.rd-opt__trust-logo { flex: 0 0 auto; width: 100px; display: flex; align-items: center; justify-content: center; height: 75px; }
.rd-opt__trust-logo img { max-height: 75px; max-width: 135px; width: auto; height: auto; object-fit: contain; opacity: .45; filter: grayscale(1) brightness(1.9); }
@keyframes rd-opt-trust-ltr { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes rd-opt-trust-rtl { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ============================ НАШИ ПРЕИМУЩЕСТВА ============================ */
.rd-opt__adv { background: #000000; padding: 96px 0; }
.rd-opt__adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; }
.rd-opt__adv-t { margin: 0 0 14px; font-family: var(--rd-font-head); font-weight: 900; font-size: 30px; line-height: 1; text-transform: uppercase; color: #fff; }
.rd-opt__adv-d { margin: 0; font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.65); max-width: 360px; }

/* ============================ УДОБНЫЕ УСЛОВИЯ ============================ */
/* Цифры и текст — как в блоке счётчиков на «О нас»: крупная цифра-водяной знак (170px),
   текст крупнее (20px/600) налезает на низ цифры. */
.rd-opt__terms { background: #151515; padding: 96px 0; }
/* Три пункта распределяем по ширине (space-between): 01 у левого края, 03 у правого —
   иначе при равных 1fr-колонках последний столбец недобирает справа и блок кажется сдвинутым влево. */
.rd-opt__terms-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.rd-opt__term { position: relative; flex: 0 1 340px; }
.rd-opt__term-num {
	display: block; font-family: var(--rd-font-head); font-weight: 900;
	font-size: 170px; line-height: 1; color: rgba(255,255,255,.22); margin-bottom: -49px;
}
.rd-opt__term p { position: relative; margin: 0; font-size: 20px; font-weight: 600; line-height: 1.35; color: #fff; max-width: 340px; }

/* ============================ МЕРОПРИЯТИЯ ============================ */
.rd-opt__events { background: #151515; padding: 96px 0; }
.rd-opt__events-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.rd-opt__ecard { display: flex; flex-direction: column; background: #1E1E1E; border-radius: 18px; overflow: hidden; text-decoration: none; transition: background .2s; }
.rd-opt__ecard:hover { background: #262626; }
.rd-opt__ecard-img { display: block; aspect-ratio: 1 / 1; background: #2f2f2f center/cover no-repeat; }   /* квадратные (по макету) */
.rd-opt__ecard-body { display: flex; flex-direction: column; gap: 20px; padding: 22px; flex: 1 1 auto; }
.rd-opt__ecard-t { color: #fff; font-size: 16px; font-weight: 600; line-height: 1.35; }
.rd-opt__ecard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.rd-opt__ecard-date { color: rgba(255,255,255,.5); font-size: 14px; }
/* Стрелка карточки — тёмная «пилюля» #151515 (как на главной), НЕ фиолетовый кружок */
.rd-opt__ecard-arr { position: relative; display: flex; align-items: center; justify-content: center; width: 52px; height: 42px; border-radius: 100px; background: #151515; flex: 0 0 auto; transition: background .2s; }
.rd-opt__ecard:hover .rd-opt__ecard-arr { background: var(--rd-accent); }
.rd-opt__ecard-arr::before { content: ""; width: 9px; height: 9px; margin-left: -3px; border-top: 2px solid #fff; border-right: 2px solid #fff; transform: rotate(45deg); }
.rd-opt__events-more { display: flex; justify-content: center; margin-top: 40px; }

/* Карусель мероприятий на мобильном (slick, как блог на главной). На десктопе — сетка.
   Навигация — ЕДИНАЯ тёмная «пилюля» с двумя шевронами (как в «Истории компании»). */
.rd-opt__events-nav {
	display: none; align-items: center; gap: 6px;
	background: #212121; border-radius: 500px; padding: 6px; margin-bottom: 28px; width: max-content;
}
.rd-opt__events-navbtn {
	display: flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; border: 0; border-radius: 50%;
	background: transparent; cursor: pointer; font-size: 0; transition: background .2s;
}
.rd-opt__events-navbtn:hover { background: rgba(255,255,255,.08); }
.rd-opt__events-navbtn--next { background: #3A3A3A; }               /* «вперёд» — в светлом кружке */
.rd-opt__events-navbtn--next:hover { background: #474747; }
.rd-opt__events-navbtn::before { content: ""; width: 9px; height: 9px; border-top: 2px solid #fff; border-left: 2px solid #fff; }
.rd-opt__events-navbtn--prev::before { transform: rotate(-45deg); margin-left: 3px; }   /* ‹ */
.rd-opt__events-navbtn--next::before { transform: rotate(135deg); margin-right: 3px; }  /* › */
.rd-opt__events-navbtn.slick-disabled { opacity: .35; cursor: default; }
/* когда slick активен — грид превращается в слайдер */
.rd-opt__events-grid.slick-initialized { display: block; }
.rd-opt__events-grid.slick-initialized .rd-opt__ecard { height: auto; }
/* Кнопки навигации видны только на мобильном (там, где slick активен, <900px) */
@media (max-width: 899px) { .rd-opt__events-nav { display: inline-flex; } }

/* ============================ ОСТАВЬТЕ ЗАЯВКУ (жёлтый) ============================ */
.rd-opt__lead { background: var(--rd-yellow); color: #151515; padding: 80px 0 0; position: relative; overflow: hidden; }
.rd-opt__lead-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; }
.rd-opt__lead-title { margin: 0 0 36px; font-family: var(--rd-font-head); font-weight: 900; font-size: 56px; line-height: .98; text-transform: uppercase; color: #151515; }
.rd-opt__lead-left { padding-bottom: 80px; }

.rd-opt__form { display: flex; flex-direction: column; gap: 16px; max-width: 520px; }
.rd-opt__form input[type="text"], .rd-opt__form input[type="tel"] {
	width: 100%; padding: 18px 26px; border: none; border-radius: 500px;
	background: rgba(0,0,0,.10); color: #151515; font-family: var(--rd-font-text); font-size: 16px;
}
.rd-opt__form input::placeholder { color: rgba(21,21,21,.55); }
.rd-opt__form input.is-error { box-shadow: inset 0 0 0 2px #c0392b; }
.rd-opt .rd-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.4; color: #151515; }
/* Чекбокс согласия: БЕЛЫЙ квадрат + маленькая чёрная галочка (как на «Адресах») */
.rd-opt .rd-check input {
	appearance: none; -webkit-appearance: none;
	flex: 0 0 auto;
	width: 18px; height: 18px; margin-top: 1px;
	background: #fff no-repeat center; background-size: 11px 9px;
	border: none; border-radius: 4px; cursor: pointer;
}
/* Галочка — SVG фоном: всегда строго по центру */
.rd-opt .rd-check input:checked {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%23151515' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.rd-opt .rd-check a { color: #151515; text-decoration: underline; }
.rd-opt__submit { align-self: stretch; margin-top: 4px; background: #151515; color: #fff; }
.rd-opt__submit:hover { background: #000; }
/* Сообщение «Спасибо! Заявка отправлена» — та же «пилюля», что и кнопка «Отправить»
   (радиус 500px, как у .rd-btn), чтобы углы совпадали. Текст по центру. */
.rd-opt__success {
	background: #151515; color: #fff; border-radius: 500px; padding: 16px 28px;
	font-weight: 600; font-size: 15px; text-align: center; line-height: 1.35;
}
/* Ошибка (не отмечено согласие и т.п.) — тот же чёрный «блин», но с красным текстом
   и красным контуром: сразу видно, что это не успех. */
.rd-opt__success.is-error { color: #FF6B6B; box-shadow: inset 0 0 0 2px #FF6B6B; }

.rd-opt__lead-right { position: relative; min-height: 340px; padding-bottom: 0; }
.rd-opt__sales { position: relative; z-index: 2; }
.rd-opt__sales h3 {     font-family: 'Roboto Flex', Arial, sans-serif; margin: 0 0 40px; font-weight: 600; font-size: 36px; line-height: 1; color: #151515; }
.rd-opt__slabel { margin: 40px 0 6px; font-size: 14px; color: rgba(21,21,21,.6); }
.rd-opt__sval { display: inline-block; color: #151515; font-size: 20px; font-weight: 700; text-decoration: none; }
.rd-opt__sval:hover { text-decoration: underline; }
/* Маскот выходит до ПРАВОГО КРАЯ ЭКРАНА (привязан к секции, не к контейнеру);
   стрелка-линия под ним доходит до края монитора. */
.rd-opt__mascot { position: absolute; right: 0; bottom: 0; width: clamp(480px, 46vw, 940px); height: auto; z-index: 1; pointer-events: none; }

/* ============================ АДАПТИВ ============================ */
@media (max-width: 1200px) {
	.rd-opt__title { font-size: 52px; }
	.rd-opt__term-num { font-size: 120px; margin-bottom: -35px; }
}
@media (max-width: 1100px) {
	.rd-opt__h2 { font-size: 40px; margin-bottom: 40px; }
	.rd-opt__hero { padding: 32px 0 56px; }
	.rd-opt__crumbs { margin-bottom: 36px; }
	.rd-opt__title { font-size: 44px; margin-bottom: 48px; }
	.rd-opt__hero-cols { grid-template-columns: 1fr; gap: 28px; }
	.rd-opt__adv-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
	.rd-opt__terms-grid { flex-direction: column; gap: 48px; }
	.rd-opt__term { flex: 0 0 auto; }
	.rd-opt__events-grid { grid-template-columns: repeat(2, 1fr); }
	.rd-opt__lead-grid { grid-template-columns: 1fr; gap: 8px; }
	.rd-opt__lead-left { padding-bottom: 32px; }
	.rd-opt__lead-right { min-height: 0; display: flex; flex-direction: column; }
	/* Маскот прибит к правому краю экрана и к низу секции (без зазора до подвала).
	   Секция без нижнего паддинга + overflow:hidden клиппит прозрачный низ PNG (~3%). */
	.rd-opt__mascot { position: static; display: block; width: 84%; max-width: 400px; margin: 24px 0 -8px auto; }
	.rd-opt__lead { padding-bottom: 0; }
}
@media (max-width: 700px) {
	.rd-opt__title { font-size: 32px; }
	.rd-opt__h2 { font-size: 32px; }
	.rd-opt__lead-title { font-size: 36px; }
	/* Заголовки плашек hero — меньше на мобильном */
	.rd-opt__hcol h3 { font-size: 26px; }
	.rd-opt__hcol p { font-size: 17px; }
	/* Преимущества: заголовок секции скрыт (по макету), заголовки пунктов меньше */
	.rd-opt__adv .rd-opt__h2 { display: none; }
	.rd-opt__adv { padding-top: 64px; }
	.rd-opt__adv-t { font-size: 24px; }
	.rd-opt__adv-grid { grid-template-columns: 1fr; gap: 32px; }
	.rd-opt__events-grid { grid-template-columns: 1fr; }
	.rd-opt__mtile { width: 180px; height: 108px; }
	/* Удобные условия на мобильном: цифры КРУПНЕЕ, текст МЕНЬШЕ, заголовок СЛЕВА */
	.rd-opt__terms .rd-opt__h2 { text-align: left; }
	.rd-opt__term-num { font-size: 140px; margin-bottom: -38px; }
	.rd-opt__term p { font-size: 16px; }
	/* «Нам доверяют» на мобильном: те же 2 встречные строки, лого меньше, ФИКС. ширина слота
	   (стабильная лента → крутится плавно, без «кусков»/пропаж) + скорость под «Наши партнёры» */
	.rd-opt__trust { padding: 64px 0; }
	.rd-opt__trust .rd-opt__h2 { margin-bottom: 36px; }
	.rd-opt__trust-rows { gap: 28px; }
	.rd-opt__trust-track { gap: 28px; }
	.rd-opt__trust-track--ltr, .rd-opt__trust-track--rtl { animation-duration: 26s; }
	.rd-opt__trust-logo { width: 104px; height: 34px; }
	.rd-opt__trust-logo img { max-height: 22px; max-width: 86px; opacity: .6; }
}
