/* =========================================================
   Алтай-СтройГрупп — фирменный стиль
   Индустриальная палитра: бетон, сталь, ржавчина, сигнальный жёлтый
   ========================================================= */

:root {
  --concrete: #8d8f87;
  --concrete-light: #eeece5;
  --paper: #f3f1ea;
  --ink: #211f1c;
  --steel: #33424f;
  --steel-dark: #202a33;
  --rust: #b0501f;
  --rust-dark: #8a3c14;
  --yellow: #f0b429;
  --line: #d8d5cb;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-logo: 'Russo One', 'Oswald', sans-serif;
  --font-body: 'PT Sans', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--steel-dark);
  letter-spacing: 0.2px;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 5%; }

/* ---------- blueprint grid texture (utility) ---------- */
.blueprint-bg {
  background-color: var(--steel-dark);
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 34px 34px;
}

/* ---------- header ---------- */
header.site-header {
  background: var(--steel-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--yellow);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 5%;
  max-width: 1180px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-logo);
  font-size: 1.15em;
  letter-spacing: 0.3px;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo::before {
  content: "";
  width: 12px; height: 12px;
  background: var(--yellow);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.logo span { color: var(--yellow); }

nav.main-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }

nav.main-nav a {
  font-family: var(--font-display);
  color: #c9cfd4;
  text-decoration: none;
  padding: 10px 14px;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
nav.main-nav a:hover { color: #fff; border-color: rgba(240,180,41,0.5); }
nav.main-nav a.active { color: var(--yellow); border-color: var(--yellow); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #4a5762;
  color: #fff;
  padding: 8px 12px;
  font-size: 1.1em;
  cursor: pointer;
}

/* ---------- asymmetric hero ---------- */
.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--steel-dark);
  position: relative;
  overflow: hidden;
  min-height: 560px;
}
.hero-split.small { min-height: 320px; }

