/* Original industrial hero photograph, now with a coherent type hierarchy */
.hero {
  position: relative; display: flex; align-items: flex-end; min-height: 760px; color: var(--on-dark); background-color: var(--dark);
  background-image: url('/assets/media/hero_img.png');
  background-size: cover; background-position: center 48%; background-repeat: no-repeat;
}
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 20, 24, .87) 0%, rgba(15, 20, 24, .71) 32%, rgba(15, 20, 24, .31) 68%, rgba(15, 20, 24, .05) 100%), linear-gradient(0deg, rgba(15, 20, 24, .28), transparent 48%); }
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin-inline: auto; padding: 108px var(--gutter) 36px; }
.hero h1 { max-width: 1010px; margin-bottom: 28px; font-size: clamp(56px, 4.72vw, 68px); font-weight: 500; line-height: 1.035; }
.hero p { max-width: 645px; margin-bottom: 30px; color: #e2e7e0; font-size: 18px; line-height: 1.6; }
.hero .slogan { margin-top: 76px; padding-top: 24px; border-top: 1px solid rgba(244, 246, 242, .3); font-size: 16px; font-weight: 400; line-height: 1.5; letter-spacing: .015em; }

/* Production and construction: large equal photographs, open text below */
#production { background: var(--paper); }
#production .grid-2 > div { display: flex; flex-direction: column; min-width: 0; }
.photo-card { position: relative; overflow: hidden; aspect-ratio: 1.6; border-radius: 8px; }
#production .photo-card img { object-position: center 48%; }
#construction .photo-card img { object-position: center 55%; }
.info-card { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding-top: 26px; }
.info-card h3 { margin-bottom: 16px; font-size: 32px; line-height: 1.15; }
.info-card p { max-width: 600px; margin-bottom: 26px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.info-card .more { margin-top: auto; }

/* Six original categories, with photographs large enough to see the product */
.products { background: var(--concrete); }
.products-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 44px; margin-bottom: 52px; }
.products-head > div { max-width: 970px; }
.products-head .big-title { max-width: 940px; }
.products-head .more { flex-shrink: 0; margin-bottom: 5px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 42px 32px; }
.product-card { min-width: 0; background: transparent; }
.product-card .img { overflow: hidden; aspect-ratio: 1.45; border-radius: 8px; background: #dce1da; }
.product-card .img img { transition: transform .5s cubic-bezier(.2,.65,.3,1); }
.product-card:hover .img img { transform: scale(1.035); }
.product-card .txt { padding-top: 20px; }
.product-card h4 { margin-bottom: 8px; font-size: 26px; font-weight: 500; line-height: 1.2; transition: color .2s; }
.product-card p { max-width: 390px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.product-card:hover h4 { color: #806007; }
.product-card:nth-child(3) img { object-position: center 58%; }
.product-card:nth-child(4) img { object-position: center 54%; }
.product-card:nth-child(5) img { object-position: center 78%; }
.product-card:nth-child(6) img { object-position: center 66%; }

/* BS-24: a single dark architectural spread */
.feature { padding-block: 96px; color: var(--on-dark); background: var(--dark); }
.feature-inner { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 64px; align-items: stretch; }
.feature-copy { align-self: center; padding-block: 12px; }
.feature .eyebrow { color: var(--muted-on-dark); }
.feature-copy h2 { margin-bottom: 24px; color: var(--accent); font-size: 72px; font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.feature-copy h3 { max-width: 400px; margin-bottom: 26px; font-size: 32px; font-weight: 500; line-height: 1.12; }
.feature-copy p { max-width: 520px; color: var(--muted-on-dark); font-size: 18px; line-height: 1.6; }
.feature-copy p + p { margin-top: 20px; }
.feature-copy .btn { margin-top: 32px; }
.feature-visual { min-height: 580px;
border-radius: 8px;
background-image:  url('/assets/media/bc-24.png');
background-position: center 50%;
    background-size: cover;
    background-repeat: no-repeat;}

/* Advantages use fine rules and quiet engineering symbols */
.benefits { background: var(--paper); }
.benefit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 0 100px; }
.benefit-grid > div:first-child { grid-row: 1 / span 3; }
.benefit-grid > div:first-child .big-title { max-width: 560px; }
.benefit-grid > div:first-child .small { max-width: 550px; }
.benefit-grid > div:first-child .btn { margin-top: 32px; }
.benefit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; padding-block: 30px; border-top: 1px solid var(--line); }
.icon { display: none; }
.benefit h3 { font-size: 28px; line-height: 1.15; }
.benefit p { grid-column: 1; max-width: 510px; color: var(--muted); font-size: 17px; line-height: 1.6; }

/* History: original archival and modern photographs, prominent original dates */
.history { background: var(--concrete); }
.history-wrap { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: 72px; align-items: center; }
.history-wrap > div { min-width: 0; }
.history .big-title { max-width: 530px; }
.history .small { max-width: 560px; }
.history .btn { margin-top: 32px; }
.history-visual { position: relative; display: grid; grid-template-columns: 55% 45%; height: 400px; overflow: hidden; border-radius: 8px; }
.history-visual img:first-child { object-position: center 50%; }
.history-visual img:nth-child(2) { object-position: center 44%; }
.history-visual::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(0deg, rgba(15, 21, 18, .62), transparent); }
.history-visual .stamp { position: absolute; z-index: 1; left: 28px; right: 28px; bottom: 22px; color: var(--white); font-size: clamp(42px, 4.05vw, 58px); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.timeline { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 26px; margin-top: 32px; }
.timeline > div { padding-top: 18px; border-top: 1px solid #a7afa6; }
.timeline strong { display: block; margin-bottom: 12px; font-size: 29px; font-weight: 500; line-height: 1.15; letter-spacing: -.045em; }
.timeline span { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* Client marks remain the original content; no boxes around every logo */
.clients { background: var(--paper); }
.clients .small { margin-top: 24px; }
.logo-row { margin-top: 44px; padding-block: 34px; border-block: 1px solid var(--line); }
.logo { display: flex; align-items: center; justify-content: center; min-height: 48px; color: #747c74; font-size: 20px; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; text-align: center; }

/* Existing project images, presented in a broad alternating grid */
.projects { padding-top: 24px; background: var(--paper); }
.projects-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 44px; margin-bottom: 44px; }
.projects-head .small { max-width: 750px; margin-top: 24px; }
.projects-head .more { flex-shrink: 0; margin-bottom: 4px; }
.projects-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.project { grid-column: span 5; height: 420px; overflow: hidden; border-radius: 8px; }
.project:nth-child(1), .project:nth-child(4) { grid-column: span 7; }

/* Three original contact panels */
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.location, .contact { min-width: 0; padding: 72px clamp(28px, 3.2vw, 48px); }
.location { background: var(--concrete); }
.location .mid-title, .contact .mid-title { font-size: clamp(34px, 2.8vw, 42px); line-height: 1.1; }
.location .small { font-size: 17px; }
.location .more { margin-top: 24px; }
.map { position: relative; min-height: 580px; overflow: hidden; background: #e0e5de; }
/* убираем декоративную заглушку */
.map::before,
.map::after {content: none;}
/* .map::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(30deg, transparent 48.8%, rgba(107, 119, 103, .14) 49%, rgba(107, 119, 103, .14) 50%, transparent 50.2%), linear-gradient(120deg, transparent 48.8%, rgba(107, 119, 103, .11) 49%, rgba(107, 119, 103, .11) 50%, transparent 50.2%); background-size: 160px 160px; }
.map::before { content: 'ЖБИ №1 Рыбацкое'; position: absolute; z-index: 1; top: 48%; left: 50%; width: max-content; max-width: calc(100% - 40px); transform: translate(-50%, -50%); padding: 15px 22px; border-left: 4px solid var(--accent); border-radius: 4px; color: var(--ink); background: var(--paper); font-size: 15px; font-weight: 500; } */
.map iframe {position: absolute;inset: 0;width: 100%;height: 100%;}
.contact { display: flex; flex-direction: column; align-items: flex-start; color: var(--on-dark); background: var(--dark); }
.contact .eyebrow { color: var(--muted-on-dark); }
.contact p { max-width: 520px; margin-top: 26px; color: var(--muted-on-dark); font-size: 17px; line-height: 1.6; }
.contact .btn { margin-top: 32px; }
.contact .slogan-small { margin-top: auto; padding-top: 48px; color: var(--muted-on-dark); font-size: 14px; line-height: 1.6; }
/* страница Продукция */
.product-hero{position: relative;min-height: 610px;display: flex;align-items: flex-end;overflow: hidden;color: var(--on-dark);background: var(--dark);}
.product-hero::before {content: '';position: absolute;inset: 0;background-image: linear-gradient(90deg, rgba(18, 23, 25, .90) 0%, rgba(18, 23, 25, .76) 38%, rgba(18, 23, 25, .25) 70%, rgba(18, 23, 25, .10) 100%), url(/assets/media/image1.png);background-size: cover;background-position: center 48%;
}
.hero-inner { position:relative; z-index:1; width:100%; padding-top:54px; padding-bottom:64px; }
.breadcrumbs { margin-bottom:88px; color:rgba(245,246,244,.72); font-size:13px; letter-spacing:.01em; }
.breadcrumbs a:hover { color:var(--white); }
.hero-copy { max-width:760px; }
.product-hero h1 { font-size:clamp(62px,6.8vw,98px); font-weight:500; line-height:.94; letter-spacing:-.06em; }
.hero-lead { max-width:640px; margin-top:26px; font-size:clamp(22px,2vw,30px); line-height:1.25; letter-spacing:-.03em; }
.hero-text { max-width:650px; margin-top:20px; color:var(--muted-on-dark); font-size:17px; line-height:1.55; }
.hero-actions { display:flex; flex-wrap:wrap; gap:14px; margin-top:34px; }
.product-hero .btn:not(.primary) { border-color:rgba(255,255,255,.58); color:var(--white); }
.product-hero .btn:not(.primary):hover { border-color:var(--white); background:var(--white); color:var(--ink); }
/* Search */
.catalog-search { padding-block:34px; background:var(--paper); border-bottom:1px solid var(--line); }
.search-layout { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(320px,.65fr); gap:40px; align-items:center; }
.search-title { margin-bottom:14px; font-size:22px; line-height:1.25; letter-spacing:-.025em; }
.searchbar { display:flex; min-height:58px; border:1px solid var(--line); border-radius:4px; background:var(--white); overflow:hidden; }
.searchbar input { flex:1; min-width:0; padding:0 20px; border:0; outline:0; color:var(--ink); background:transparent; font-size:15px; }
.searchbar input::placeholder { color:#92989a; }
.searchbar button { min-width:116px; border:0; background:var(--accent); color:var(--ink); font-size:14px; font-weight:500; cursor:pointer; }
.searchbar button:hover { background:var(--accent-hover); }
.resource-quick { display:grid; grid-template-columns:52px 1fr 22px; gap:18px; align-items:center; min-height:94px; padding:20px 22px; background:var(--concrete); border-radius:4px; }
.resource-icon { display:grid; place-items:center; width:52px; height:52px; border:1px solid #bfc5c3; font-size:23px; }
.resource-quick strong { display:block; font-size:16px; font-weight:500; }
.resource-quick span { display:block; margin-top:3px; color:var(--muted); font-size:13px; line-height:1.4; }
.resource-quick .arrow { color:var(--ink); font-size:24px; }
.search-message { display:none; margin-top:16px; color:var(--muted); font-size:14px; }
