/* Главная страница: стили подключаются только в index.php. */
.home-v2 { overflow-x: hidden; }
.bs-section { padding: 112px 0; }
.bs-kicker { margin-bottom: 18px; color: var(--blue); font-size: 12px; line-height: 1; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.bs-section-head { margin-bottom: 48px; display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.bs-section-head h2, .bs-why h2, .bs-contact-copy h2 { margin: 0; font-size: clamp(38px,4.7vw,64px); line-height: 1.02; letter-spacing: -.05em; font-weight: 800; }
.bs-section-head > p { max-width: 460px; margin: 0 0 4px; color: var(--gray); font-size: 17px; line-height: 1.65; }

.bs-hero { position: relative; min-height: clamp(710px, 38vw, 900px); overflow: hidden; display: flex; align-items: center; color: var(--white); background: var(--black); }
.bs-hero-image { position: absolute; inset: 0 0 0 38%; background: url('/assets/hero-polo-dark.png') calc(100% + clamp(180px,15vw,250px)) center/cover no-repeat; }
.bs-hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,var(--black) 0%,rgba(17,17,17,.72) 15%,rgba(17,17,17,0) 43%); }
.bs-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(17,17,17,1) 0%,rgba(17,17,17,.96) 33%,rgba(17,17,17,.25) 62%,rgba(17,17,17,.03) 100%); }
.bs-hero-inner { position: relative; z-index: 2; width: 100%; padding-top: 70px; padding-bottom: 70px; }
.bs-hero-copy { max-width: 620px; }
.bs-hero h1 { max-width: 650px; margin: 0; font-size: clamp(48px,5.5vw,78px); line-height: .98; letter-spacing: -.055em; font-weight: 800; }
.bs-hero h1 span { display: block; color: var(--blue); }
.bs-hero-copy > p { max-width: 565px; margin: 28px 0 0; color: rgba(255,255,255,.72); font-size: 18px; line-height: 1.65; }
.bs-hero-actions { margin-top: 38px; display: flex; gap: 12px; flex-wrap: wrap; }
.bs-btn-light { color: var(--white); border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.04); }
.bs-btn-light:hover { color: var(--black); border-color: var(--white); background: var(--white); }
.bs-btn-dark { margin-top: 34px; color: var(--white); background: var(--black); }

