:root {
  --olive: #7b7c3d;
  --olive-dark: #62632f;
  --olive-soft: #efefe2;
  --beige-soft: #f6f0e6;
  --page: #f6f6fa;
  --surface: #ffffff;
  --surface-alt: #faf9f6;
  --text: #20211e;
  --muted: #707169;
  --line: #e5e5e8;
  --green: #1dbf63;
  --blue: #1688ed;
  --container: 1420px;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(41, 42, 31, 0.08);
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

img,
svg {
  display: block;
}

button {
  cursor: pointer;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--text);
  color: #fff;
  border-radius: 6px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.topbar {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.topbar__links,
.topbar__contacts,
.header-actions,
.hero__actions,
.hero__benefits,
.product-card__price,
.product-card__footer {
  display: flex;
  align-items: center;
}

.topbar__links,
.topbar__contacts {
  gap: 18px;
}

.topbar__links a:hover,
.topbar__contacts a:hover,
.main-navigation a:hover,
.text-link:hover {
  color: var(--olive-dark);
}

.topbar__contacts a {
  color: var(--olive-dark);
  font-weight: 700;
}

.mainbar {
  min-height: 62px;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  gap: 24px;
  align-items: center;
}


.search button,
.button--primary {
  border: 1px solid var(--olive);
  background: var(--olive);
  color: #fff;
}

.header-actions {
  gap: 8px;
}


.menu-toggle {
  display: none;
}

.main-navigation {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-navigation__links {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.catalog-link,
.main-navigation__links a {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  white-space: nowrap;
}

.catalog-link {
  font-weight: 700;
}

.hero {
  display: flex;
  justify-content: space-between;
  padding-top: 6px;
  padding-bottom: 36px;
  padding: 6px 0 36px 0;
  margin: 0;
}

.container::before{
    content: none;
}

.container::after{
    content: none;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px 90px;
  min-height: 500px;
  border-radius: var(--radius);
  background: var(--beige-soft);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 20px;
  padding: 10px 10px;
  border-radius: 5px;
  background: var(--olive);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 18px;
  font-size: clamp(42px, 4.8vw, 66px);
  line-height: 1.02;
  letter-spacing: -1.9px;
  font-weight: 500;
}

.hero__content > p {
  max-width: 690px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.hero__actions {
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 19px;
  border-radius: 6px;
  font-weight: 700;
  transition: 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.icon-button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(123, 124, 61, 0.32);
  outline-offset: 2px;
}

.button--primary:hover {
  border-color: var(--olive-dark);
  background: var(--olive-dark);
}

.button--outline {
  border: 1px solid var(--olive);
  background: transparent;
  color: var(--olive-dark);
}

.button--outline:hover {
  background: var(--olive-soft);
}

.button--small {
  min-height: 40px;
  padding: 8px 15px;
  font-size: 14px;
}

.button--block {
  width: 100%;
}

.hero__benefits {
  gap: 22px;
  flex-wrap: wrap;
  margin: 28px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-size: 14px;
}

.hero__benefits li::before {
  content: "✓";
  margin-right: 6px;
  color: var(--olive-dark);
  font-weight: 700;
}

.hero-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1.28fr 0.72fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  min-height: 500px;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
}

.hero-gallery__main {
  grid-row: 1 / span 2;
}

.source-image {
  position: absolute;
  display: block;
  max-width: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}



.volume-badge {
  position: absolute;
  z-index: 3;
  left: 18px;
  bottom: 18px;
  max-width: 230px;
  padding: 14px 16px;
  border-radius: 9px;
  background: var(--olive);
  color: #fff;
  box-shadow: var(--shadow);
}

.volume-badge strong,
.volume-badge span {
  display: block;
}

.volume-badge strong {
  font-size: 23px;
}

.volume-badge span {
  line-height: 1.35;
}

.section {
  padding: 54px 0;
}

.section--white {
  background: var(--surface);
  border-radius: 15px;
}

.section--soft {
  background: var(--page);
}

.section--soft .container{
    padding: 0;
}

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

.section-heading--simple {
  display: block;
}

.section-heading h2,
.custom-order__content h2,
.final-cta h2 {
  margin-bottom: 10px;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -1px;
  font-weight: 500;
}

.section-heading p,
.custom-order__content > p,
.final-cta p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.text-link {
  flex: 0 0 auto;
  font-weight: 700;
}

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

.discount-card {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-alt);
}

.discount-card span,
.discount-card p {
  color: var(--muted);
}

.discount-card strong {
  display: block;
  margin: 12px 0 3px;
  font-size: 27px;
  line-height: 1.15;
  font-weight: 500;
}

.discount-card p {
  margin-bottom: 0;
}

.discount-card--accent {
  border-color: var(--olive);
  background: var(--olive);
  color: #fff;
}

.discount-card--accent span,
.discount-card--accent p {
  color: rgba(255, 255, 255, 0.8);
}

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.product-card__media {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: #fff;
}

.product-card__media--wardrobe .source-image {
  width: 357.9%;
  left: -47.5%;
  top: -22%;
}

.product-card__media--bed .source-image {
  width: 283%;
  left: -37%;
  top: -20%;
}

.product-card__media--nightstand .source-image {
  width: 416%;
  left: -53%;
  top: -53%;
}

.product-badge {
  position: absolute;
  z-index: 2;
  top: 15px;
  left: 15px;
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.product-card__body {
  padding: 20px;
}

.stock {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.stock span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
}

.product-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 500;
}

.product-card__price {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
}

.product-card__price strong {
  color: var(--text);
  font-size: 27px;
  font-weight: 500;
}

.product-card__footer {
  justify-content: space-between;
  gap: 12px;
}

.product-card__footer small {
  color: var(--muted);
}

.custom-order {
  display: flex;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.custom-order__content {
  padding: 70px 48px;
  border-radius: var(--radius);
  background: var(--beige-soft);
  min-height: 520px;

}

.custom-order__benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.custom-order__benefits li {
  padding: 14px;
  border-radius: 8px;
  background: var(--surface);
}

.custom-order__benefits li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--olive-dark);
  font-weight: 700;
}

.request-form {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  min-height: 520px;
}

.request-form h2 {
  margin-bottom: 22px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 500;
}

.form-field {
  margin-bottom: 5px;
}

.form-field label {
  display: block;
  margin-bottom: 5px;
}

.form-field input,
.form-field textarea,
.quick-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--page);
  color: var(--text);
}

