/* === Дорнит-Строй — сайт, v1 === */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f4f0;
  --bg-dark: #0e1014;
  --bg-dark-2: #15181e;
  --ink: #15181e;
  --ink-muted: #5c6370;
  --line: #e6e4de;
  --line-dark: #24272e;
  --accent: #f08a1b;
  --accent-2: #ffb04a;
  --accent-ink: #0e1014;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 40px -20px rgba(15, 17, 22, .35);
  --container: 1200px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Manrope", var(--font);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  line-height: 1.12;
}

h1 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 14px;
}

.accent { color: var(--accent); }
.muted  { color: var(--ink-muted); font-size: .92rem; }

/* === Buttons === */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, color .2s ease, border-color .2s ease;
  border: 1px solid transparent;
  user-select: none;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--primary:hover { background: var(--accent-2); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: #fff; }

.btn--outline-light {
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.btn--outline-light:hover { background: #fff; color: var(--bg-dark); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--bg-soft); }

/* === Header === */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand__text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.brand__text small {
  font-size: .72rem;
  color: var(--ink-muted);
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 28px;
}
.nav a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  opacity: .8;
  transition: opacity .15s ease, color .15s ease;
}
.nav a:hover { opacity: 1; color: var(--accent); }

.header-phone { white-space: nowrap; }

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 10px;
  margin-left: auto;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* === Hero === */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  color: #fff;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(240,138,27,.35), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(255,176,74,.18), transparent 60%),
    url('../img/hero.jpg') center/cover no-repeat;
  opacity: .7;
  filter: saturate(1.05) contrast(1.05);
  z-index: -1;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,16,20,.2) 0%, rgba(14,16,20,.85) 90%);
}

.hero__inner {
  padding: 100px 24px 110px;
}
.hero .eyebrow { color: var(--accent-2); }
.hero__title {
  color: #fff;
  max-width: 900px;
}
.hero__lead {
  max-width: 640px;
  font-size: 1.1rem;
  color: rgba(255,255,255,.78);
  margin-bottom: 32px;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero .btn--outline {
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.hero .btn--outline:hover { background: #fff; color: var(--bg-dark); }

.hero__facts {
  list-style: none;
  padding: 24px 0 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero__facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__facts b {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}
.hero__facts span {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  max-width: 180px;
}

/* === Sections base === */

.section {
  padding: 96px 0;
}
.section--dark {
  background: var(--bg-dark);
  color: #fff;
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section__lead { color: rgba(255,255,255,.7); }

.section__head {
  max-width: 740px;
  margin: 0 auto 48px;
  text-align: center;
}
.section__lead {
  font-size: 1.05rem;
  color: var(--ink-muted);
  margin: 0;
}

/* === Services === */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #d8d5cd;
}

.service-card__img {
  aspect-ratio: 16 / 10;
  background: var(--bg-soft) center/cover no-repeat;
  position: relative;
}
.service-card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.25));
}

.service-card__body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.service-card__num {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
}

.service-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.22rem;
}

.badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 3px 8px;
  border-radius: 999px;
}

.service-card p {
  color: var(--ink-muted);
  font-size: .95rem;
  margin: 0;
}

.tick-list {
  list-style: none;
  padding: 10px 0 0;
  margin: auto 0 0;
  border-top: 1px dashed var(--line);
  font-size: .9rem;
}
.tick-list li {
  padding: 6px 0 6px 22px;
  position: relative;
  color: var(--ink);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(240,138,27,.18);
}

.service-card--accent {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset, 0 20px 50px -30px rgba(240,138,27,.55);
}

.service-card--cta {
  background: linear-gradient(140deg, var(--bg-dark) 0%, #1b1f27 100%);
  color: #fff;
  border-color: transparent;
  display: flex;
  justify-content: center;
}
.service-card--cta .service-card__body {
  gap: 14px;
  padding: 36px;
}
.service-card--cta h3 { color: #fff; font-size: 1.35rem; }
.service-card--cta p { color: rgba(255,255,255,.7); }
.service-card--cta .btn { align-self: flex-start; margin-top: 6px; }

/* === About === */

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-grid__text p { color: rgba(255,255,255,.78); }
.about-grid__text .btn { margin-top: 8px; }

.about-card {
  background: linear-gradient(140deg, #1b1f27 0%, #2a2f3a 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(closest-side, rgba(240,138,27,.45), transparent);
}
.about-card__top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.7);
  margin-bottom: 22px;
}
.about-card__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(240,138,27,.2);
}
.about-card blockquote {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.35;
  font-weight: 600;
}
.about-card__sign { display: flex; flex-direction: column; }
.about-card__sign small { color: rgba(255,255,255,.55); }

/* === Advantages === */

.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.adv-card {
  padding: 28px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  transition: transform .2s ease, background .2s ease;
}
.adv-card:hover {
  transform: translateY(-3px);
  background: #efece3;
}
.adv-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #fff;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid var(--line);
}
.adv-card h3 { font-size: 1.1rem; }
.adv-card p { margin: 0; color: var(--ink-muted); font-size: .95rem; }

