/* Siberian Motorbears - main styles */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; padding: 0; font-family: "Open Sans", sans-serif; font-size: 1rem; line-height: 1.5; color: #333; background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
/* Контактные ссылки (телефон, почта, Telegram) в тексте — подчёркнуты, чтобы было видно, что кликабельны */
a.link--contact { text-decoration: underline; }
a.link--contact:hover { text-decoration: underline; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5 { font-family: "Ubuntu", sans-serif; margin: 0 0 0.5em; font-weight: 700; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 0.75em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* Header */
.site-header { background: #f6f7f8; padding: 0.4rem 0 0.5rem; position: sticky; top: 0; z-index: 1100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.logo { height: 48px; width: auto; }
.logo img { height: 100%; width: auto; }

/* Nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #333; margin: 5px 0; }
.main-nav > ul { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.main-nav > ul > li { position: relative; }
.main-nav a { display: block; padding: 0.5rem 0.75rem; font-size: 1.05rem; }
.main-nav a:hover { text-decoration: none; background: rgba(0,0,0,0.05); border-radius: 4px; }
.submenu { position: absolute; top: 100%; left: 0; min-width: 200px; width: max-content; max-width: 280px; background: #f6f7f8; box-shadow: 0 4px 12px rgba(0,0,0,0.1); border-radius: 4px; padding: 0.5rem 0; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s; display: block; }
.submenu li { display: block; }
.main-nav li:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 0.5rem 1rem; white-space: nowrap; }

@media (max-width: 959px) {
  .nav-toggle { display: block; }
  .main-nav { width: 100%; max-height: calc(100vh - 4rem); overflow-y: auto; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { position: static; }
  .main-nav a { padding: 0.35rem 0.5rem; font-size: 0.95rem; }
  .main-nav > ul li:hover .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; margin-left: 0.75rem; margin-top: 0.15rem; }
  .submenu { padding: 0.25rem 0; }
  .submenu a { padding: 0.3rem 0.75rem; font-size: 0.9rem; }
  /* При открытом меню показываем подменю в виде дерева (без hover) */
  .main-nav.js-open .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; margin-left: 0.75rem; margin-top: 0.15rem; display: block; }
  .main-nav.js-open > ul { display: flex; }
  .main-nav:not(.js-open) > ul { display: none; }
}

/* Main / sections */
.hero { background: #fff; padding: 1.25rem 0; min-height: 30vh; display: flex; align-items: center; position: relative; }
/* Hero: фото слева целиком, текст справа; размер по фото, без серого фона; текст по центру по высоте фото */
.hero.hero--split { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; padding: 0; align-items: stretch; min-height: 700px; }
.hero--split .hero__img { position: relative; line-height: 0; min-height: 0; overflow: hidden; }
.hero--split .hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
@media (min-width: 768px) {
  .hero--split .hero__img { border-radius: 0 0 128px 0; }
}
.hero--rent .hero__img img { object-position: 0 -200px; }
.hero--split .hero__content { display: flex; align-items: center; padding: 1.25rem 0; min-height: 0; }
.hero--split .hero__content .container { max-width: 560px; width: 100%; }
.hero__text p { margin-bottom: 0.75em; }
.hero__text p:last-of-type { margin-bottom: 0; }
.hero__list { list-style: none; margin: 0 0 0.75em; padding: 0; }
.hero__list li { position: relative; padding-left: 1.25em; margin-bottom: 0.25em; }
.hero__list li::before { content: '—'; position: absolute; left: 0; }
@media (max-width: 767px) {
  .hero.hero--split { grid-template-columns: 1fr; min-height: 0; }
  .hero--split .hero__img { order: 0; min-height: 240px; height: auto; border-radius: 0; }
  .hero--rent .hero__img img { object-position: 0 -100px; } /* мобильная: сдвиг на 100px ниже */
  .hero--split .hero__content { order: 1; padding: 1rem 0; align-items: flex-start; }
  .hero--split .hero__content .container { padding: 0 1rem; }
}
/* Breadcrumbs */
.breadcrumbs { background: #f6f7f8; padding: 0.5rem 0 0.35rem; margin-top: 0; font-size: 0.9rem; color: #666; text-align: left; }
.breadcrumbs a { color: inherit; }
.breadcrumbs a:hover { text-decoration: underline; color: #111; }
.breadcrumbs span { color: #111; }
@media (max-width: 959px) {
  .breadcrumbs { padding-top: 5px; }
}

.section { padding: 1.25rem 0; }
.section--alt { background: #f6f7f8; }
.section-title { text-align: center; margin-bottom: 1rem; }
.section-title--small { font-size: 1.1rem; }

/* Product cards (model blocks) */
.product-block { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; padding: 1.25rem 0; }
.product-block__info { order: 1; }
.product-block__img { order: 2; position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; background: #eee; }
.product-block--carousel-left .product-block__img { order: 1; }
.product-block--carousel-left .product-block__info { order: 2; }
.product-block__info h3 { margin-bottom: 0.4rem; }
.product-block__text { color: #5d5d5d; margin-bottom: 0.75rem; }
.product-block__text p { margin-bottom: 0.5em; }
.product-block__text p:last-child { margin-bottom: 0; }
.product-block__price { margin: 1rem 0; font-size: 1rem; }
.product-block__buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn { display: inline-block; padding: 0.6rem 1.25rem; border-radius: 999px; font-size: 0.95rem; font-weight: 600; cursor: pointer; border: none; text-align: center; transition: opacity 0.2s; }
.btn:hover { opacity: 0.9; text-decoration: none; }
.btn--primary { background: #111; color: #fff; }
.btn--secondary { background: transparent; color: #111; border: 1px solid rgba(17,17,17,0.2); }

@media (max-width: 767px) {
  .product-block { grid-template-columns: 1fr; }
  .product-block__img { order: 0; }
  .product-block__info { order: 1; }
}

/* Examples page: alternating background per block */
.examples-section .product-block { margin-left: -1rem; margin-right: -1rem; padding: 1.25rem 1rem; }
.examples-section .product-block:nth-child(odd) { background: #fff; }
.examples-section .product-block:nth-child(even) { background: #f6f7f8; }
.examples-section .product-block:last-child { background: #fff; }

/* Carousel */
.carousel { position: relative; border-radius: 8px; overflow: hidden; }
.carousel .swiper { width: 100%; aspect-ratio: 4/3; }
.carousel .swiper-slide { display: flex; align-items: center; justify-content: center; background: #111; cursor: pointer; }
.carousel .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel .swiper-button-next, .carousel .swiper-button-prev { color: #fff; }
.carousel .swiper-pagination-bullet { background: #fff; opacity: 0.6; }
.carousel .swiper-pagination-bullet-active { opacity: 1; }

/* Fullscreen overlay */
.fullscreen-gallery { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.95); display: none; align-items: center; justify-content: center; }
.fullscreen-gallery.is-open { display: flex; }
.fullscreen-gallery__inner { max-width: 100vw; max-height: 100vh; position: relative; }
.fullscreen-gallery img { max-width: 100vw; max-height: 100vh; object-fit: contain; }
.fullscreen-gallery__close { position: absolute; top: 1rem; right: 1rem; z-index: 10; background: rgba(255,255,255,0.2); border: none; color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.5rem; line-height: 1; }
.fullscreen-gallery__prev, .fullscreen-gallery__next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: rgba(255,255,255,0.2); border: none; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.5rem; }
.fullscreen-gallery__prev { left: 1rem; }
.fullscreen-gallery__next { right: 1rem; }
.fullscreen-gallery__inner { position: relative; z-index: 1; pointer-events: none; }
.fullscreen-gallery__inner img { pointer-events: auto; }
.fullscreen-gallery__counter { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 10; color: rgba(255,255,255,0.8); font-size: 0.9rem; }

/* Partners */
.partners { background: #727c8f; color: #fff; padding: 0.75rem 0; }
.partners .section-title { color: #fff; margin-bottom: 0.75rem; }
.partners-slider-wrap { position: relative; padding-left: 2.5rem; padding-right: 2.5rem; }
.partners-slider { position: relative; }
.partners-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.6); background: rgba(255,255,255,0.15); color: #fff; cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center; transition: background 0.2s, border-color 0.2s; }
.partners-arrow:hover { background: rgba(255,255,255,0.3); border-color: #fff; }
.partners-arrow:focus { outline: none; }
.partners-arrow--prev { left: 0; }
.partners-arrow--next { right: 0; }
.partners-arrow--prev::after { content: ''; width: 0; height: 0; border-style: solid; border-width: 6px 8px 6px 0; border-color: transparent currentColor transparent transparent; margin-left: -2px; }
.partners-arrow--next::after { content: ''; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 8px; border-color: transparent transparent transparent currentColor; margin-right: -2px; }
.partners-grid { display: flex; flex-wrap: nowrap; gap: 1.25rem; align-items: center; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; }
.partners-grid::-webkit-scrollbar { display: none; }
.partner-card { flex-shrink: 0; text-align: center; min-width: 90px; max-width: 110px; }
.partner-card a { color: inherit; display: block; }
.partner-card img { width: 56px; height: 56px; object-fit: contain; margin: 0 auto 0.35rem; border-radius: 4px; }
.partner-card__title { font-size: 0.75rem; opacity: 0.9; line-height: 1.2; display: block; }

/* Footer */
.site-footer { background: #f6f7f8; padding: 1rem 0; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.site-footer h5 { margin: 0 0 0.25rem; font-size: 1rem; }
.site-footer a { color: #5d5d5d; }
.site-footer a:hover { color: #111; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(17,17,17,0.16); border-radius: 50%; color: inherit; }
.footer-links a:hover { border-color: #111; color: #111; text-decoration: none; }
.footer-links a svg { width: 20px; height: 20px; flex-shrink: 0; }
.footer-links a[aria-label="Вконтакте"] svg { width: 24px; height: 24px; }

/* Contact page */
.contact-section { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; min-height: 60vh; }
.contact-section .contact-map { min-height: 300px; position: relative; background: #e8e8e8; }
.contact-section .contact-map iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.contact-section .contact-content { padding: 1.25rem; display: flex; flex-direction: column; justify-content: center; }
.contact-section .contact-list { max-width: 100%; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid #eee; }
.contact-item:last-child { border-bottom: none; }
.contact-item__icon { flex-shrink: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: #333; }
.contact-item__icon svg { width: 28px; height: 28px; }
.contact-item__icon svg:only-child { width: 28px; height: 28px; }
.contact-item__text strong { display: block; margin-bottom: 0.25rem; }
.contact-item__text a { color: inherit; }
@media (max-width: 959px) {
  .contact-section { grid-template-columns: 1fr; }
  .contact-section .contact-map { min-height: 280px; order: 0; }
  .contact-section .contact-content { order: 1; padding: 1.5rem 1rem; }
}

/* Legal / text page */
.legal-title { font-size: 1.25rem; margin-bottom: 1rem; text-align: center; }
.legal-details { max-width: 720px; margin: 0 auto; }
.legal-row { padding: 0.5rem 0; border-bottom: 1px solid #e5e5e5; display: grid; grid-template-columns: 1fr 1.5fr; gap: 1rem; align-items: start; }
.legal-row:last-child { border-bottom: none; }
.legal-row__label { color: #6d6d6d; font-size: 0.9rem; }
.legal-row__data { font-size: 0.95rem; }
@media (max-width: 639px) {
  .legal-row { grid-template-columns: 1fr; gap: 0.25rem; }
}
.text-content { max-width: 720px; }
.text-content h3 { margin-top: 1rem; margin-bottom: 0.4rem; }
.text-content ul { list-style: disc; margin-left: 1.5rem; }

/* Price list */
.price-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.75rem; }
@media (min-width: 768px) {
  .price-list { grid-template-columns: repeat(3, 1fr); }
}
.price-item { padding: 0.75rem; background: #f9f9f9; border-radius: 8px; }
.price-item h4 { margin-bottom: 0.5rem; font-size: 1rem; }
.price-item .price { font-weight: 700; }

/* Price summary (4 lines below the 3×3 grid, larger font, full width) */
.price-summary { margin-top: 1.25rem; font-size: 1.35rem; }
.price-summary p { margin-bottom: 0.5rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.price-summary p:last-child { margin-bottom: 0; }
.price-summary__value { margin-left: auto; text-align: right; font-weight: 700; }
@media (min-width: 768px) {
  .price-list .price-summary { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; }
}

/* Video embed */
.section.section--video { padding: 0; }
.section--video .container { padding-top: 0; padding-bottom: 0; }
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; }
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* FAQ */
.faq__list { max-width: 640px; margin: 0 auto; font-size: 0.9rem; }
.faq__item { margin-bottom: 1.5rem; }
.faq__item:last-child { margin-bottom: 0; }
.faq__q { font-size: 1rem; margin-bottom: 0.35rem; }
.faq__a { color: #5d5d5d; margin: 0; line-height: 1.5; }
.faq__a a { color: #111; }
.video-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }

/* Price / tariff emphasis */
.price-block { font-weight: 700; font-size: 1.08rem; }

/* Blog: текст всегда слева, справа карусель и под ней видео (размер как у карусели), чередование фона */
.blog-feed { display: flex; flex-direction: column; gap: 0; }
.blog-section .blog-entry { margin-left: -1rem; margin-right: -1rem; padding: 1.25rem 1rem; }
.blog-section .blog-entry:nth-child(odd) { background: #fff; }
.blog-section .blog-entry:nth-child(even) { background: #f6f7f8; }
.blog-entry.product-block { align-items: start; }
.blog-entry .product-block__info { order: 1; }
.blog-entry .product-block__media { order: 2; min-width: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.blog-entry__meta { margin-bottom: 0.5rem; font-size: 0.9rem; color: #666; }
.blog-entry__date { display: inline; }
.blog-entry__date a { color: inherit; }
.blog-entry__date a:hover { color: #111; }
.blog-entry__vk-comment { margin-left: 0.75rem; }
.blog-entry__body { margin-bottom: 0; }
.blog-entry__text { margin: 0 0 0.5em; white-space: pre-wrap; }
.blog-entry__text:last-child { margin-bottom: 0; }
.blog-entry__body a { color: #0a5cb8; text-decoration: underline; }
.blog-entry__body a:hover { color: #084a94; }
.blog-entry .product-block__media .carousel { border-radius: 8px; overflow: hidden; }
.blog-entry .product-block__media .carousel .swiper { aspect-ratio: 4/3; }
.blog-entry__video.video-wrap { margin: 0; width: 100%; aspect-ratio: 4/3; padding-bottom: 0; height: auto; position: relative; }
.blog-entry__video.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.blog-entry--no-media .product-block__media { display: none; }
.blog-entry--no-media .product-block__info { grid-column: 1 / -1; }
.blog-loading, .blog-end, .blog-error { padding: 1rem 0; text-align: center; color: #666; font-size: 0.95rem; }
.blog-error { color: #a00; text-align: left; max-width: 480px; margin: 0 auto; }
.blog-error code { background: #f0f0f0; padding: 0.1em 0.3em; border-radius: 3px; font-size: 0.9em; }
.blog-more-wrap { padding: 1.5rem 0; text-align: center; }
.blog-load-more {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  font-family: inherit;
  color: #fff;
  background: #2d5a3d;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.blog-load-more:hover { background: #3d6b4d; }
.blog-load-more:focus { outline: 2px solid #2d5a3d; outline-offset: 2px; }
.blog-load-more:disabled { opacity: 0.7; cursor: not-allowed; }

/* Util */
.text-muted { color: #5d5d5d; }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; }
