/* ========================================
   Общие стили
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
/* ========================================
   Шапка и навигация
======================================== */
.main-header {
  background-color: #DA291C;
  color: white;
  padding: 0.8rem 0;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.logo img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}
.header-title {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
}
.header-contact {
  font-size: 0.95rem;
  text-align: right;
  line-height: 1.5;
  white-space: nowrap;
}
nav {
  background-color: #1d3557;
  padding: 0.8rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
nav a {
  color: white;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
  transition: color 0.3s;
}
nav a:hover {
  color: #a8dadc;
}
/* Адаптивность шапки */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }
  .header-title {
    font-size: 1.3rem;
    white-space: normal;
  }
  .header-contact {
    text-align: center;
    white-space: normal;
  }
  .logo img {
    height: 44px;
  }
}
/* ========================================
   Баннеры
======================================== */
.hero-banner,
.about-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.hero-banner {
  height: auto;
  max-height: 514px;
  background-color: #f8f9fa;
}
.about-banner {
  height: 614px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}
.about-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-text,
.about-banner-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}
.hero-text {
  left: 5%;
  right: 5%;
  max-width: 700px;
}
.about-banner-text {
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 2rem;
}
.hero-text h2,
.about-banner-text h1 {
  font-size: 2.8rem;
  margin: 0 0 1rem;
  font-weight: bold;
  line-height: 1.2;
}
.hero-text p,
.about-banner-text p {
  font-size: 1.4rem;
  margin: 0.6rem 0;
  line-height: 1.4;
}
/* Адаптивность баннеров */
@media (max-width: 768px) {
  .hero-banner { 
    height: auto;
    max-height: 515px;
  }
  .hero-banner img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .about-banner { height: 300px; }
  .hero-text h2,
  .about-banner-text h1 { font-size: 2rem; }
  .hero-text p,
  .about-banner-text p { font-size: 1.1rem; }
}
/* ========================================
   Компания в цифрах
======================================== */
.company-section {
  background-color: white;
  padding: 3rem 0;
}
.company-section h2 {
  font-size: 52px;
  color: #333;
  margin-bottom: 1.2rem;
  text-align: left;
}
.red-text {
  color: #DA291C;
}
.company-desc p {
  font-size: 17px;
  line-height: 1.7;
  color: #333;
  max-width: 800px;
  margin: 0;
  text-align: left;
  margin-bottom: 2.5rem;
}
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.stat-card {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 1.5rem;
  background: #FFF5F5;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}
.stat-number {
  font-size: 48px;
  color: #DA291C;
  font-weight: bold;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}
.stat-bold {
  font-size: 19px;
  font-weight: bold;
  color: #1d3557;
  margin-bottom: 0.3rem;
}
.stat-light {
  font-size: 16px;
  font-weight: normal;
  color: #555;
  line-height: 1.4;
}
.section-divider {
  height: 1px;
  background-color: #eaeaea;
  margin-top: 2rem;
}
/* ========================================
   Как мы работаем
======================================== */
.how-we-work {
  background-color: white;
  padding: 3rem 0;
}
.work-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.work-image {
  width: 650px;
  height: auto;
  max-height: 500px;
}
.work-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.work-text {
  flex: 1;
  text-align: left;
}
.work-text h2 {
  font-size: 52px;
  color: #333;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.work-text p {
  font-size: 17px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1rem;
}
/* ========================================
   Наши ценности
======================================== */
.values-section {
  background-color: white;
  padding: 3rem 0;
}
.values-section h1 {
  font-size: 52px;
  color: #333;
  margin-bottom: 1rem;
  text-align: left;
}
.values-desc {
  font-size: 17px;
  line-height: 1.7;
  color: #333;
  max-width: 800px;
  margin-bottom: 2.5rem;
  text-align: left;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}
.value-card {
  position: relative;
  background: #f8f9fa;
  padding: 1.8rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.value-card:hover {
  background: #DA291C;
  color: white;
}
.value-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 14px;
  font-weight: bold;
  color: #1d3557;
  opacity: 0.7;
}
.value-card:hover .value-number {
  color: white;
  opacity: 1;
}
.value-icon {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.icon-1 { background-color: #457b9d; }
.icon-2 { background-color: #1d3557; }
.icon-3 { background-color: #a8dadc; }
.icon-4 { background-color: #DA291C; }
.icon-5 { background-color: #f1faee; border: 1px solid #ccc; }
.value-text {
  font-weight: bold;
  font-size: 16px;
  line-height: 1.5;
  z-index: 1;
}
.value-card:hover .value-text {
  color: white;
}
/* Адаптивность ценности */
@media (max-width: 1024px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .values-section h1 { font-size: 40px; }
  .values-desc { font-size: 16px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .value-card { min-height: 180px; padding: 1.4rem; }
  .value-text { font-size: 15px; }
}
@media (max-width: 480px) {
  .values-section h1 { font-size: 34px; }
  .values-desc { font-size: 15px; }
  .values-grid { grid-template-columns: 1fr; }
  .value-card { min-height: 160px; padding: 1.2rem; }
  .value-number, .value-icon { top: 0.8rem; width: 30px; height: 30px; }
  .value-text { font-size: 14px; }
}
/* ========================================
   Последние события
======================================== */
.last-events {
  background-color: #FFF5F5;
  padding: 3rem 0;
}
.last-events h1 {
  font-size: 52px;
  color: #333;
  margin-bottom: 1rem;
  text-align: center;
}
.events-desc {
  font-size: 17px;
  line-height: 1.7;
  color: #333;
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
}
.events-carousel {
  display: flex;
  gap: 1.8rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}
.events-carousel::-webkit-scrollbar {
  height: 8px;
}
.events-carousel::-webkit-scrollbar-track {
  background: transparent;
}
.events-carousel::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}
.events-carousel::-webkit-scrollbar-thumb:hover {
  background-color: #999;
}
.event-card {
  flex: 0 0 auto;
  width: 630px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}
.event-image {
  width: 100%;
  height: 320px;
  overflow: hidden;
}
.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.event-caption {
  padding: 1.2rem;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  margin: 0;
}
.event-link {
  color: #DA291C;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 0.5rem;
}
.event-link:hover {
  text-decoration: underline;
}
/* Адаптивность событий */
@media (max-width: 768px) {
  .last-events h1 { font-size: 40px; }
  .events-desc { font-size: 16px; }
  .event-card { width: 550px; }
  .event-image { height: 280px; }
}
@media (max-width: 480px) {
  .last-events h1 { font-size: 34px; }
  .events-desc { font-size: 15px; }
  .event-card { width: 420px; }
  .event-image { height: 240px; }
}
/* ========================================
   Продукция и основной контент
======================================== */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.8rem;
  margin-top: 1.5rem;
}
.product {
  background: white;
  padding: 1.2rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.2s;
}
.product:hover {
  transform: translateY(-5px);
}
.product-img {
  width: 100%;
  height: 140px;
  margin-bottom: 1rem;
  border-radius: 6px;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.btn {
  background: #DA291C;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.8rem;
}
.btn:hover {
  background: #b52217;
}
.ad-banner {
  background: #f1faee;
  padding: 1.2rem;
  border-radius: 10px;
  margin: 2rem 0;
  text-align: center;
  color: #1d3557;
  border-left: 4px solid #a8dadc;
}
/* ========================================
   О компании — двухколоночный блок
======================================== */
.about-highlight {
  padding: 2.5rem 0;
  background-color: white;
}
.about-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.about-text-left {
  flex: 1;
}
.about-text-right {
  flex: 1;
}
.about-text-left h1 {
  font-size: 52px;
  color: #333;
  margin: 0;
  line-height: 1.2;
}
.about-text-right p {
  font-size: 17px;
  line-height: 1.7;
  color: #333;
  margin: 0;
}
/* Адаптивность */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  .about-text-left h1 {
    font-size: 40px;
  }
  .about-text-right p {
    font-size: 16px;
  }
}
/* ========================================
   Формы и контакты
======================================== */
.contact-info,
.form-container,
.vacancies-list {
  background: white;
  padding: 1.8rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: bold;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}
/* ========================================
   Фирменные отделы (карта)
======================================== */
.outlets-section {
  background-color: white;
  padding: 3rem 0;
}
.outlets-section h2 {
  font-size: 40px;
  color: #333;
  margin-bottom: 1.5rem;
  text-align: left;
}
#outlets-map-container {
  height: 600px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
#sidebar {
  width: 300px;
  background: #f9f9f9;
  border-right: 1px solid #ddd;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
#sidebar h2 {
  margin: 15px;
  font-size: 18px;
  color: #333;
  font-weight: bold;
}
#places-list {
  padding: 0 15px 15px;
  flex-grow: 1;
  overflow-y: auto;
}
.place {
  padding: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 6px;
}
.place:hover {
  background: #eef6ff;
}
.place.active {
  background: #dbeeff;
  border-left: 4px solid #DA291C;
}
.place h3 {
  margin: 0;
  font-size: 16px;
  color: #DA291C;
  font-weight: bold;
}
.place p {
  margin: 6px 0 0;
  font-size: 14px;
  color: #444;
  line-height: 1.4;
}
.place-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 8px;
  font-size: 13px;
  color: #DA291C;
  border: 1px solid #DA291C;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
}
.place-btn:hover {
  background: #DA291C;
  color: white;
}
#map {
  flex-grow: 1;
}
/* Адаптивность карты */
@media (max-width: 992px) {
  #outlets-map-container {
    height: 500px;
    flex-direction: column;
  }
  #sidebar {
    width: 100%;
    height: 200px;
    border-right: none;
    border-bottom: 1px solid #ddd;
  }
  #map {
    height: 300px;
  }
}
@media (max-width: 768px) {
  .outlets-section h2 { font-size: 40px; }
  #outlets-map-container { height: 450px; }
  #sidebar { height: 180px; }
  #map { height: 270px; }
}
/* ========================================
   Контакты — заголовок и офисы
======================================== */
.page-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.page-header h1 {
  font-size: 52px;
  color: #333;
  margin-bottom: 1rem;
  text-align: center;
}
.page-header .outlets-desc {
  font-size: 17px;
  line-height: 1.7;
  color: #333;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.contact-link {
  color: #333 !important;
  text-decoration: none;
  cursor: pointer;
}
.contact-link:hover {
  text-decoration: underline;
}
.contact-offices {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.office-block {
  flex: 1;
  min-width: 300px;
  background: white;
  padding: 1.8rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.office-block h2 {
  margin-top: 0;
  margin-bottom: 1.2rem;
  font-size: 24px;
  color: #333;
}
.office-block p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}
@media (max-width: 768px) {
  .contact-offices {
    flex-direction: column;
    gap: 1.5rem;
  }
  .office-block {
    min-width: auto;
  }
}
/* ========================================
   Футер — ОБНОВЛЁННЫЙ (400px на десктопе)
======================================== */
.main-footer {
  position: relative;
  min-height: 400px;
  background-image: url('images/magicquill.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 0;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.footer-grid-wrapper {
  padding-left: 115px;
  padding-top: 40px;
  padding-right: 40px;
  max-width: calc(1200px + 115px);
  margin: 0 auto;
  width: 100%;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  width: 100%;
  max-width: 1200px;
}
.logo-col {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  height: 100%;
  margin-left: -90px;
}
.logo-col img {
  height: 88px;
  width: auto;
  display: block;
}
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 18px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-size: 19px;
  line-height: 1.4;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: white;
  text-decoration: underline;
}
.footer-address {
  font-size: 19px;
  line-height: 1.5;
}
.footer-address a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  display: inline;
}
.footer-address a:hover {
  text-decoration: underline;
}
.footer-copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  padding-left: 115px;
  padding-bottom: 30px;
}
/* Адаптивность футера */
@media (max-width: 940px) {
  .logo-col {
    margin-left: 0;
  }
  .footer-grid-wrapper {
    padding-left: 80px;
  }
  .footer-copyright {
    padding-left: 80px;
  }
}
@media (max-width: 768px) {
  .main-footer {
    min-height: auto;
    padding-bottom: 30px;
  }
  .footer-grid-wrapper {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 60px;
  }
  .footer-copyright {
    padding-left: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .footer-col {
    align-items: center;
    text-align: center;
  }
  .footer-links a,
  .footer-address {
    font-size: 18px;
  }
}
/* ========================================
   Общая адаптивность
======================================== */
@media (max-width: 992px) {
  .stat-card { min-width: 220px; }
  .work-content {
    flex-direction: column;
    text-align: left;
  }
  .work-image {
    width: 100%;
    height: auto;
	max-width: 433px;
	aspect-ratio: 433 / 233;
	border-radius: 12px;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0);
  }
  .work-text { text-align: left; }
}
@media (max-width: 768px) {
  nav a {
    display: block;
    margin: 0.4rem 0;
  }
  .company-section h2 { font-size: 40px; }
  .company-desc p { font-size: 16px; }
  .stats-row {
    flex-direction: column;
    align-items: center;
  }
  .stat-card {
    width: 100%;
    max-width: 500px;
  }
  .how-we-work { padding: 2rem 0; }
  .work-text h2 { font-size: 40px; }
  .work-text p { font-size: 16px; }
  .work-image {
    width: 100%;
    height: auto;
	max-width: 433px;
	aspect-ratio: 433 / 233;
	border-radius: 12px;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0);
  }
  .work-image img{
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  main { padding: 0 1rem; }
}
@media (max-width: 480px) {
  .company-section h2 { font-size: 34px; }
  .company-desc p { font-size: 15px; }
  .stat-number { font-size: 40px; }
  .stat-bold { font-size: 18px; }
  .stat-light { font-size: 15px; }
  .section-divider { margin-top: 1.5rem; }
  .work-text h2 { font-size: 34px; }
  .work-text p { font-size: 15px; }
  .work-image { height: auto; }
  .products-grid { grid-template-columns: 1fr; }
}
/* ========================================
   Баннер на странице "Вакансии"
======================================== */
.vacancies-banner {
  position: relative;
  width: 100%;
  height: 410px;
  overflow: hidden;
}
.vacancies-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vacancies-banner-text {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  color: white;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}
.vacancies-banner-text h1 {
  font-size: 2.8rem;
  margin: 0 0 1rem;
  font-weight: bold;
  line-height: 1.2;
}
.vacancies-banner-text p {
  font-size: 1.4rem;
  margin: 0;
  line-height: 1.4;
}
/* ========================================
   Преимущества работы
======================================== */
.vacancies-advantages {
  padding: 3rem 0;
  background-color: #f6f6f6;
  text-align: center;
}
.vacancies-advantages h1 {
  font-size: 52px;
  color: #333;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.vacancies-advantages p {
  font-size: 17px;
  line-height: 1.7;
  color: #333;
  max-width: 800px;
  margin: 0 auto;
}
/* Адаптивность */
@media (max-width: 768px) {
  .vacancies-banner {
    height: 320px;
  }
  .vacancies-banner-text h1 {
    font-size: 2rem;
  }
  .vacancies-banner-text p {
    font-size: 1.1rem;
  }
  .vacancies-advantages h1 {
    font-size: 40px;
  }
  .vacancies-advantages p {
    font-size: 16px;
  }
}
/* ========================================
   Блок "Наши ценности" на странице вакансий
======================================== */
.values-section-custom {
  background-color: #f6f6f6;
  padding: 3rem 0;
  text-align: center;
}
.values-section-custom h1 {
  font-size: 52px;
  color: #333;
  margin-bottom: 1rem;
  text-align: center;
}
.values-desc-custom {
  font-size: 17px;
  line-height: 1.7;
  color: #333;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.values-grid-custom {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.value-card-custom {
  position: relative;
  width: 190px;
  height: 220px;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  cursor: default;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}
