:root {
  --bg: #ffffff;
  --text: #0a0a0a;
  --muted: #6b6b6b;
  --line: #e9e9e6;
  --blue: #e67e00;
  --accent: #e67e00;
  --soft: #f6f5f2;
  --container: 1060px;
  --rail: 190px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: -0.035em;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}

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

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 865px;
  margin-bottom: 18px;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 0.94;
  letter-spacing: -0.075em;
  font-weight: 600;
}

h2 {
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.02;
  letter-spacing: -0.065em;
  font-weight: 600;
}

h3 {
  font-size: 16px;
  line-height: 1.1;
  margin-bottom: 8px;
  font-weight: 600;
}

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

body.admin-bar .header {
  top: 32px;
}

.header-inner {
  width: min(100%, calc(var(--container) + var(--rail)));
  margin: 0 auto;
  padding: 18px 22px 16px;
  display: grid;
  grid-template-columns: var(--rail) 1fr auto;
  gap: 28px;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-width: 0;
}

.logo img {
  display: block;
  width: auto;
  height: 38px;
  max-width: 170px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 610px;
  gap: 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.nav a::after,
.rail-links a::after,
.footer-links a::after,
.link::after {
  content: " \2192";
  color: var(--blue);
}

.header-cta,
.rail-cta {
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.header-cta::after,
.rail-cta::after {
  content: " \2192";
}

.burger {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: #ffffff;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  width: 15px;
  height: 1px;
  background: var(--text);
}

.mobile-menu {
  display: none;
  padding: 12px 18px 18px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.mobile-menu a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
}

.layout {
  width: min(100%, calc(var(--container) + var(--rail)));
  margin: 0 auto;
  padding: 0 18px;
  display: grid;
  grid-template-columns: var(--rail) minmax(0, var(--container));
  gap: 28px;
}

.site-main,
main {
  min-width: 0;
}

.rail {
  position: sticky;
  top: 79px;
  height: calc(100vh - 79px);
  padding-top: 104px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.rail-links {
  display: grid;
  gap: 10px;
  margin-bottom: 34px;
}

.section {
  padding: 76px 0;
  border-bottom: 1px solid var(--line);
}

.site-section {
  padding: 76px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 48px;
}

.eyebrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.section-label {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}

.section-title {
  margin: 0;
}

.section-description {
  max-width: 610px;
  margin-top: 18px;
  color: #333333;
  font-size: 17px;
  line-height: 1.38;
  letter-spacing: -0.04em;
}

.hero {
  padding-top: 58px;
}

.hero-copy {
  max-width: 850px;
  margin-bottom: 27px;
}

.hero-lead {
  max-width: 610px;
  color: #333333;
  font-size: 17px;
  line-height: 1.38;
  margin-bottom: 17px;
  letter-spacing: -0.04em;
}

.link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.hero-image {
  width: 100%;
  height: 270px;
  object-fit: cover;
  object-position: center;
  background: var(--soft);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 24px;
  align-items: start;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: inherit;
  cursor: pointer;
  height: 100%;
  min-width: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:focus-visible {
  outline: 2px solid rgba(230, 126, 0, 0.3);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.07);
    transform: translateY(-4px);
  }
}

.products-grid .product-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  background: var(--soft);
  margin-bottom: 13px;
}

.products-grid .product-card:nth-child(2) img,
.products-grid .product-card:nth-child(3) img {
  height: 310px;
}

.product-card p,
.benefit p,
.step-card p,
.footer p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.product-card p {
  margin-top: 4px;
}

.product-card h3,
.product-card__body h2 {
  overflow-wrap: anywhere;
}

.why {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  gap: 48px;
  align-items: start;
}

.why-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  background: var(--soft);
}

.benefits {
  display: grid;
  gap: 22px;
  margin-top: 35px;
}

.benefit {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.num {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}

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

.step-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--soft);
  margin-bottom: 13px;
}

.step-card,
.features-grid article,
.detail-spec-card,
.contacts-list article {
  min-width: 0;
}

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

.features-grid article {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.features-grid span {
  display: block;
  margin-bottom: 26px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}

.features-grid p,
.detail-copy p,
.detail-spec-card li,
.clean-list li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.delivery-text {
  max-width: 900px;
  margin: 24px 0 31px;
  font-size: 17px;
  line-height: 1.42;
  color: #303030;
  letter-spacing: -0.04em;
}

.delivery-img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  object-position: center;
  background: var(--soft);
}

.request {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(340px, 1.1fr);
  gap: 44px;
  align-items: start;
}

.request-layout {
  align-items: start;
}

.request-copy,
.request .form,
.request-form {
  align-self: start;
}