.hero-text {
  padding: 64px 4% 64px 6%;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-kicker {
  font-family: var(--font-display);
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8em;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-kicker::before { content:""; width: 26px; height: 2px; background: var(--yellow); }

.hero-text h1 {
  color: #fff;
  font-size: 2.6em;
  max-width: 620px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero-split.small .hero-text h1 { font-size: 2.1em; }

.hero-text p.lead {
  max-width: 480px;
  color: #cfd4d8;
  margin-bottom: 30px;
  font-size: 1.08em;
}

.breadcrumbs { font-size: 0.85em; color: #93a0aa; margin-bottom: 14px; }
.breadcrumbs a { color: #93a0aa; text-decoration: none; }
.breadcrumbs a:hover { color: var(--yellow); }

.hero-media {
  position: relative;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0% 100%);
  min-height: 100%;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(32,42,51,0.35) 0%, rgba(32,42,51,0) 30%);
}
.hero-split::before {
  content: "";
  position: absolute;
  left: calc(53.5% - 3px);
  top: 0; bottom: 0;
  width: 6px;
  background: var(--yellow);
  z-index: 3;
  transform: skewX(-8deg);
}

@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; min-height: auto; }
  .hero-split::before { display: none; }
  .hero-media { clip-path: none; order: -1; }
  .hero-media img { min-height: 220px; }
  .hero-text { padding: 40px 6%; }
  .hero-text h1 { font-size: 1.7em; }
}

/* ---------- buttons ---------- */
.btn-industrial {
  display: inline-block;
  background: var(--rust);
  color: #fff;
  padding: 14px 30px;
  text-decoration: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.88em;
  font-weight: 600;
  border: 2px solid var(--rust);
  transition: background 0.15s, border-color 0.15s;
}
.btn-industrial:hover { background: var(--rust-dark); border-color: var(--rust-dark); }
.btn-industrial.outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.btn-industrial.outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-industrial.dark { border-color: var(--steel-dark); color: var(--steel-dark); background: transparent; }
.btn-industrial.dark:hover { background: var(--steel-dark); color: #fff; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- stat ticker (home hero only) ---------- */
.stat-ticker {
  position: relative;
  padding: 30px 5%;
  clip-path: polygon(0 14px, 100% 0, 100% calc(100% - 14px), 0 100%);
  margin: -14px 0;
  z-index: 4;
}
.stat-ticker-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 10px 28px;
  color: #dfe3e6;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.92em;
}
.stat-ticker-inner strong {
  color: var(--yellow);
  font-size: 1.5em;
  margin-right: 6px;
}
.stat-ticker-inner .sep { color: #556069; }

/* ---------- sections ---------- */
section { padding: 74px 5% 70px; position: relative; }
section.alt { background: var(--concrete-light); }
.section-inner { max-width: 1180px; margin: 0 auto; }

/* varied section intros */
.intro-side {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.intro-side .label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--rust);
  font-size: 0.85em;
  font-weight: 600;
  border-left: 3px solid var(--rust);
  padding-left: 14px;
  align-self: start;
}
.intro-side h2 { font-size: 1.9em; margin-bottom: 10px; text-transform: uppercase; }
.intro-side p { color: #52514c; max-width: 620px; }

.intro-center { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.intro-center .label {
  font-family: var(--font-display);
  color: var(--rust);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.82em;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 10px;
}
.intro-center h2 { font-size: 1.85em; text-transform: uppercase; margin-bottom: 10px; }
.intro-center p { color: #52514c; }

.intro-big-number {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 40px;
}
.intro-big-number .num {
  font-family: var(--font-logo);
  font-size: 4.2em;
  color: var(--concrete);
  line-height: 0.8;
}
.intro-big-number h2 { font-size: 1.85em; text-transform: uppercase; margin-bottom: 8px; }
.intro-big-number p { color: #52514c; max-width: 560px; }

/* ---------- asymmetric feature grid (services) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 20px;
}
.feature-grid .fcard {
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--line);
}
.feature-grid .fcard img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.feature-grid .fcard:hover img { transform: scale(1.06); }
.feature-grid .fcard::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,25,31,0.88) 0%, rgba(20,25,31,0.15) 65%, rgba(20,25,31,0) 100%);
  z-index: 1;
}
.feature-grid .fcard .fbody { position: relative; z-index: 2; padding: 20px 22px; }
.feature-grid .fcard .tag {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.72em;
  color: var(--yellow);
  display: block;
  margin-bottom: 6px;
}
.feature-grid .fcard h3 { color: #fff; font-size: 1.15em; text-transform: none; margin-bottom: 6px; }
.feature-grid .fcard p { font-size: 0.85em; color: #d3d6d9; display: none; }
.feature-grid .fcard.lg { grid-column: span 2; grid-row: span 2; }
.feature-grid .fcard.lg h3 { font-size: 1.5em; }
.feature-grid .fcard.lg p { display: block; }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .feature-grid .fcard.lg { grid-column: span 2; grid-row: span 1; min-height: 260px; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid .fcard.lg { grid-column: span 1; }
}

/* ---------- staggered portfolio grid ---------- */
.stagger-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.stagger-grid .gitem { position: relative; overflow: hidden; border: 1px solid var(--line); }
.stagger-grid .gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; display:block; }
.stagger-grid .gitem:hover img { transform: scale(1.06); }
.stagger-grid .gitem:nth-child(3n+1) { grid-row: span 2; }
.stagger-grid .gitem:nth-child(3n+1) img { min-height: 100%; }
.stagger-grid .gitem .overlay {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(20,25,31,0.92), rgba(20,25,31,0));
  padding: 40px 16px 14px;
  color: #fff;
}
.stagger-grid .gitem .overlay h4 { color: #fff; font-size: 1em; text-transform: none; margin-bottom: 2px; }
.stagger-grid .gitem .overlay span { font-size: 0.78em; color: #cfd3d9; font-family: var(--font-display); letter-spacing: 0.3px; }
@media (max-width: 860px) {
  .stagger-grid { grid-template-columns: repeat(2, 1fr); }
  .stagger-grid .gitem:nth-child(3n+1) { grid-row: span 1; }
}
@media (max-width: 560px) {
  .stagger-grid { grid-template-columns: 1fr; }
}

/* ---------- numbered steps (services page) ---------- */
.step-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.step-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 30px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.step-row .step-num {
  font-family: var(--font-logo);
  font-size: 2.6em;
  color: var(--rust);
  line-height: 1;
}
.step-row h3 { font-size: 1.15em; margin-bottom: 8px; }
.step-row p { color: #52514c; max-width: 560px; }
.step-row:nth-child(even) { background: rgba(141,143,135,0.06); }

/* ---------- classic cards (generic use) ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.card {
  background: #fff;
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.card img { width: 100%; height: 180px; object-fit: cover; }
.card .card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin-bottom: 10px; font-size: 1.1em; }
.card p { font-size: 0.93em; color: #55534d; flex: 1; }

/* ---------- values / feature blocks (about) ---------- */
.values-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.values-strip .vitem {
  padding: 32px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.values-strip .vitem .vnum {
  font-family: var(--font-logo);
  color: var(--concrete);
  font-size: 1.6em;
  display: block;
  margin-bottom: 14px;
}
.values-strip .vitem h3 { font-size: 1em; margin-bottom: 8px; }
.values-strip .vitem p { font-size: 0.88em; color: #55534d; }
@media (max-width: 860px) { .values-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values-strip { grid-template-columns: 1fr; } }

/* ---------- timeline (about) ---------- */
.timeline { position: relative; margin-top: 10px; border-left: 3px solid var(--rust); padding-left: 30px; }
.timeline-item { position: relative; margin-bottom: 34px; }
.timeline-item::before {
  content: "";
  position: absolute; left: -37.5px; top: 3px;
  width: 12px; height: 12px;
  background: var(--yellow);
  transform: rotate(45deg);
}
.timeline-item .year { font-family: var(--font-display); color: var(--rust); font-weight: 700; font-size: 0.95em; }
.timeline-item h4 { margin: 4px 0 4px; font-size: 1.08em; }
.timeline-item p { color: #52514c; font-size: 0.93em; }

/* ---------- split with image ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split img { border: 1px solid var(--line); }
.split h2 { margin-bottom: 16px; text-transform: uppercase; }
.split p { color: #4c4c4c; margin-bottom: 14px; }
.split ul { margin: 16px 0 0; padding-left: 20px; color: #4c4c4c; }
.split ul li { margin-bottom: 8px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .split-media { order: -1; } }

/* ---------- gallery filters (objects page) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filters button {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--steel-dark);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 20px;
  font-size: 0.82em;
  cursor: pointer;
  transition: all 0.15s;
}
.filters button:hover { border-color: var(--rust); color: var(--rust); }
.filters button.active { background: var(--steel-dark); color: #fff; border-color: var(--steel-dark); }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
.contact-info-card { background: var(--steel-dark); color: #fff; padding: 36px 30px; }
.contact-info-card h3 { color: #fff; margin-bottom: 22px; font-size: 1.1em; text-transform: uppercase; }
.contact-row { display: flex; gap: 14px; margin-bottom: 24px; align-items: flex-start; }
.contact-row .ic { width: 34px; height: 34px; background: rgba(240,180,41,0.18); color: var(--yellow); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-row strong { display: block; font-family: var(--font-display); font-size: 0.78em; color: #93a0aa; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 3px; }
.contact-row span, .contact-row a { color: #fff; text-decoration: none; font-size: 0.98em; }

.map-box {
  background: var(--concrete-light);
  min-height: 220px;
  display: flex; align-items: center; justify-content: center;
  color: #6b6a63;
  font-size: 0.9em;
  border: 1px dashed var(--line);
  margin-top: 24px;
  text-align: center;
  padding: 20px;
}

form.contact-form { background: #fff; border: 1px solid var(--line); padding: 32px; }
form.contact-form h3 { text-transform: uppercase; margin-bottom: 22px; }
form.contact-form .field { margin-bottom: 18px; }
form.contact-form label { display: block; font-family: var(--font-display); font-size: 0.82em; font-weight: 500; text-transform: uppercase; letter-spacing: 0.4px; color: var(--steel-dark); margin-bottom: 6px; }
form.contact-form input, form.contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  font-family: var(--font-body); font-size: 0.95em; background: #fbfbfa;
}
form.contact-form input:focus, form.contact-form textarea:focus { outline: none; border-color: var(--rust); }
form.contact-form textarea { resize: vertical; min-height: 110px; }
form.contact-form .hint { font-size: 0.8em; color: #7a786f; margin-top: 6px; }

/* ---------- CTA band ---------- */
.cta {
  background: var(--steel-dark);
  color: #fff;
  padding: 60px 5%;
  text-align: center;
  clip-path: polygon(0 18px, 100% 0, 100% 100%, 0 calc(100% - 18px));
}
.cta h2 { color: #fff; font-size: 1.7em; margin-bottom: 12px; text-transform: uppercase; }
.cta p { color: #b9c0c6; max-width: 560px; margin: 0 auto 26px; }

/* ---------- footer ---------- */
footer.site-footer { background: #161e25; color: #8d9aa3; padding: 54px 5% 24px; font-size: 0.9em; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; max-width: 1180px; margin: 0 auto 30px; }
footer h4 { color: #fff; margin-bottom: 14px; font-size: 0.9em; text-transform: uppercase; letter-spacing: 0.5px; font-family: var(--font-display); font-weight: 500; }
footer .footer-logo { font-family: var(--font-logo); color: #fff; font-size: 1.1em; margin-bottom: 12px; display: block; }
footer .footer-logo span { color: var(--yellow); }
footer p.about-text { color: #6d7981; font-size: 0.92em; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 9px; }
footer ul li a { color: #8d9aa3; text-decoration: none; }
footer ul li a:hover { color: var(--yellow); }
.copy { text-align: center; padding-top: 22px; border-top: 1px solid #232c33; max-width: 1180px; margin: 0 auto; color: #5b656c; font-size: 0.85em; }

@media (max-width: 860px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr; } }

/* ---------- responsive nav ---------- */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .intro-side { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 700px) {
  .nav-toggle { display: inline-block; }
  nav.main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 14px;
    border-top: 1px solid #2c3542;
    padding-top: 10px;
  }
  nav.main-nav.open { display: flex; }
  section { padding: 50px 6%; }
}
