
/* ------------------------------------------------------------------ *
 * Сайт ООО «Лазерная техника». Корпоративная тема:
 * тёмно-синий (приборостроение) + «лазерный» красный акцент.
 * ------------------------------------------------------------------ */

:root {
  --brand:        #0e2a47;
  --brand-dark:   #081a2d;
  --brand-light:  #1d4470;
  --accent:       #c8102e;
  --accent-dark:  #9e0c24;
  --text:         #1c2733;
  --muted:        #5b6b7c;
  --line:         #dfe5ec;
  --bg:           #ffffff;
  --bg-alt:       #f4f7fa;
  --radius:       10px;
  --shadow:       0 2px 10px rgba(14, 42, 71, .08);
  --container:    1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--brand-light); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }

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

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: #fff;
  padding: 8px 14px;
  border-radius: var(--radius);
}

/* --------------------------- Шапка --------------------------------- */

.site-header {
  background: var(--brand);
  color: #fff;
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 84px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
}
.brand:hover { color: #fff; text-decoration: none; }

.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-weight: 700; font-size: 18px; letter-spacing: .02em; }
.brand__city { font-size: 13px; color: #a9bdd4; }

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav__link {
  color: #dbe6f2;
  font-size: 15px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav__link:hover {
  color: #fff;
  text-decoration: none;
  border-bottom-color: var(--accent);
}

.header-phone {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}
.header-phone:hover { color: #fff; }

/* --------------------------- Hero ---------------------------------- */

.hero {
  background:
    linear-gradient(135deg, rgba(8, 26, 45, .96), rgba(29, 68, 112, .92)),
    radial-gradient(circle at 80% 20%, rgba(200, 16, 46, .35), transparent 55%);
  background-color: var(--brand-dark);
  color: #fff;
}

.hero__inner { padding: 72px 24px 78px; max-width: 900px; }

.hero__eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 13px;
  color: #9fb6cf;
}

.hero__title {
  margin: 0 0 18px;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
}

.hero__lead {
  margin: 0 0 28px;
  font-size: 18px;
  color: #d6e2ee;
  max-width: 760px;
}

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

/* --------------------------- Кнопки -------------------------------- */

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; }

.btn--ghost { border: 1px solid rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* --------------------------- Секции -------------------------------- */

.section { padding: 56px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section__title {
  margin: 0 0 10px;
  font-size: 28px;
  color: var(--brand);
  position: relative;
  padding-bottom: 12px;
}
.section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: var(--accent);
}

.section__subtitle { margin: 0 0 28px; color: var(--muted); max-width: 720px; }

/* --------------------------- Факты --------------------------------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.fact {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.fact__value { font-size: 32px; font-weight: 700; color: var(--brand); line-height: 1.1; }
.fact__label { color: var(--muted); font-size: 15px; }

/* --------------------------- Карточки ------------------------------ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(14, 42, 71, .13); }

.card__media {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: 16px;
  text-align: center;
}
.card__media img { max-height: 190px; object-fit: contain; }

.card__body { padding: 20px 22px; flex: 1 1 auto; }

.card__title { margin: 0 0 4px; font-size: 21px; color: var(--brand); }
.card__subtitle { margin: 0 0 12px; color: var(--accent); font-size: 14px; font-weight: 600; }
.card__text { margin: 0 0 14px; color: var(--text); }

.card__footer {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: #fbfcfe;
}

.link-more { font-weight: 600; }

/* --------------------------- Документы ----------------------------- */

.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list--wide { max-width: 760px; }

.doc-list__item {
  position: relative;
  padding: 6px 0 6px 26px;
  font-size: 15px;
}
.doc-list__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--accent);
}
.doc-list__item--photo::before { background: var(--brand-light); border-radius: 50%; }
.doc-list__item--archive::before { background: #d98324; }
.doc-list__item--link::before { background: transparent; border: 2px solid var(--brand-light); border-radius: 50%; }

.doc-list__note { display: block; color: var(--muted); font-size: 14px; }

.doc-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.doc-group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.doc-group__title { margin: 0 0 10px; font-size: 18px; color: var(--brand); }

/* --------------------------- Партнёры ------------------------------ */

.partners {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

.partners__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.partners__item img {
  max-height: 72px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .8;
  transition: filter .15s, opacity .15s;
}
.partners__item:hover img { filter: none; opacity: 1; }

/* --------------------------- Контакты ------------------------------ */

.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.contacts__block {
  border-left: 3px solid var(--brand-light);
  padding: 4px 0 4px 16px;
}
.contacts__label { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.contacts__value { font-size: 17px; font-weight: 600; color: var(--brand); }

.email-image { vertical-align: middle; }

/* --------------------------- Страница изделия ---------------------- */

.page-head {
  background: var(--brand);
  color: #fff;
  padding: 34px 0 30px;
  border-bottom: 3px solid var(--accent);
}
.page-head__title { margin: 10px 0 6px; font-size: 32px; }
.page-head__subtitle { margin: 0; color: #c3d3e4; }

.breadcrumbs { font-size: 14px; color: #a9bdd4; }
.breadcrumbs a { color: #d8e5f2; }
.breadcrumbs__sep { margin: 0 8px; }

.article { max-width: 900px; }
.article__lead {
  font-size: 19px;
  font-weight: 600;
  color: var(--brand);
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin: 0 0 24px;
}
.article__section { margin-bottom: 26px; }
.article__title { font-size: 22px; color: var(--brand); margin: 0 0 10px; }

.article__figure {
  float: right;
  margin: 0 0 20px 28px;
  max-width: 340px;
  text-align: center;
}
.article__figure img { border: 1px solid var(--line); border-radius: var(--radius); }
.article__figure figcaption { color: var(--muted); font-size: 14px; padding-top: 6px; }

.bullets { margin: 0 0 12px; padding-left: 20px; }
.bullets li { margin-bottom: 6px; }

.back-link { margin-top: 26px; }

/* --------------------------- Ошибка -------------------------------- */

.error-page { text-align: center; padding: 80px 0; }
.error-page__code { font-size: 76px; font-weight: 700; color: var(--accent); line-height: 1; }
.error-page__title { margin: 8px 0 10px; color: var(--brand); }
.error-page__text { color: var(--muted); }
.error-page__actions { display: flex; gap: 14px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.error-page .btn--ghost { border-color: var(--brand); color: var(--brand); }
.error-page .btn--ghost:hover { background: var(--brand); color: #fff; }

/* --------------------------- Подвал -------------------------------- */

.site-footer {
  background: var(--brand-dark);
  color: #c3d3e4;
  padding: 40px 0 18px;
  margin-top: 0;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.site-footer__title { color: #fff; font-weight: 700; margin-bottom: 10px; }
.site-footer__text { margin: 0 0 6px; font-size: 15px; }
.site-footer a { color: #dce8f5; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 26px;
  padding-top: 14px;
  font-size: 14px;
  color: #8fa6bf;
}

/* --------------------------- Адаптив ------------------------------- */

@media (max-width: 900px) {
  .hero__title { font-size: 30px; }
  .hero__inner { padding: 52px 24px 56px; }
  .article__figure { float: none; margin: 0 0 20px; max-width: 100%; }
}

@media (max-width: 640px) {
  .site-header__inner { min-height: 0; }
  .nav { margin-left: 0; width: 100%; gap: 14px; }
  .header-phone { margin-left: 0; }
  .section { padding: 40px 0; }
  .section__title { font-size: 23px; }
}
