:root {
  --blue: #1768aa;
  --orange: #e9633f;
  --dark: #111;
  --line: #e5e7eb;
  --muted: #64748b;
  --bg: #f5f7fa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: #0f172a;
  font-family: Arial, Helvetica, sans-serif;
}

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

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

.wrap {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  background: var(--orange);
  color: white;
  font-size: 13px;
}

.topbar-inner {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding: 10px 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: white;
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.logo {
  color: var(--blue);
}

.logo::first-letter,
.footer-logo::first-letter {
  background: var(--dark);
  color: white;
}

.logo span,
.footer-logo span {
  color: #111;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 700;
}

.nav nav a:hover {
  color: var(--blue);
}

.feedback {
  border-radius: 999px;
  background: var(--blue);
  color: white !important;
  padding: 10px 18px;
}

.nav select {
  border: 1px solid var(--line);
  padding: 8px;
  background: white;
}

.nav-drop {
  position: relative;
}

.drop-menu {
  position: absolute;
  top: 28px;
  left: 0;
  display: none;
  min-width: 230px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 16px 32px rgb(15 23 42 / 0.12);
}

.drop-menu a {
  display: block;
  padding: 12px 16px;
}

.nav-drop:hover .drop-menu {
  display: block;
}

.home-hero {
  background: white;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  padding: 40px 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
  background: var(--blue);
  color: white;
  padding: 56px;
}

.hero-copy p,
.section-head p,
.spec-box > p {
  margin: 0;
  color: #d6ecff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 20px 0 0;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.05;
}

.hero-copy span {
  margin-top: 20px;
  max-width: 660px;
  color: #e7f3ff;
  line-height: 1.75;
}

.hero-copy div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.white-btn,
.outline-btn,
.orange-btn,
.blue-outline {
  display: inline-block;
  padding: 13px 24px;
  font-weight: 900;
}

.white-btn {
  background: white;
  color: var(--blue);
}

.outline-btn {
  border: 1px solid rgb(255 255 255 / 0.55);
  color: white;
}

.hero-grid > img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 48px 0;
}

.stats div {
  background: white;
  border: 1px solid var(--line);
  color: var(--blue);
  padding: 22px;
  text-align: center;
  font-weight: 900;
}

.section {
  padding: 36px 0 56px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-head h2,
.left-title {
  margin: 8px 0 0;
  border-left: 4px solid var(--blue);
  padding-left: 14px;
  font-size: 30px;
}

.section-head a {
  color: var(--blue);
  font-weight: 900;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.product-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  display: block;
  background: white;
  border: 1px solid var(--line);
}

.product-card:hover {
  border-color: var(--blue);
}

.product-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.product-card div {
  padding: 18px;
}

.product-card p {
  margin: 0;
  color: #0f8a5f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 10px 0;
  color: var(--blue);
  font-size: 20px;
}

.product-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.news-strip {
  background: #f2f2f2;
  padding: 56px 0;
}

.center-text {
  max-width: 980px;
  margin: 0 auto;
  color: #475569;
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

.news-slider {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 20px;
  margin-top: 34px;
}

.news-slider button {
  width: 36px;
  height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: white;
  color: #64748b;
  font-size: 24px;
}

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

.news-tile {
  position: relative;
  height: 296px;
  overflow: hidden;
  background: white;
}

.news-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-tile div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 11%;
  background: rgb(0 0 0 / 0.56);
  color: white;
  padding: 26px;
}

.news-tile div.warm {
  background: rgb(167 90 68 / 0.84);
}

.news-tile strong {
  font-size: 40px;
  line-height: 1;
}

.news-tile span {
  margin-left: 12px;
  font-weight: 900;
}

.news-tile h3 {
  margin: 14px 0 0;
  font-size: 18px;
  line-height: 1.35;
}

.center {
  margin-top: 30px;
  text-align: center;
}

.orange-btn {
  background: var(--orange);
  color: white;
}

.orange-btn:hover {
  background: #d95130;
}

.hero-small {
  background: linear-gradient(90deg, var(--blue), #0f4778);
  color: white;
  padding: 58px 0;
}

.hero-small p {
  margin: 0;
  color: #d6ecff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-small h1 {
  margin: 12px 0;
  font-size: 42px;
}

.hero-small span {
  display: block;
  max-width: 820px;
  color: #e7f3ff;
  line-height: 1.8;
}

.page-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  padding: 48px 0;
}

.sidebar {
  height: fit-content;
  background: white;
  border: 1px solid var(--line);
  padding: 22px;
}

.sidebar h2 {
  margin: 0 0 18px;
  color: var(--blue);
}

.sidebar h3 {
  margin: 20px 0 8px;
  font-size: 15px;
}

.sidebar ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.sidebar.compact {
  padding: 0;
}

.sidebar.compact h2 {
  margin: 0;
  background: var(--blue);
  color: white;
  padding: 16px 20px;
}

.sidebar.compact a {
  display: block;
  border-top: 1px solid var(--line);
  padding: 16px 20px;
  font-weight: 800;
}

.breadcrumbs {
  padding: 18px 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--blue);
  font-weight: 800;
}

