:root {
  color-scheme: light;
  --bg: #f7f3ef;
  --ink: #2a211c;
  --muted: #6b5a50;
  --line: rgba(42, 33, 28, 0.14);
  --card: #fffaf5;
  --brown: #573222;
  --amber: #fab005;
  --red: #d9480f;
  --green: #2f6f5e;
  --bright-green: #20c997;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 96px;
  background:
    radial-gradient(circle at top left, rgba(250, 176, 5, 0.16), transparent 30rem),
    linear-gradient(180deg, #fbf8f4 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

.page {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 14px 14px 30px;
}

.hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border-radius: 8px;
  background: #1c1714;
  isolation: isolate;
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero__shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.76) 78%);
  z-index: -1;
}

.hero__content {
  min-height: 610px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px 20px;
  color: #fff;
}

.brand {
  width: fit-content;
  margin: 0 0 12px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 700;
}

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

h1 {
  max-width: 10ch;
  margin-bottom: 14px;
  font-size: 43px;
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.45;
}

.hero__actions,
.links {
  display: grid;
  gap: 10px;
}

.button {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  overflow: hidden;
}

.button::after,
.contact-phone::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  width: 34%;
  left: -60%;
  transform: rotate(20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  animation: shine 4.6s ease-in-out infinite;
}

.button--ghost::after {
  animation-delay: 1.2s;
}

.button--accent {
  background: var(--amber);
  color: #221911;
  box-shadow: 0 12px 24px rgba(250, 176, 5, 0.26);
}

.button--ghost {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(12px);
}

.button--phone {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: var(--bright-green);
  color: #fff;
  box-shadow: 0 12px 26px rgba(32, 201, 151, 0.24);
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 18px;
}

.summary div {
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.summary b,
.summary span {
  display: block;
}

.summary b {
  margin-bottom: 10px;
  color: var(--brown);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.summary span {
  color: #4f3f36;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.38;
}

.section,
.contacts,
.cta {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 245, 0.82);
}

.contacts {
  display: grid;
  gap: 14px;
}

.contacts h2 {
  margin-bottom: 0;
}

.section h2,
.contacts h2 {
  margin-bottom: 14px;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.1;
}

.section__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section__top h2 {
  margin: 0;
}

.section__top a {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.features {
  display: grid;
  gap: 10px;
}

.features article {
  padding: 16px;
  border-radius: 8px;
  background: #f0e5dd;
}

.features span {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.features h3 {
  font-weight: 700;
}

.features h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.features p,
.faq p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 220px;
  gap: 10px;
}

.shot {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-image:
    linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.68)),
    var(--shot-image);
  background-size: cover;
  background-position: center;
}

.shot--kitchen {
  --shot-image: url("assets/category-kitchen.png");
}

.shot--wardrobe {
  --shot-image: url("assets/category-wardrobe.png");
}

.shot--kids {
  --shot-image: url("assets/category-kids.png");
}

.shot--cabinet {
  --shot-image: url("assets/category-cabinet.png");
}

.shot--wide {
  background-position: center 42%;
}

.shot--tall {
  background-position: center;
}

.shot--soft {
  background-position: center;
}

.shot span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}

.cta {
  display: grid;
  gap: 14px;
  background: var(--brown);
  color: #fff;
}

.cta p {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

.benefits {
  background: #f6f6f4;
}

.benefit-list {
  display: grid;
  gap: 22px;
}

.benefit-list article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: start;
}

.benefit-icon {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
}

.benefit-list h3 {
  margin-bottom: 6px;
  font-size: 20px;
  line-height: 1.16;
}

.benefit-list p {
  margin: 0;
  color: #191512;
  font-size: 17px;
  line-height: 1.45;
}

.faq {
  display: grid;
  gap: 8px;
}

details {
  border-radius: 8px;
  background: #f0e5dd;
}

summary {
  cursor: pointer;
  padding: 15px 16px;
  font-weight: 700;
}

details p {
  padding: 0 16px 16px;
}

.contact-link {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
}

.contact-phone {
  position: relative;
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bright-green);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(32, 201, 151, 0.28);
}

.contact-link--vk {
  background: #2f6fbc;
}