.value-card-custom:hover {
  background: #DA291C;
  color: white;
}
.value-icon-custom {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 32px;
  height: 32px;
  background-color: black;
  mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  background-repeat: no-repeat;
  background-size: contain;
}
/* Иконки через SVG-маски */
.icon-realization {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
}
.icon-innovation {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
}
.icon-trust {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z'/%3E%3C/svg%3E");
}
.icon-team {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 2.03 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 2.03 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E");
}
.icon-leadership {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
}
.value-card-custom:hover .value-icon-custom {
  background-color: white;
}
.value-text-custom {
  font-weight: bold;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  color: #333;
  z-index: 1;
}
.value-card-custom:hover .value-text-custom {
  color: white;
}
.value-card-custom::after {
  content: attr(data-number);
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 14px;
  font-weight: bold;
  color: #1d3557;
  opacity: 0.7;
}
.value-card-custom:hover::after {
  color: white;
  opacity: 1;
}
/* Адаптивность */
@media (max-width: 1024px) {
  .values-grid-custom {
    gap: 1.2rem;
  }
  .value-card-custom {
    width: 170px;
    height: 200px;
    padding: 1.2rem;
  }
}
@media (max-width: 768px) {
  .values-section-custom h1 {
    font-size: 40px;
  }
  .values-desc-custom {
    font-size: 16px;
  }
  .values-grid-custom {
    flex-direction: column;
    align-items: center;
  }
  .value-card-custom {
    width: 100%;
    max-width: 500px;
    height: auto;
    min-height: 160px;
  }
}
@media (max-width: 480px) {
  .values-section-custom h1 {
    font-size: 34px;
  }
  .values-desc-custom {
    font-size: 15px;
  }
  .value-card-custom {
    padding: 1.4rem;
  }
  .value-text-custom {
    font-size: 15px;
  }
}
/* ========================================
   Блок "Наши компетенции" — обновлённый
======================================== */
.competencies-section {
  background-color: #f6f6f6;
  padding: 3rem 0;
}
.competencies-section h1 {
  font-size: 52px;
  color: #333;
  margin-bottom: 2.5rem;
  text-align: center;
  line-height: 1.2;
}
.competencies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.competency-card {
  background: white;
  padding: 2rem;
  padding-top: 4.2rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.competency-icon {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2;
}
.icon-results {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23457b9d' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
}
.icon-responsibility {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23DA291C' d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z'/%3E%3C/svg%3E");
}
.icon-teamwork {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232a9d8f' d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 2.03 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E");
}
.icon-improvement {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f4a261' d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
}
.icon-leadership-2 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e76f51' d='M9 11H7v2h2v2h2v-2h2v-2H11V9H9v2zm4 0h-2v2h2v2h2v-2h2v-2h-2V9h-2v2zm-8 4h2v2H5v-2zm12 0h2v2h-2v-2z'/%3E%3C/svg%3E");
}
.icon-strategy {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23264653' d='M12 3l8.5 6-8.5 6-8.5-6L12 3m0 2.3L5.5 9.8 12 14.3l6.5-4.5L12 5.3z'/%3E%3C/svg%3E");
}
.competency-card h2 {
  font-size: 22px;
  color: #333;
  margin: 0 0 1rem;
  line-height: 1.3;
  font-weight: bold;
}
.competency-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  margin: 0;
  flex-grow: 1;
}
/* Адаптивность */
@media (max-width: 992px) {
  .competencies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .competencies-section h1 {
    font-size: 40px;
  }
  .competencies-grid {
    grid-template-columns: 1fr;
  }
  .competency-card {
    padding: 1.8rem;
    padding-top: 3.8rem;
  }
  .competency-card h2 {
    font-size: 20px;
  }
  .competency-card p {
    font-size: 15px;
  }
  .competency-icon {
    width: 40px;
    height: 40px;
    top: 1.2rem;
    left: 1.2rem;
  }
}
/* ========================================
   Промо-блок: Присоединиться к команде — обновлённый
======================================== */
.join-team-promo {
  background: white;
  border-radius: 16px;
  width: 1275px;
  height: 210px;
  margin: -50px auto 0;
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.join-team-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 1.5rem;
  gap: 2rem;
}
.join-team-text {
  text-align: left;
  flex: 1;
  max-width: 600px;
}
.join-team-text h2 {
  font-size: 32px;
  color: #333;
  margin: 0 0 0.8rem;
  line-height: 1.2;
}
.join-team-text p {
  font-size: 16px;
  color: #555;
  line-height: 1.5;
  margin: 0;
}
.join-team-platforms {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
}
.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 240px;
  height: 150px;
  padding: 1rem;
  border-radius: 12px;
  position: relative;
}
.farpost-card {
  background-color: #feefe5;
}
.farpost-card .platform-name {
  font-size: 20px;
  font-weight: bold;
  color: #f06204;
  margin-bottom: 1rem;
}
.hh-card {
  background-color: #fbe6e9;
}
.hh-card .platform-icon-hh {
  width: 50px;
  height: 50px;
  background-color: #d70019;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 1rem;
}
.platform-button {
  background: white;
  color: black;
  width: 100%;
  padding: 0.6rem 0;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: background-color 0.2s;
}
.platform-button:hover {
  background-color: #f0f0f0;
}
/* Медиа-запросы */
@media (max-width: 1024px) {
  .join-team-promo {
    width: calc(100% - 3rem);
    height: auto;
    padding: 1.8rem 0;
    margin-top: -40px;
    border-radius: 14px;
  }
  .join-team-content {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1.5rem;
  }
  .join-team-platforms {
    align-self: flex-end;
    width: 100%;
    justify-content: flex-end;
  }
}
@media (max-width: 768px) {
  .join-team-promo {
    margin-top: -30px;
    padding: 1.5rem 0;
    border-radius: 12px;
  }
  .join-team-text h2 {
    font-size: 26px;
  }
  .join-team-text p {
    font-size: 15px;
  }
  .join-team-platforms {
    align-self: stretch;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .platform-card {
    width: 100%;
    max-width: 300px;
  }
}
/* ========================================
   Блок: Социальные гарантии и условия — финальная версия
======================================== */
.benefits-cards-section {
  padding: 3rem 0;
  background-color: #f6f6f6;
}
.benefits-cards-container {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0 1.5rem;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}
.benefits-cards-container::-webkit-scrollbar {
  height: 8px;
}
.benefits-cards-container::-webkit-scrollbar-track {
  background: transparent;
}
.benefits-cards-container::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}
.benefits-cards-container::-webkit-scrollbar-thumb:hover {
  background-color: #999;
}
.benefit-card {
  background: white;
  width: 412px;
  height: 316px;
  padding: 5rem 2rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  flex: 0 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
}
.benefit-icon {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #DA291C;
  background-size: 20px 20px;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 2;
}
.icon-employment {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}
.icon-growth {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
}
.icon-comfort {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 3l9 5v11c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V8l9-5zm0 2.09L6 8.41v10.18l6 3.22 6-3.22V8.41L12 5.09z'/%3E%3C/svg%3E");
}
.icon-culture {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z'/%3E%3C/svg%3E");
}
.icon-transport {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.22.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-8l-2.08-5.99zM6.5 16c-.83 0-1.5-.67-1.5-1.5S5.67 13 6.5 13s1.5.67 1.5 1.5S7.33 16 6.5 16zm11 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zM5 11l1.5-4.5h11L19 11H5z'/%3E%3C/svg%3E");
}
.benefit-card h2 {
  font-size: 19px;
  color: #333;
  margin: 0 0 1rem;
  line-height: 1.25;
  font-weight: bold;
}
.benefit-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #555;
}
.benefit-card li {
  margin-bottom: 0.55rem;
  position: relative;
  padding-left: 1.5rem;
}
.benefit-card li::before {
  content: "•";
  color: #DA291C;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}
/* Адаптивность */
@media (max-width: 768px) {
  .benefit-card {
    width: 90vw;
    min-width: 90vw;
    padding: 5rem;
    height: auto;
  }
  .benefit-card h2 {
    font-size: 19px;
  }
  .benefit-card ul {
    font-size: 15px;
  }
}
/* ========================================
   Блоки "О компании": Деятельность, Производство и т.д.
======================================== */
/* Общие стили для иконок и текста */
.factory-activity-section,
.crab-production-section,
.factory-capacity-section,
.quality-control-section {
  background-color: white;
  padding: 4rem 0;
}
.factory-activity-content,
.crab-production-content,
.factory-capacity-content,
.quality-control-content {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}
.crab-production-content {
  flex-direction: row-reverse;
}
.factory-text,
.crab-text,
.factory-capacity-text,
.quality-control-text {
  flex: 1;
  position: relative;
  padding-top: 2rem;
}
.factory-icon,
.crab-icon,
.factory-capacity-icon,
.quality-control-icon {
  position: absolute;
  top: -28px;
  left: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-size: 50% 50%;
  background-position: center;
  background-repeat: no-repeat;
}
.factory-icon {
  background-color: #DA291C;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 3l9 5v11c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V8l9-5zm0 2.09L6 8.41v10.18l6 3.22 6-3.22V8.41L12 5.09z'/%3E%3C/svg%3E");
}
.crab-icon {
  background-color: #d111d1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16zm-1-10h2v2h-2zm0 3h2v2h-2z'/%3E%3C/svg%3E");
}
.factory-capacity-icon {
  background-color: #1fafdc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 3l9 5v11c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V8l9-5zm0 2.09L6 8.41v10.18l6 3.22 6-3.22V8.41L12 5.09z'/%3E%3C/svg%3E");
}
.quality-control-icon {
  background-color: #1ec43b;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
}
.factory-text h1,
.crab-text h1,
.factory-capacity-text h1,
.quality-control-text h1 {
  font-size: 52px;
  color: #333;
  margin: 0 0 1.5rem;
  line-height: 1.2;
}
.factory-text p,
.crab-text p,
.factory-capacity-text p,
.quality-control-text p {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin: 0 0 1rem;
}
.crab-highlight { color: #d111d1; }
.capacity-highlight { color: #1fafdc; }
.quality-highlight { color: #1ec43b; }
.factory-image,
.crab-image,
.factory-capacity-image,
.quality-control-image {
  flex: 0 0 auto;
  width: 520px;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}
.factory-image img,
.crab-image img,
.factory-capacity-image img,
.quality-control-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Адаптивность для всех блоков */
@media (max-width: 992px) {
  .factory-activity-content,
  .crab-production-content,
  .factory-capacity-content,
  .quality-control-content {
    flex-direction: column;
    text-align: center;
  }
  .factory-text,
  .crab-text,
  .factory-capacity-text,
  .quality-control-text {
    padding-top: 0;
  }
  .factory-icon,
  .crab-icon,
  .factory-capacity-icon,
  .quality-control-icon {
    position: relative;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 auto 1.5rem;
  }
  .factory-text h1,
  .crab-text h1,
  .factory-capacity-text h1,
  .quality-control-text h1 {
    font-size: 40px;
  }
  .factory-text p,
  .crab-text p,
  .factory-capacity-text p,
  .quality-control-text p {
    font-size: 15px;
  }
  .factory-image,
  .crab-image,
  .factory-capacity-image,
  .quality-control-image {
    width: 100%;
    max-width: 600px;
    height: 300px;
    margin-top: 2rem;
  }
}
@media (max-width: 768px) {
  .factory-activity-section,
  .crab-production-section,
  .factory-capacity-section,
  .quality-control-section {
    padding: 2.5rem 0;
  }
  .factory-text h1,
  .crab-text h1,
  .factory-capacity-text h1,
  .quality-control-text h1 {
    font-size: 34px;
  }
  .factory-image,
  .crab-image,
  .factory-capacity-image,
  .quality-control-image {
    height: 250px;
  }
}
/* ========================================
   Сайдбар и карточки продукции — финальная версия
======================================== */
.page-wrapper {
  display: flex;
  gap: 2rem;
  padding: 2rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  overflow-x: hidden; /* Защита от горизонтального скролла */
}
.sidebar {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.sidebar-block {
  background: white;
  padding: 1.2rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.sidebar-block h3 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 0.8rem;
  color: #333;
}
.sidebar-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-block li {
  margin-bottom: 0.6rem;
}
.sidebar-block a {
  color: #333;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}
.sidebar-block a:hover {
  color: #DA291C;
  text-decoration: underline;
}
/* Сетка товаров */
.products-main {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  min-width: 0;
}
.product-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Вся карточка — ссылка */
.product-card > a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.product-card img {
  width: 230px;
  height: 260px;
  object-fit: contain;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.3s ease;
}
/* Эффект при наведении: приближение */
.product-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.product-card:hover img {
  transform: scale(1.05);
}
/* Текст без подчёркивания */
.product-card .title-main,
.product-card .title-sub {
  margin: 0.4rem 0 0;
  line-height: 1.3;
}
.product-card .title-main {
  font-size: 19px;
  font-weight: bold;
  color: #333;
}
.product-card .title-sub {
  font-size: 14px;
  color: #666;
}
/* === 3 колонки только на >1200px === */
@media (max-width: 1200px) {
  .products-main {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-card img {
    width: 200px;
    height: 230px;
  }
}
/* Защита от горизонтального скролла в 850–740px */
@media (max-width: 850px) {
  .page-wrapper {
    padding: 1.8rem 1rem;
    gap: 1.4rem;
  }
  .product-card img {
    width: 190px;
    height: 220px;
  }
}
/* Мобильная версия */
@media (max-width: 768px) {
  .page-wrapper {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .sidebar-block {
    width: calc(50% - 0.75rem);
  }
  .products-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.3rem;
  }
  .product-card img {
    width: 180px;
    height: 210px;
  }
  .product-card .title-main {
    font-size: 17px;
  }
  .product-card .title-sub {
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  .sidebar-block {
    width: 100%;
  }
  .products-main {
    gap: 1.1rem;
  }
  .product-card img {
    width: 150px;
    height: 180px;
  }
  .product-card .title-main {
    font-size: 16px;
  }
  .product-card .title-sub {
    font-size: 12px;
  }
}