.request-copy .eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
}

.request-copy h2 {
  margin: 0;
}

.request-copy p {
  max-width: 440px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.request-contacts {
  display: none;
}

.form,
.form-grid {
  display: grid;
  gap: 12px;
}

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

.field {
  display: grid;
  gap: 6px;
}

.field span,
.check {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #ffffff;
  min-height: 46px;
  height: 46px;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  letter-spacing: -0.025em;
  outline: none;
  transition: border-color 0.2s ease;
}

textarea {
  min-height: 112px;
  height: auto;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--text);
}

.field--hp {
  display: none;
}

.check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.check input {
  width: 16px;
  min-height: 16px;
  flex: 0 0 16px;
  margin-top: 1px;
}

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

.button {
  justify-self: start;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--text);
  background: var(--text);
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

.button--ghost {
  background: transparent;
  color: var(--text);
}

.form-message {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.request-items {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.request-items:focus {
  outline: none;
}

.request-items:focus-visible {
  border-color: var(--text);
}

.request-items__head {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.request-items__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.request-items__clear {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.request-items__clear:hover,
.request-items__clear:focus-visible {
  color: var(--accent);
}

.request-items__empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.request-items__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.request-items__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.request-items__item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.request-items__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.request-items__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.request-items__remove:hover,
.request-items__remove:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.filter-button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.filter-button.is-active,
.filter-button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 22px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.product-card.is-hidden {
  display: none;
}

.product-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 260px;
  width: 100%;
  height: 260px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--soft);
}

.product-card__media img,
.product-card__media .product-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}

.product-card__placeholder {
  display: block;
  position: relative;
  background: #f4f0e8;
}

.product-card__placeholder::after {
  content: "Нет фото";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(10, 10, 10, 0.42);
  font-size: 13px;
  font-weight: 600;
}

.product-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
}

.product-card__body h2,
.product-card__body h3 {
  font-size: 18px;
  line-height: 1.1;
  margin: 0;
  min-height: 40px;
}

.product-card .product-card__category {
  min-height: 16px;
  margin: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 500;
}

.product-card__body p {
  margin: 0;
}

.product-card__body > p:not(.product-card__category) {
  display: -webkit-box;
  min-height: 52px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-card__actions {
  display: grid;
  flex: 0 0 auto;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
}

.product-card__quantity-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.product-card__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
}

.product-card__controls input {
  min-height: 42px;
  height: 42px;
}

.product-card__request-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--text);
  background: var(--text);
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.product-card__request-button:hover,
.product-card__request-button:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.product-card__request-button.is-added {
  border-color: var(--accent);
  background: var(--accent);
}

.product-card__request-button::after {
  content: none;
}

.product-hero,
.detail-grid,
.product-details {
  display: grid;
  gap: 44px;
}

.product-hero {
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  align-items: start;
}

.product-hero__media {
  min-height: 320px;
  background: var(--soft);
}

.product-hero__media img,
.product-hero__media .product-card__placeholder {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.detail-grid,
.product-details {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  align-items: start;
}

.detail-copy p {
  max-width: 560px;
  margin-top: 16px;
}

.detail-spec-card {
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}

.detail-spec-card ul,
.product-card ul,
.clean-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.detail-spec-card li,
.product-card li,
.clean-list li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.product-details dl {
  margin: 0;
}

.product-details dl div {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.product-details dd {
  margin: 0;
}

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  gap: 34px;
  align-items: start;
}

.contacts-list {
  display: grid;
  gap: 20px;
}

.contacts-list span,
.contact-item__label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.contacts-map {
  padding: 28px;
  background: var(--soft);
}

.contacts-map h2 {
  max-width: 620px;
}

.contacts-map p {
  max-width: 620px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.contacts-map__city {
  margin-bottom: 10px;
  color: var(--blue) !important;
  font-weight: 600;
}

.contacts-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.contacts-actions .button {
  min-width: 132px;
  min-height: 46px;
}

.page-head {
  padding-top: 58px;
}

.page-head p {
  max-width: 610px;
  color: #333333;
  font-size: 17px;
  line-height: 1.38;
  margin-top: 18px;
}

.legal-content {
  max-width: 860px;
  white-space: pre-line;
}

.legal-content p {
  margin-bottom: 18px;
}

.footer {
  padding: 48px 0 52px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 54px;
  margin-bottom: 42px;
  align-items: start;
}

.footer-links {
  display: grid;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.footer-address h3 {
  font-size: 16px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.footer-address p {
  max-width: 310px;
  font-size: 12px;
  line-height: 1.45;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: -0.02em;
}