.contact-link--site {
  background: linear-gradient(135deg, #ff7a18 0%, #fab005 100%);
  color: #1f160c;
  box-shadow: 0 12px 26px rgba(250, 176, 5, 0.22);
}

.contact-link--max {
  background: #7950f2;
}

.contact-link--map {
  background: var(--green);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal.is-open {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 16, 12, 0.68);
  backdrop-filter: blur(5px);
}

.modal__dialog {
  position: relative;
  width: min(100%, 480px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 8px;
  background: #fffaf5;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(27, 18, 13, 0.36);
}

.modal__dialog h2 {
  margin-bottom: 8px;
  font-size: 27px;
  line-height: 1.1;
}

.modal__dialog p {
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.result-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.result-card {
  width: min(100%, 560px);
}

.result-card h1 {
  max-width: none;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.08;
}

.result-card p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f0e5dd;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

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

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  outline: none;
}

.lead-form .consent {
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.lead-form .consent input {
  width: 18px;
  min-height: 18px;
  margin: 1px 0 0;
  accent-color: var(--amber);
}

.lead-form .consent a {
  color: var(--green);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lead-form input {
  min-height: 52px;
  padding: 0 14px;
}

.lead-form textarea {
  resize: vertical;
  min-height: 94px;
  padding: 13px 14px;
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(250, 176, 5, 0.18);
}

.floating-cta {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 15;
  display: grid;
  width: min(calc(100% - 24px), 640px);
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  transform: translateX(-50%);
  border: 1px solid rgba(42, 33, 28, 0.1);
  border-radius: 10px;
  background: rgba(255, 250, 245, 0.9);
  padding: 10px;
  box-shadow: 0 18px 45px rgba(42, 33, 28, 0.18);
  backdrop-filter: blur(14px);
}

.floating-cta .button {
  min-height: 56px;
}

.cookie-notice {
  position: fixed;
  right: 14px;
  bottom: 98px;
  z-index: 16;
  display: none;
  width: min(calc(100% - 28px), 420px);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(42, 33, 28, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 245, 0.96);
  padding: 14px;
  box-shadow: 0 18px 45px rgba(42, 33, 28, 0.16);
}

.cookie-notice.is-visible {
  display: grid;
  grid-template-columns: 1fr auto;
}

.cookie-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.cookie-notice a {
  color: var(--green);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-notice__button {
  min-width: 58px;
  min-height: 42px;
  border-radius: 8px;
  background: var(--amber);
  color: #221911;
  font-weight: 800;
}

.policy-page {
  width: min(100%, 860px);
}

.policy-card h1 {
  max-width: none;
  color: var(--ink);
  font-size: 42px;
  line-height: 1.05;
}

.policy-card h2 {
  margin: 22px 0 8px;
  font-size: 22px;
}

.policy-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

@keyframes shine {
  0%,
  55% {
    left: -60%;
  }

  72%,
  100% {
    left: 130%;
  }
}

@media (min-width: 760px) {
  .page {
    width: min(100%, 820px);
    padding-top: 24px;
  }

  .hero,
  .hero__content {
    min-height: 660px;
  }

  .hero__content {
    padding: 42px;
  }

  h1 {
    max-width: 12ch;
    font-size: 62px;
  }

  .lead {
    max-width: 570px;
    font-size: 20px;
  }

  .hero__actions,
  .links {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 300px;
    grid-auto-rows: 220px;
  }

  .shot--wide {
    grid-column: span 2;
  }
}

@media (min-width: 1120px) {
  .page {
    width: min(100%, 860px);
  }

  .hero,
  .hero__content {
    min-height: 600px;
  }

  h1 {
    max-width: 13ch;
  }

  .summary {
    gap: 12px;
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 300px 220px;
  }

  .shot--wide {
    grid-column: span 3;
  }
}

@media (max-width: 759px) {
  .summary {
    grid-template-columns: 1fr;
  }

  .summary div {
    min-height: auto;
    padding: 18px;
  }

  .summary b {
    font-size: 27px;
  }

  .summary span {
    font-size: 16px;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 210px;
  }

  .shot,
  .shot--wide,
  .shot--tall {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 380px) {
  .page {
    padding-inline: 10px;
  }

  h1 {
    font-size: 36px;
  }

  .section,
  .contacts,
  .cta,
  .modal__dialog {
    padding: 16px;
  }

  .contact-phone {
    font-size: 19px;
  }

  .floating-cta {
    width: calc(100% - 16px);
    gap: 8px;
    padding: 8px;
  }

  .floating-cta .button {
    min-height: 52px;
    padding: 0 10px;
    font-size: 13px;
  }

  .cookie-notice {
    right: 8px;
    bottom: 86px;
    width: calc(100% - 16px);
  }

  .cookie-notice.is-visible {
    grid-template-columns: 1fr;
  }

  .cookie-notice__button {
    width: 100%;
  }
}