.product-detail-top {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  padding-bottom: 48px;
}

.main-photo,
.gallery div,
.spec-box,
.detail-block,
.post-grid article,
.download-grid a,
.contact-grid > div,
.contact-grid form,
.admin-grid section {
  background: white;
  border: 1px solid var(--line);
}

.main-photo {
  padding: 12px;
}

.main-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.gallery div {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.spec-box {
  padding: 28px;
}

.spec-box > p {
  color: #0f8a5f;
}

.spec-box h2 {
  margin: 12px 0;
  color: var(--blue);
  font-size: 32px;
}

.spec-box > span {
  display: block;
  color: var(--muted);
  line-height: 1.8;
}

.spec-box h3 {
  margin: 28px 0 12px;
}

.spec-box ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-box li {
  border-left: 4px solid var(--blue);
  background: #f6f8fb;
  padding: 10px 13px;
  color: #475569;
  font-size: 14px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.spec-grid div,
.info-columns span {
  border: 1px solid var(--line);
  background: #f8fafc;
  padding: 13px;
  font-size: 14px;
  font-weight: 800;
}

.blue-outline {
  margin-left: 10px;
  border: 1px solid var(--blue);
  color: var(--blue);
}

.white-section {
  background: white;
}

.detail-block {
  margin-top: 22px;
  padding: 24px;
}

.detail-block h3 {
  margin: 0;
  color: var(--blue);
  font-size: 22px;
}

.detail-block p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.detail-block div {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  color: #94a3b8;
  font-weight: 900;
}

.table-wrap {
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
}

table {
  min-width: 760px;
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

td {
  border-top: 1px solid var(--line);
  padding: 14px;
  font-weight: 800;
}

.head-row {
  background: var(--blue);
  color: white;
}

.info-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 34px;
}

.info-columns span,
.info-columns a {
  display: block;
  margin-top: 10px;
}

.info-columns a {
  border: 1px solid var(--line);
  padding: 13px;
  color: var(--blue);
  font-weight: 900;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tags em {
  background: #f1f5f9;
  padding: 6px 10px;
  color: #475569;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.post-grid,
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 48px 0;
}

.post-grid article,
.download-grid a {
  padding: 26px;
}

.post-grid p {
  margin: 0;
  color: #0f8a5f;
  font-weight: 900;
}

.post-grid h2,
.download-grid h2 {
  color: var(--blue);
}

.post-grid span,
.download-grid span {
  color: var(--muted);
  line-height: 1.7;
}

.post-grid a {
  display: inline-block;
  margin-top: 20px;
  color: var(--blue);
  font-weight: 900;
}

.download-grid strong {
  color: var(--blue);
  font-size: 32px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  padding: 48px 0;
}

.contact-grid > div,
.contact-grid form,
.admin-grid section {
  padding: 28px;
}

input,
textarea,
button,
select {
  font: inherit;
}

input,
textarea {
  width: 100%;
  margin-bottom: 14px;
  border: 1px solid #cbd5e1;
  padding: 13px;
}

textarea {
  min-height: 140px;
}

form button,
.admin button {
  border: 0;
  background: var(--orange);
  color: white;
  padding: 13px 22px;
  font-weight: 900;
}

.prose h2 {
  color: var(--blue);
}

.prose p {
  max-width: 900px;
  color: var(--muted);
  line-height: 1.85;
}

.admin {
  padding: 48px 0;
}

.notice {
  border: 1px solid #fcd34d;
  background: #fffbeb;
  color: #92400e;
  padding: 16px;
  line-height: 1.7;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 24px;
}

.admin textarea {
  min-height: 340px;
}

.admin button {
  margin-right: 10px;
}

.footer {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: white;
}

.footer-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgb(0 0 0 / 0.74), rgb(0 0 0 / 0.78)), url("/assets/linear-guide-products.jpg") center / cover;
  opacity: 0.96;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  padding: 58px 0;
}

.footer-logo {
  color: white;
}

.footer-logo span {
  color: white;
}

.footer p {
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.8;
}

.footer h3 {
  margin-top: 0;
  font-size: 28px;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.footer-bottom {
  position: relative;
  border-top: 1px solid rgb(255 255 255 / 0.22);
  padding: 22px 0;
  text-align: center;
}

.float-actions {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 30;
  display: flex;
  flex-direction: column;
  transform: translateY(-50%);
}

.float-actions a {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--orange);
  color: white;
  font-weight: 900;
}

.message-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  width: 300px;
  background: var(--orange);
  color: white;
  padding: 14px 18px;
  font-weight: 900;
}

@media (max-width: 960px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero-grid,
  .page-grid,
  .product-detail-top,
  .contact-grid,
  .footer-grid,
  .info-columns,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .product-grid.two,
  .product-grid.three,
  .news-grid,
  .post-grid,
  .download-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .news-slider {
    grid-template-columns: 1fr;
  }

  .news-slider button,
  .float-actions,
  .message-bar {
    display: none;
  }

  .hero-copy {
    min-height: auto;
    padding: 36px 24px;
  }
}
