@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;800;900&display=swap");

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #102033;
  --muted: #607086;
  --line: #d9e1ea;
  --brand: #0b4d75;
  --brand-2: #1f8a70;
  --accent: #c5221f;
  --dark: #081521;
  --shadow: 0 20px 70px rgba(16, 32, 51, 0.12);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
}

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

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 100;
  background: var(--dark);
  color: #fff;
  padding: 10px 14px;
}

.skip-link:focus {
  left: 12px;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  max-width: 820px;
}

.topbar {
  background: var(--dark);
  color: #d9e6f2;
  font-size: 13px;
}

.topbar-inner,
.nav-row,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-inner {
  min-height: 38px;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  padding: 7px 0;
}

.topbar-note,
.topbar-contact,
.topbar-inner > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.topbar-note {
  color: #f5f9fc;
  font-weight: 700;
}

.topbar-contact {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.topbar-contact a {
  color: #eef6fb;
  font-weight: 700;
  white-space: nowrap;
}

.topbar-inner > a {
  color: #eef6fb;
  font-weight: 700;
  white-space: nowrap;
}

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

.nav-row {
  min-height: 88px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff url("/logo.png") center / contain no-repeat;
  color: transparent;
  font-weight: 800;
  overflow: hidden;
}

.brand-logo {
  display: block;
  width: auto;
  height: 64px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand > span:not(.brand-mark) {
  min-width: 0;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.brand strong {
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

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

.main-nav > a,
.nav-group > a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: #22364d;
  font-weight: 650;
  font-size: 14px;
}

.main-nav > a:hover,
.nav-group:hover > a,
.nav-group:focus-within > a {
  background: #edf5f8;
  color: var(--brand);
}

.nav-group {
  position: relative;
}

.dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  display: none;
  min-width: 260px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: #24384f;
  font-weight: 600;
}

.dropdown a:hover {
  background: #f1f6f9;
}

.nav-group:hover .dropdown,
.nav-group:focus-within .dropdown {
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
  background: #fff;
}

.cart-link svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.cart-link span {
  position: absolute;
  right: -7px;
  top: -7px;
  display: grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  border: 2px solid #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.hero {
  background: linear-gradient(135deg, #081521 0%, #0e344d 58%, #17495f 100%);
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 44px;
  align-items: center;
  min-height: 640px;
  padding: 72px 0;
}

.hero h1,
.page-hero h1 {
  margin: 10px 0 18px;
  font-size: 64px;
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 900;
}

.hero p,
.page-hero p,
.lead {
  font-size: 19px;
  color: #dce8f3;
  max-width: 760px;
}

.hero-actions,
.cart-summary,
.inline-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-authorization {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  max-width: 620px;
  margin: 26px 0 24px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.hero-authorization img {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.74);
}

.hero-authorization strong,
.hero-authorization span,
.hero-authorization small {
  display: block;
}

.hero-authorization strong {
  color: #fff;
  font-size: 22px;
  line-height: 1.12;
  font-weight: 900;
}

.hero-authorization span {
  margin-top: 6px;
  color: #e9f3f9;
  font-weight: 800;
}

.hero-authorization small {
  margin-top: 5px;
  color: #b9ccd8;
  font-weight: 700;
  line-height: 1.35;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn.ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.btn.small {
  min-height: 38px;
  padding: 0 12px;
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0 0;
}

.hero-stats div,
.hero-card,
.quote-box,
.data-panel,
.order-box,
.contact-card,
.form-card,
.card,
.admin-panel,
.admin-cards article,
.login-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-stats div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.hero-stats dt {
  font-size: 28px;
  font-weight: 900;
}

.hero-stats dd {
  margin: 0;
  color: #c7d7e4;
}

.hero-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.hero-media {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #f7fbfd;
}

.hero-media img,
.hero-panel > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 520px;
  object-fit: contain;
  padding: 16px;
}

.hero-panel > img {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #f7fbfd;
}

.hero-card {
  width: 100%;
  justify-self: stretch;
  padding: 18px;
  color: var(--ink);
}

.hero-card span {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.section {
  padding: 72px 0;
}

.band,
.split-band {
  padding: 72px 0;
  background: #fff;
}

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

.section-head h2,
.split h2,
.cta h2 {
  margin: 8px 0 0;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 850;
}

.cards {
  display: grid;
  gap: 18px;
}

.cards.four,
.cards.products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards.products {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.portfolio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  overflow: hidden;
  padding: 22px;
}

.service-card h3,
.product-card h3,
.media-card h2 {
  margin: 0 0 10px;
  line-height: 1.2;
}

.service-card p,
.product-card p,
.media-card p,
.muted {
  color: var(--muted);
}

.service-card a,
.section-head a {
  color: var(--brand);
  font-weight: 800;
}

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.slide {
  scroll-snap-align: start;
  min-height: 180px;
  padding: 26px;
  border-radius: 8px;
  background: #eef6f6;
  border: 1px solid #d4e7e6;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 42px;
  align-items: start;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 0 0 12px 30px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 5px rgba(31, 138, 112, 0.13);
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  min-width: 0;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #edf3f8;
  border-radius: 8px;
}

.pill {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eaf3f0;
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 800;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.product-meta strong {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--accent);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.product-meta form,
.product-meta .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.cta {
  padding: 56px 0;
  background: var(--dark);
  color: #fff;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.page-hero {
  padding: 84px 0 56px;
  background: linear-gradient(135deg, #0b1b2b, #123c55);
  color: #fff;
}

.page-hero.compact {
  padding: 46px 0;
}

.page-hero p {
  margin-bottom: 0;
}

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

.timeline div {
  padding: 20px;
  border-left: 4px solid var(--brand-2);
  background: #fff;
  border-radius: 8px;
}

.timeline span {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: var(--brand);
}

.shop-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.shop-sidebar {
  position: sticky;
  top: 118px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(13, 31, 49, 0.06);
}

.shop-sidebar h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
}

.shop-category-list {
  display: grid;
  gap: 6px;
}

.shop-category-list a,
.shop-reset {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--brand);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.shop-category-list a:hover,
.shop-category-list a.is-active {
  background: #edf5f8;
  color: var(--ink);
}

.shop-reset {
  margin-top: 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-align: center;
}

.product-detail,
.checkout-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.product-detail > img {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.price {
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
}

label {
  display: grid;
  gap: 6px;
  font-weight: 750;
  margin-bottom: 14px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox input {
  width: auto;
}

.form-card,
.contact-card,
.order-box,
.quote-box,
.data-panel {
  padding: 24px;
}

.contact-card iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 8px;
  margin-top: 16px;
}

.cart-table {
  display: grid;
  gap: 12px;
}

.cart-row {
  display: grid;
  grid-template-columns: 86px 1fr 100px 120px;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-row img {
  aspect-ratio: 1;
  object-fit: contain;
  background: #edf3f8;
  border-radius: 8px;
}

.cart-item-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.cart-item-main strong {
  line-height: 1.2;
}

.cart-item-main span {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.cart-row input {
  width: 100%;
}

.cart-row-total {
  text-align: right;
  white-space: nowrap;
}

.cart-summary {
  justify-content: flex-end;
  margin-top: 20px;
}

.cart-summary-total {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
}

.cart-drawer.is-open {
  pointer-events: auto;
}

.cart-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 21, 33, 0);
  transition: background 0.2s ease;
}

.cart-drawer.is-open .cart-drawer-backdrop {
  background: rgba(8, 21, 33, 0.42);
}

.cart-drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(420px, 100%);
  height: 100%;
  background: #fff;
  box-shadow: -20px 0 70px rgba(8, 21, 33, 0.24);
  transform: translateX(100%);
  transition: transform 0.22s ease;
}

.cart-drawer.is-open .cart-drawer-panel {
  transform: translateX(0);
}

.cart-drawer-head,
.cart-drawer-foot {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-drawer-head h2 {
  margin: 0;
}

.cart-drawer-head button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 24px;
  line-height: 1;
}

.cart-drawer-body {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  padding: 18px;
}

.cart-mini-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-mini-item img {
  width: 70px;
  aspect-ratio: 1;
  object-fit: contain;
  background: #edf3f8;
  border-radius: 8px;
}

.cart-mini-item strong,
.cart-mini-item span {
  display: block;
}

.cart-mini-item span,
.cart-empty {
  color: var(--muted);
}

.cart-drawer-foot {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.cart-drawer-foot > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 900;
}

.btn.light {
  background: #eef3f8;
}

.cart-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 130;
  max-width: min(360px, calc(100% - 36px));
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cart-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.order-box {
  grid-column: span 2;
}

.order-box div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

.flash,
.alert {
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto;
  padding: 14px 16px;
  border-radius: 8px;
  background: #fff4d8;
  border: 1px solid #f0d283;
  color: #6d4b00;
}

.empty,
.result {
  text-align: center;
}

.site-footer {
  background: #07111c;
  color: #d7e1ea;
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.footer-grid > section {
  min-width: 0;
}

.footer-grid h2,
.footer-grid h3 {
  color: #fff;
  margin-top: 0;
}

.footer-grid a {
  display: block;
  color: #d7e1ea;
  padding: 3px 0;
  overflow-wrap: anywhere;
}

.footer-bottom {
  flex-wrap: wrap;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9fb1c2;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.footer-legal a {
  color: #d7e1ea;
  white-space: nowrap;
}

.footer-grid section:last-child p:last-child {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 4px 20px;
}

.footer-grid section:last-child p:last-child a {
  overflow-wrap: normal;
  white-space: nowrap;
}

.footer-grid section:last-child p:last-child a:last-child {
  grid-column: 1 / -1;
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--dark);
}

.login-card {
  width: min(420px, calc(100% - 32px));
  padding: 28px;
}

.admin-body {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
  background: #f3f6f9;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  background: #07111c;
  color: #fff;
}

.admin-sidebar a,
.admin-sidebar button {
  display: block;
  width: 100%;
  margin: 6px 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-align: left;
}

.admin-main {
  padding: 32px;
}

.admin-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-cards article,
.admin-panel {
  padding: 20px;
}

.admin-cards strong {
  display: block;
  font-size: 30px;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.admin-form label:has(textarea),
.admin-form .btn {
  grid-column: 1 / -1;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-list article {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
}

.admin-list img {
  width: 120px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef3f8;
  border-radius: 8px;
}

@media (max-width: 1050px) {
  .topbar-inner {
    align-items: flex-start;
    justify-content: space-between;
  }

  .topbar-contact {
    justify-content: flex-start;
  }

  .nav-row {
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 1px);
    display: none;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: grid;
  }

  .nav-group,
  .dropdown {
    position: static;
  }

  .dropdown {
    display: grid;
    min-width: 0;
    box-shadow: none;
    border: 0;
    padding-left: 12px;
  }

  .hero-grid,
  .split,
  .product-detail,
  .checkout-grid,
  .contact-grid,
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: 0;
    gap: 34px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 52px;
  }

  .section-head h2,
  .split h2,
  .cta h2 {
    font-size: 36px;
  }

  .hero-media img,
  .hero-panel > img {
    max-height: 460px;
  }

  .hero-card {
    justify-self: start;
  }

  .cards.four,
  .portfolio,
  .footer-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards.products {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .shop-sidebar {
    position: static;
  }

  .order-box {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
  }

  .container {
    width: min(100% - 20px, 1180px);
  }

  .topbar-inner,
  .section-head,
  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-bottom {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
    width: 100%;
  }

  .topbar-inner {
    align-items: stretch;
    gap: 6px;
  }

  .topbar-contact {
    gap: 4px 12px;
  }

  .topbar-note,
  .topbar-contact a {
    font-size: 12px;
  }

  .nav-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    min-height: 82px;
    padding: 10px 0;
  }

  .brand {
    min-width: 0;
    gap: 9px;
  }

  .brand-logo {
    width: auto;
    height: 54px;
  }

  .brand small {
    display: none;
  }

  .header-actions {
    grid-column: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    gap: 8px;
  }

  .hero-grid {
    min-height: 0;
    padding: 46px 0;
  }

  .hero-authorization {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    margin: 22px 0;
    padding: 12px;
  }

  .hero-authorization img {
    width: 64px;
    height: 64px;
  }

  .hero-authorization strong {
    font-size: 18px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 36px;
    line-height: 1.04;
  }

  .hero p,
  .page-hero p {
    font-size: 17px;
  }

  .section-head h2,
  .split h2,
  .cta h2 {
    font-size: 30px;
  }

  .hero-stats,
  .cards.four,
  .cards.products,
  .portfolio,
  .footer-grid,
  .timeline,
  .admin-cards,
  .admin-form {
    grid-template-columns: 1fr;
  }

  .hero-media img,
  .hero-panel > img {
    max-height: 360px;
    padding: 10px;
  }

  .product-meta {
    flex-wrap: nowrap;
  }

  .footer-grid section:last-child p:last-child {
    grid-template-columns: 1fr;
  }

  .cart-row {
    grid-template-columns: 64px 1fr;
  }

  .cart-row input,
  .cart-row > strong {
    grid-column: 2;
  }

  .admin-body {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-main {
    padding: 18px;
  }
}

@media (max-width: 380px) {
  .nav-row {
    gap: 8px;
  }

  .brand-logo {
    width: auto;
    height: 48px;
  }

  .cart-link,
  .nav-toggle {
    width: 42px;
  }

  .hero-authorization {
    grid-template-columns: 1fr;
  }

  .hero-authorization img {
    width: 72px;
    height: 72px;
  }

  .product-meta {
    align-items: stretch;
    flex-direction: column;
  }

  .product-meta form,
  .product-meta .btn {
    width: 100%;
  }
}