/* === Numbers === */

.section--numbers {
  padding: 80px 0;
  background: var(--accent);
  color: var(--accent-ink);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.numbers-grid > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border-right: 1px solid rgba(14,16,20,.18);
}
.numbers-grid > div:last-child { border-right: 0; }
.numbers__val {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
}
.numbers__val span {
  font-size: .6em;
  color: rgba(14,16,20,.6);
}
.numbers__lbl {
  font-size: .95rem;
  color: rgba(14,16,20,.75);
  max-width: 220px;
}

/* === Contacts === */

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contacts-info p { color: rgba(255,255,255,.75); }

.contacts-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contacts-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.1);
}
.contacts-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }
.contacts-list__lbl {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .72rem;
  color: rgba(255,255,255,.55);
}
.contacts-list a:hover { color: var(--accent-2); }

.contacts-form {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: .82rem;
  color: var(--ink-muted);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240,138,27,.18);
}
.field textarea { resize: vertical; min-height: 90px; }

.field-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--ink-muted);
  cursor: pointer;
}
.check input { accent-color: var(--accent); width: 16px; height: 16px; }

.form-ok {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 16px;
  background: #e9f7ee;
  border: 1px solid #b7e5c3;
  color: #1d6a3a;
  border-radius: 10px;
  font-size: .92rem;
}

/* === Footer === */

.site-footer {
  background: #0a0c10;
  color: rgba(255,255,255,.7);
  padding: 64px 0 24px;
  font-size: .92rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand--footer {
  color: #fff;
  margin-bottom: 14px;
}
.brand--footer strong { color: #fff; }
.footer-inner h4 {
  color: #fff;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 0 0 16px;
}
.footer-inner a {
  display: block;
  padding: 4px 0;
  color: rgba(255,255,255,.65);
}
.footer-inner a:hover { color: var(--accent-2); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}
.to-top { color: rgba(255,255,255,.65); }
.to-top:hover { color: var(--accent-2); }

/* === Breadcrumbs === */

.breadcrumbs {
  padding: 16px 0;
  font-size: .85rem;
  color: var(--ink-muted);
}
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.breadcrumbs li + li::before {
  content: "/";
  color: var(--line);
  margin-right: 4px;
}
.breadcrumbs a { color: var(--ink-muted); transition: color .15s ease; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* === Service page hero === */

.service-hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  color: #fff;
  isolation: isolate;
}
.service-hero__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: .45;
  z-index: -1;
}
.service-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,16,20,.3) 0%, rgba(14,16,20,.88) 90%);
}
.service-hero__inner {
  padding: 72px 24px 64px;
  max-width: var(--container);
  margin: 0 auto;
}
.service-hero__inner .eyebrow { color: var(--accent-2); }
.service-hero__inner h1 {
  color: #fff;
  max-width: 800px;
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
}
.service-hero__lead {
  max-width: 620px;
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 0;
}

/* === Service page content === */

.service-content { padding: 64px 0 80px; }
.service-content h2 { margin-top: 1.8em; margin-bottom: .6em; }
.service-content h2:first-child { margin-top: 0; }
.service-content p {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 800px;
}
.service-content ul {
  padding-left: 0;
  list-style: none;
}
.service-content ul li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--ink);
  font-size: .95rem;
}
.service-content ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(240,138,27,.18);
}
.service-content__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

/* === Sidebar facts === */

.sidebar-facts {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 96px;
}
.sidebar-facts h3 { font-size: 1.05rem; margin-bottom: 18px; }
.sidebar-facts ul { padding: 0; margin: 0; list-style: none; }
.sidebar-facts li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.sidebar-facts li:first-child { border-top: 0; padding-top: 0; }
.sidebar-facts .fact-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--accent);
  min-width: 48px;
}

/* === CTA banner === */

.cta-banner {
  background: linear-gradient(140deg, var(--bg-dark) 0%, #1b1f27 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p {
  color: rgba(255,255,255,.7);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 28px;
}

/* === Compact contacts === */

.contacts-compact {
  padding: 48px 0;
  background: var(--bg-soft);
}
.contacts-compact__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.contacts-compact__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contacts-compact__label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-muted);
}
.contacts-compact__value {
  font-weight: 600;
  font-size: 1rem;
}
.contacts-compact a:hover { color: var(--accent); }

/* === Service card link === */

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap .2s ease;
}
.service-card__link:hover { gap: 10px; }

/* === Responsive === */

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contacts-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .service-content__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav, .header-phone { display: none; }
  .burger { display: block; }
  .site-header.nav-open .nav {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 20px;
    gap: 14px;
  }
  .hero__inner { padding: 64px 24px 80px; }
  .hero__facts { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .numbers-grid > div:nth-child(2) { border-right: 0; }
  .contacts-form { grid-template-columns: 1fr; padding: 24px; }
  .contacts-list li { grid-template-columns: 1fr; gap: 4px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .section { padding: 72px 0; }
  .service-hero__inner { padding: 48px 24px 40px; }
  .contacts-compact__inner { flex-direction: column; align-items: flex-start; }
}