.form-field input{
  margin: 0;    
}

.form-field input,
.quick-form input {
  min-height: 46px;
  padding: 10px 12px;
}

.form-field textarea {
  min-height: 96px;
  padding: 11px 12px;
  resize: vertical;
}

.form-field input[type="file"] {
  padding: 8px;
  border-style: dashed;
}

.form-field.is-invalid input,
.form-field.is-invalid textarea {
  border-color: #b53e3e;
}

.field-help,
.field-error,
.form-note,
.form-status {
  display: block;
  margin-top: 6px;
  font-size: 13px;
}

.field-help,
.form-note {
  color: var(--muted);
}

.field-error {
  min-height: 1em;
  color: #a52f2f;
}

.form-note {
  margin-bottom: 0;
  text-align: center;
}

.form-status {
  margin-bottom: 0;
  color: var(--olive-dark);
  font-weight: 700;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.audience-grid article,
.process-grid article {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.audience-grid article {
  min-height: 92px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  font-weight: 700;
  align-items:center;
}

.audience-grid article::before {
  content: "✓";
  align-self: center;
  margin-right: 9px;
  color: var(--olive-dark);
}

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

.trust-grid article {
  padding: 20px 0;
  border-top: 2px solid var(--olive);
}

.trust-grid strong,
.trust-grid article > span {
  display: block;
}

.trust-grid strong {
  margin-bottom: 4px;
  font-size: 31px;
  line-height: 1.1;
  font-weight: 500;
}

.trust-grid article > span {
  color: var(--muted);
}

.star {
  display: inline;
  color: #efa41c;
  font-size: 20px;
}

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

.process-grid article {
  padding: 22px;
}

.process-grid strong {
  color: var(--olive-dark);
  font-size: 27px;
  font-weight: 500;
}

.process-grid h3 {
  margin: 15px 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.process-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.final-cta {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
  padding: clamp(28px, 4vw, 46px);
  border-radius: var(--radius);
  background: var(--olive);
  color: #fff;
}

.final-cta h2 {
  max-width: 650px;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.8);
}

.quick-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
}

.quick-form input {
  border: 0;
  background: #fff;
  color: var(--text);
}

.quick-form button {
  max-height: 46px;
  padding: 10px 17px;
  border: 0;
  border-radius: 6px;
  background: #292a21;
  color: #fff;
  font-weight: 700;
}

.quick-form .form-status {
  grid-column: 1 / -1;
  color: #fff;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.site-footer .container {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

@media (max-width: 1120px) {
  .main-navigation__links a {
    padding-inline: 10px;
    font-size: 14px;
  }

  .hero {
    grid-template-columns: 1fr 0.9fr;
    gap: 18px;
  }

  .hero__content {
    padding: 34px;
  }

  .product-card__media {
    height: 260px;
  }

  .quick-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .topbar,
  .search,
  .desktop-action,
  .main-navigation__links {
    display: none;
  }

  .mainbar {
    min-height: 64px;
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: grid;
  }

  .main-navigation {
    min-height: auto;
    padding-top: 8px;
    padding-bottom: 10px;
  }

  .catalog-link {
    flex: 1;
    text-align: center;
  }

  .main-navigation.is-open {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    width: 100%;
    display: block;
    padding: 12px 20px 20px;
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .main-navigation.is-open .catalog-link {
    display: block;
    margin-bottom: 10px;
  }

  .main-navigation.is-open .main-navigation__links {
    display: grid;
    gap: 8px;
  }

  .hero,
  .custom-order,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .hero-gallery {
    min-height: 440px;
  }

  .discount-grid,
  .trust-grid,
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
  }

  .product-card__media {
    height: 100%;
    min-height: 300px;
  }

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

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .mainbar {
    width: calc(100% - 28px);
  }

  .breadcrumbs {
    display: none;
  }
  
  .catalog__content{
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .main-navigation {
    width: calc(100% - 28px);
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 30px;
  }

  .hero__content {
    min-height: 0;
    padding: 26px 20px;
  }

  .hero h1 {
    font-size: 39px;
    letter-spacing: -1.2px;
  }

  .hero__content > p {
    font-size: 16px;
  }

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

  .hero__benefits {
    display: grid;
    gap: 12px;
  }

  .hero-gallery {
    min-height: 380px;
  }

  .volume-badge {
    left: 14px;
    bottom: 14px;
  }

  .section {
    padding: 38px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading .button,
  .section-heading .text-link {
    width: 100%;
    margin-top: 18px;
  }

  .section-heading h2,
  .custom-order__content h2,
  .final-cta h2 {
    font-size: 30px;
  }

  .discount-grid {
    gap: 9px;
  }

  .discount-card {
    min-height: 135px;
    padding: 16px;
  }

  .discount-card strong {
    font-size: 23px;
  }

  .product-card {
    display: block;
  }

  .product-card__media {
    height: 275px;
    min-height: 0;
  }

  .product-card__footer {
    align-items: flex-end;
  }
  
  .custom-order{
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .custom-order__content {
    padding: 25px 20px;
  }

  .custom-order__benefits {
    grid-template-columns: 1fr;
  }

  .request-form {
    width: 100%;
    padding: 24px 18px;
  }

  .audience-grid {
    grid-template-columns: 1fr 1fr;
  }

  .audience-grid article:last-child {
    grid-column: 1 / -1;
  }

  .audience-grid article {
    min-height: 78px;
    padding: 16px;
  }

  .trust-grid {
    gap: 10px;
  }

  .trust-grid strong {
    font-size: 25px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .final-cta {
    padding: 26px 20px;
  }

  .site-footer .container {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 390px) {
  .discount-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero-gallery {
    grid-template-columns: 1.25fr 0.75fr;
  }

  .product-card__price strong {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

}