.bs-directions { display: grid; grid-template-columns: repeat(6,1fr); gap: 18px; }
.bs-direction { position: relative; grid-column: span 2; min-height: 300px; padding: 28px; overflow: hidden; display: flex; flex-direction: column; color: var(--white); background: var(--blue); border-radius: 16px; transition: transform .22s,background .22s; }
.bs-direction:nth-child(4), .bs-direction:nth-child(5) { grid-column: span 3; min-height: 278px; }
.bs-direction::after { content: ''; position: absolute; right: -110px; bottom: -130px; width: 220px; height: 220px; border: 1px solid rgba(255,255,255,.25); transform: rotate(45deg); }
.bs-direction:hover { color: var(--white); background: var(--blue-dk); transform: translateY(-5px); }
.bs-num { color: rgba(255,255,255,.62); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.bs-direction h3 { max-width: 330px; height: 58px; margin: 0 0 12px; font-size: 27px; line-height: 1.08; letter-spacing: -.035em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bs-direction p { max-width: 390px; margin: 0; color: rgba(255,255,255,.77); font-size: 14px; line-height: 1.6; }
.bs-more { position: relative; z-index: 1; margin-top: auto; padding-top: 24px; display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; }
.bs-more b { font-size: 21px; font-weight: 400; }

.bs-projects { overflow: hidden; background: var(--bg); }
.bs-projects-head { align-items: center; }
.bs-carousel-controls { display: flex; gap: 10px; }
.bs-carousel-controls button { width: 50px; height: 50px; border: 1px solid var(--line); border-radius: 50%; color: var(--black); background: var(--white); font-size: 19px; cursor: pointer; transition: .18s; }
.bs-carousel-controls button:hover { color: var(--white); border-color: var(--blue); background: var(--blue); }
.bs-carousel { display: flex; gap: 24px; overflow-x: auto; padding: 2px 2px 18px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.bs-carousel::-webkit-scrollbar { display: none; }
.bs-project-card { flex: 0 0 min(72%,760px); overflow: hidden; scroll-snap-align: start; color: var(--black); background: var(--white); border: 1px solid rgba(17,17,17,.08); border-radius: 17px; transition: transform .22s,box-shadow .22s; }
.bs-project-card:hover { color: var(--black); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(17,17,17,.1); }
.bs-project-cover { position: relative; height: 390px; overflow: hidden; background: #dadee6; }
.bs-project-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.bs-project-card:hover .bs-project-cover img { transform: scale(1.025); }
.bs-project-cover span { position: absolute; left: 20px; top: 20px; padding: 8px 12px; color: var(--white); background: rgba(17,17,17,.82); border-radius: 8px; font-size: 12px; font-weight: 700; }
.bs-project-copy { padding: 28px 30px 30px; }
.bs-project-copy h3 { max-width: 650px; margin: 0; font-size: 25px; line-height: 1.2; letter-spacing: -.025em; }
.bs-project-copy p { max-width: 650px; margin: 14px 0 24px; color: var(--gray); font-size: 14px; line-height: 1.65; }
.bs-project-copy > span { color: var(--blue); font-size: 14px; font-weight: 700; }
.bs-project-empty { flex: 0 0 100%; min-height: 240px; display: flex; align-items: center; justify-content: center; color: var(--gray); border: 1px dashed var(--line); border-radius: 16px; background: var(--white); }

.bs-why { color: var(--white); background: var(--black); }
.bs-why-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 90px; }
.bs-why-intro { position: sticky; top: 122px; align-self: start; }
.bs-why h2 { max-width: 555px; }
.bs-advantages { border-top: 1px solid rgba(255,255,255,.2); }
.bs-advantages article { padding: 31px 0; display: grid; grid-template-columns: 54px 1fr; gap: 22px; border-bottom: 1px solid rgba(255,255,255,.2); }
.bs-advantages article > span { color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.bs-advantages h3 { margin: -4px 0 10px; font-size: 21px; line-height: 1.2; letter-spacing: -.025em; }
.bs-advantages p { margin: 0; color: rgba(255,255,255,.63); font-size: 15px; line-height: 1.7; }

.bs-contact-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 100px; align-items: stretch; }
.bs-contact-copy { display: flex; flex-direction: column; }
.bs-contact-copy h2 { max-width: 580px; }
.bs-contact-copy > p { max-width: 535px; margin: 28px 0 0; color: var(--gray); font-size: 17px; line-height: 1.7; }
.bs-contact-links { margin-top: auto; padding-top: 48px; display: grid; gap: 17px; }
.bs-contact-links a { display: flex; flex-direction: column; gap: 4px; font-size: 19px; font-weight: 700; }
.bs-contact-links span { color: var(--gray); font-size: 12px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.bs-contact-form { padding: 34px; background: var(--bg); border: 1px solid var(--line); border-radius: 17px; }
.bs-contact-form label { margin-bottom: 19px; display: flex; flex-direction: column; gap: 8px; color: #343841; font-size: 13px; font-weight: 700; }
.bs-contact-form label em { color: #9096a2; font-size: 11px; font-style: normal; font-weight: 500; }
.bs-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bs-contact-form input, .bs-contact-form select, .bs-contact-form textarea { width: 100%; min-height: 52px; padding: 13px 14px; color: var(--black); background: var(--white); border: 1px solid #d4d9e2; border-radius: 9px; outline: none; font-size: 16px; font-family: inherit; }
.bs-contact-form textarea { min-height: 112px; resize: vertical; }
.bs-contact-form input:focus, .bs-contact-form select:focus, .bs-contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,102,255,.1); }
.bs-contact-form .btn { width: 100%; justify-content: center; }
.bs-form-note { margin: 12px 0 0; color: #858b96; font-size: 11px; line-height: 1.5; text-align: center; }
.bs-form-note a { color: var(--blue); }

@media (max-width: 980px) {
  .bs-section { padding: 88px 0; }
  .bs-hero { min-height: 700px; align-items: flex-end; }
  .bs-hero-image { inset: 0 0 36% 24%; background-position: 60% center; background-size: cover; }
  .bs-hero-shade { background: linear-gradient(0deg,rgba(17,17,17,1) 0%,rgba(17,17,17,.96) 44%,rgba(17,17,17,.2) 75%,rgba(17,17,17,0) 100%); }
  .bs-hero-inner { padding-top: 330px; }
  .bs-section-head { align-items: flex-start; flex-direction: column; gap: 22px; }
  .bs-directions { grid-template-columns: 1fr 1fr; }
  .bs-direction, .bs-direction:nth-child(4), .bs-direction:nth-child(5) { grid-column: span 1; min-height: 278px; }
  .bs-direction:last-child { grid-column: span 2; }
  .bs-why-grid, .bs-contact-grid { grid-template-columns: 1fr; gap: 58px; }
  .bs-why-intro { position: static; }
}

@media (max-width: 640px) {
  .bs-section { padding: 70px 0; }
  .bs-hero { min-height: 770px; }
  .bs-hero-image { inset: 0 -27% 45% 0; background-position: center top; background-size: cover; }
  .bs-hero-inner { padding: 345px 24px 48px; }
  .bs-hero h1 { font-size: clamp(40px,12.3vw,56px); }
  .bs-hero-copy > p { margin-top: 22px; font-size: 15px; line-height: 1.6; }
  .bs-hero-actions { margin-top: 28px; display: grid; }
  .bs-hero-actions .btn { width: 100%; justify-content: center; }
  .bs-section-head h2, .bs-why h2, .bs-contact-copy h2 { font-size: clamp(36px,11vw,50px); }
  .bs-directions { grid-template-columns: 1fr; gap: 12px; }
  .bs-direction, .bs-direction:nth-child(4), .bs-direction:nth-child(5), .bs-direction:last-child { grid-column: span 1; min-height: 250px; padding: 24px; }
  .bs-projects-head { align-items: flex-end; flex-direction: row; }
  .bs-projects-head h2 { font-size: 39px; }
  .bs-carousel-controls button { width: 44px; height: 44px; }
  .bs-project-card { flex-basis: 91%; }
  .bs-project-cover { height: 250px; }
  .bs-project-copy { padding: 22px; }
  .bs-project-copy h3 { font-size: 21px; }
  .bs-advantages article { grid-template-columns: 40px 1fr; gap: 10px; }
  .bs-contact-copy > p { font-size: 15px; }
  .bs-contact-form { padding: 22px 18px; }
  .bs-form-row { grid-template-columns: 1fr; gap: 0; }
}
