@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap");
:root {
  --ink: #17202a;
  --muted: #66717d;
  --line: #dfe4e8;
  --soft: #f5f7f8;
  --paper: #fff;
  --accent: #1d4f91;
  --accent-dark: #14396b;
  --success: #24734d;
  --radius: 8px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.55;
}
.shell {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}
.site-header {
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 42px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 5px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.02em;
}
.header-inner nav {
  display: flex;
  gap: 28px;
  flex: 1;
}
.header-inner nav a {
  color: #59636d;
  text-decoration: none;
  font-size: 14px;
}
.header-inner nav a:hover,
.header-inner nav a.active {
  color: var(--ink);
}
.header-button {
  font-size: 13px;
  color: var(--ink);
  border: 1px solid #cbd1d6;
  border-radius: 6px;
  padding: 9px 14px;
  text-decoration: none;
}
.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 80px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 16px;
}
.hero h1,
.info-section h2,
.footer-cta h2 {
  font-family: Manrope, Inter, sans-serif;
  font-size: 54px;
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin: 0 0 22px;
}
.hero h1 span {
  color: #59636d;
}
.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 30px;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding: 13px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition:
    filter 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.primary {
  background: var(--ink);
  color: #fff;
}
.primary:hover {
  background: #29343f;
}
.secondary {
  border: 1px solid #bfc6cc;
  color: var(--ink);
}
button,
.header-button,
.filter,
.theme-toggle,
.description-toggle,
.admin-secondary,
.admin-actions button,
.admin-actions a,
.account-logout {
  transition:
    filter 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
button:hover,
.button:hover,
.header-button:hover,
.filter:hover,
.theme-toggle:hover,
.description-toggle:hover,
.admin-secondary:hover,
.admin-actions button:hover,
.admin-actions a:hover,
.account-logout:hover {
  filter: brightness(0.96);
}
.hero-panel {
  border: 1px solid var(--line);
  padding: 34px;
  background: #fafbfc;
}
.panel-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #7b858e;
}
.panel-number {
  font-family: Manrope;
  font-size: 92px;
  line-height: 1;
  margin: 24px 0 2px;
}
.hero-panel p {
  margin: 0;
  color: #59636d;
  font-size: 14px;
}
.hero-panel .muted {
  margin-top: 26px;
  font-size: 12px;
  color: #7d8790;
}
.panel-line {
  height: 1px;
  background: var(--line);
  margin: 28px 0;
}
.catalog-section {
  padding: 90px 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 32px;
}
.section-heading h2 {
  font-family: Manrope;
  font-size: 34px;
  letter-spacing: -0.03em;
  margin: 0;
}
.result-count {
  font-size: 13px;
  color: var(--muted);
}
.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
}
.filter {
  border: 1px solid var(--line);
  background: #fff;
  color: #66717d;
  padding: 8px 15px;
  border-radius: 5px;
  font: 500 13px Inter;
  cursor: pointer;
}
.filter.active,
.filter:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.product-card:hover {
  border-color: #aeb6bd;
  transform: translateY(-2px);
}
.product-cover {
  height: 190px;
  background: #eef1f3;
  position: relative;
  overflow: hidden;
}
.product-cover::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(23, 32, 42, 0.12);
}
.cover-label {
  position: absolute;
  left: 25px;
  bottom: 22px;
  font: 700 11px Inter;
  letter-spacing: 0.13em;
  color: #65717b;
}
.product-body {
  padding: 22px;
}
.product-type {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
}
.product-body h3 {
  font-family: Manrope;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 7px 0 8px;
}
.product-body p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 13px;
  color: var(--muted);
  min-height: 42px;
  margin: 0 0 22px;
}
.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 17px;
}
.price {
  font-weight: 700;
}
.card-link {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.info-section {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 90px 0;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}
.info-section h2 {
  font-size: 38px;
}
.steps {
  border-top: 1px solid #cfd5da;
}
.steps > div {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 10px;
  padding: 22px 0;
  border-bottom: 1px solid #cfd5da;
}
.steps b {
  font-size: 11px;
  color: var(--accent);
}
.steps strong {
  display: block;
  font-size: 14px;
}
.steps small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.footer-cta {
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.footer-cta h2 {
  font-size: 36px;
  margin-bottom: 10px;
}
.footer-cta p:not(.kicker) {
  color: var(--muted);
  margin: 0;
  max-width: 600px;
}
.site-footer {
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #7a848d;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  padding: 25px 0;
}
.detail-page {
  padding-top: 38px;
  padding-bottom: 90px;
}
.back-link {
  color: #68737c;
  text-decoration: none;
  font-size: 13px;
}
.detail-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: start;
  margin-top: 40px;
}
.detail-cover {
  height: 420px;
  background: #eef1f3;
  border: 1px solid var(--line);
  position: relative;
}
.detail-copy h1 {
  font-family: Manrope;
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 10px 0 18px;
}
.detail-copy .description {
  color: var(--muted);
  font-size: 16px;
}
.specs {
  border-top: 1px solid var(--line);
  margin-top: 30px;
}
.spec {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.spec span:first-child {
  color: var(--muted);
}
.purchase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
}
.specification-purchase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.specification-form {
  margin-bottom: 24px;
}
.specification-form fieldset {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
}
.specification-form legend,
.specification-form label {
  font-size: 14px;
}
.specification-choice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.specification-choice input {
  margin-top: 3px;
}
.specification-address,
.specification-code label {
  display: grid;
  gap: 7px;
  max-width: 420px;
}
.specification-address input,
.specification-code input {
  width: 100%;
  padding: 10px;
  border: 1px solid #cbd1d6;
  border-radius: 4px;
  background: #fff;
  font: inherit;
}
.specification-code {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.specification-code[hidden],
.specification-address[hidden],
#send-specification-code[hidden] {
  display: none;
}
.detail-price {
  font-size: 26px;
  font-weight: 700;
}
.narrow-page {
  max-width: 760px;
  padding-top: 65px;
  padding-bottom: 100px;
}
.order-card,
.success-card {
  border: 1px solid var(--line);
  padding: 34px;
  background: #fff;
}
.order-card h1,
.success-card h1 {
  font-family: Manrope;
  font-size: 34px;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.order-sub {
  color: var(--muted);
  font-size: 14px;
}
.payment-box {
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 24px;
  margin: 28px 0;
}
.payment-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #d9dee2;
  font-size: 14px;
}
.payment-row:last-child {
  border-bottom: 0;
}
.payment-row span:first-child {
  color: var(--muted);
}
.notice {
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  background: #f7f9fb;
  color: #4d5862;
  font-size: 13px;
}
.success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #edf7f1;
  color: var(--success);
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 20px;
}
.download-box {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid #cdded4;
  background: #f7fbf8;
}
.download-box strong {
  display: block;
  margin-bottom: 5px;
}
.download-box p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}
.mobile-menu {
  display: none;
}
@media (max-width: 850px) {
  .header-inner {
    gap: 18px;
  }
  .header-inner nav {
    display: none;
  }
  .header-button {
    margin-left: auto;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 65px 0;
  }
  .hero h1 {
    font-size: 43px;
  }
  .hero-panel {
    max-width: 420px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .info-grid,
  .detail-hero {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .detail-cover {
    height: 320px;
  }
  .footer-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 560px) {
  .shell {
    width: min(100% - 28px, 1160px);
  }
  .site-header {
    height: 68px;
  }
  .brand span:last-child {
    font-size: 14px;
  }
  .header-button {
    font-size: 12px;
    padding: 8px 10px;
  }
  .hero {
    min-height: auto;
    padding: 55px 0;
  }
  .hero h1 {
    font-size: 36px;
  }
  .lead {
    font-size: 15px;
  }
  .catalog-section,
  .info-section {
    padding: 60px 0;
  }
  .section-heading {
    align-items: flex-start;
    gap: 15px;
    flex-direction: column;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-cover {
    height: 170px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 7px;
  }
  .detail-copy h1 {
    font-size: 36px;
  }
  .purchase {
    align-items: flex-start;
    gap: 20px;
    flex-direction: column;
  }
}
.product-cover > img {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-cover > .cover-label {
  z-index: 2;
}
.detail-gallery {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eef1f3;
}
.contacts-section {
  padding: 80px 0;
}
.contacts-heading {
  max-width: 700px;
  margin-bottom: 36px;
}
.contacts-heading h2 {
  font-family: Manrope, Inter, sans-serif;
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin: 0 0 14px;
}
.contacts-heading > p:last-child {
  max-width: 650px;
  color: var(--muted);
  margin: 0;
}
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.contact-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.contact-role {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.contact-card h3 {
  margin: 0 0 8px;
  font-family: Manrope, Inter, sans-serif;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.contact-card > div > p:last-child {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.contact-button {
  gap: 20px;
  text-decoration: underline;
}
.contacts-inn {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.contacts-inn span {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 560px) {
  .contacts-section {
    padding: 60px 0;
  }
  .contacts-heading h2 {
    font-size: 32px;
  }
  .contacts-grid {
    grid-template-columns: 1fr;
  }
  .contact-card {
    min-height: 200px;
  }
}
.detail-gallery-image {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.detail-gallery-image[hidden] {
  display: none;
}
.detail-gallery .detail-cover {
  height: 420px;
  border: 0;
}
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  background: var(--paper);
}
.gallery-controls[hidden],
.gallery-dots[hidden] {
  display: none;
}
.gallery-arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font:
    600 18px Inter,
    sans-serif;
  cursor: pointer;
}
.gallery-arrow:hover,
.gallery-dot.active {
  border-color: var(--accent);
  color: var(--accent);
}
.gallery-count {
  font-size: 12px;
  color: var(--muted);
}
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 14px 13px;
  background: var(--paper);
}
.gallery-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #aeb6bd;
  cursor: pointer;
}
.gallery-dot.active {
  background: var(--accent);
}
@media (max-width: 850px) {
  .detail-gallery-image,
  .detail-gallery .detail-cover {
    height: 320px;
  }
}
@media (max-width: 560px) {
  .detail-gallery-image,
  .detail-gallery .detail-cover {
    height: 240px;
  }
}
