/* СУ №11 — одностраничник */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #e8590c;
  --dark: #14171c;
  --dark-2: #1b1f26;
  --text: #23272f;
  --muted: #6b7280;
  --light: #f6f7f9;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--light);
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(20, 23, 28, .92);
  transition: background .3s, box-shadow .3s;
}
.site-header.sticky { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 700; }
.site-header.sticky .brand { color: var(--dark); }
.logo { height: 40px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: #e5e7eb; text-decoration: none; font-size: 15px; transition: color .2s; }
.site-header.sticky .nav a { color: var(--dark); }
.nav a:hover { color: var(--accent); }
.header-phone { color: var(--accent); font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }
.site-header.sticky .nav-toggle { color: var(--dark); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .45;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 20px 60px;
  max-width: 900px;
}
.hero-content h1 {
  font-size: clamp(28px, 4.5vw, 52px);
  line-height: 1.2;
  margin-bottom: 18px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn .8s ease-out .2s forwards;
}
.hero-content .hero-tagline {
  font-size: clamp(17px, 2vw, 24px);
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn .8s ease-out .5s forwards;
}
.hero-content .hero-tagline[style] { opacity: 0; }
.hero-content .btn {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn .8s ease-out .8s forwards;
}

@keyframes heroFadeIn {
  to { opacity: .9; transform: translateY(0); }
}
.hero-content h1 { animation-name: heroFadeInTitle; }
@keyframes heroFadeInTitle {
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 34px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background .2s, transform .2s;
}
.btn:hover { background: #d14a05; transform: translateY(-2px); }

/* Sections */
.section { padding: 72px 0; }
.section h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 34px; position: relative; }
.section h2::after {
  content: "";
  display: block;
  width: 64px; height: 4px;
  background: var(--accent);
  margin-top: 12px;
  border-radius: 2px;
}

/* О компании */
.about { background: #fff; }
.about-text { max-width: 900px; font-size: 17px; color: var(--muted); margin-bottom: 40px; }
.advantages { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.advantage {
  background: var(--light);
  border-left: 4px solid var(--accent);
  padding: 26px 22px;
  border-radius: 6px;
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
  overflow: hidden;
}
.advantage::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--accent);
}
.advantage:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,.1);
}
.advantage .adv-icon {
  display: block;
  font-size: 28px;
  margin-bottom: 10px;
  color: var(--accent);
}
.advantage h3 { font-size: 18px; margin-bottom: 8px; color: var(--dark); }
.advantage p { font-size: 15px; color: var(--muted); }

/* Портфолио */
.portfolio { background: var(--dark); color: #fff; }
.portfolio .lead { color: #c7ccd4; max-width: 860px; margin-bottom: 34px; }
.objects {
  list-style: none;
  margin-top: 36px;
  columns: 2;
  column-gap: 40px;
}
.objects li {
  padding: 7px 0;
  color: #c7ccd4;
  break-inside: avoid;
  border-bottom: 1px dashed #333a44;
}
.objects li::before { content: "— "; color: var(--accent); }

/* Slider */
.slider { position: relative; overflow: hidden; border-radius: 8px; }
.slider-track { display: flex; transition: transform .5s ease; }
.slide { min-width: 100%; }
.slide img { width: 100%; height: 480px; object-fit: cover; display: block; }
.slide-caption { padding: 12px; text-align: center; color: #c7ccd4; background: var(--dark-2); }
.slider-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: rgba(20,23,28,.7);
  color: #fff;
  border: 0;
  font-size: 26px;
  width: 48px; height: 64px;
  cursor: pointer;
  border-radius: 4px;
  transition: background .2s;
}
.slider-btn:hover { background: var(--accent); }
.slider-btn.prev { left: 8px; }
.slider-btn.next { right: 8px; }
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 14px 0 4px;
}
.slider-dots button {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: transparent;
  cursor: pointer;
  transition: background .2s, transform .2s;
  padding: 0;
}
.slider-dots button.active {
  background: var(--accent);
  transform: scale(1.2);
}
.slider-counter {
  text-align: center;
  color: #c7ccd4;
  font-size: 14px;
  padding: 8px 0 0;
  background: var(--dark-2);
}

/* Контакты */
.contacts { background: #fff; }
.contacts-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 36px; align-items: start; }
.contact-items p { margin-bottom: 14px; font-size: 17px; }
.contact-items strong { display: inline-block; min-width: 130px; color: var(--dark); }
.contact-items a { color: var(--accent); text-decoration: none; }
.map-wrap { border-radius: 8px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,.12); }
.map-wrap iframe { display: block; aspect-ratio: 16/9; height: auto; width: 100%; }

/* Footer */
.site-footer { background: var(--dark-2); color: #9aa1ac; padding: 28px 0; }
.footer-notice { font-size: 13px; margin-bottom: 12px; }
.footer-copy { font-size: 14px; color: #e5e7eb; }

/* Mobile */
@media (max-width: 900px) {
  .contacts-grid { grid-template-columns: 1fr; }
  .objects { columns: 1; }
}
@media (max-width: 750px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--dark); flex-direction: column; padding: 16px 20px; gap: 14px; }
  .site-header.sticky .nav { background: #fff; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; margin-left: auto; }
  .header-phone { display: none; }
  .slide img { height: 260px; }
}
