:root {
  --header-height: 88px;
  --bg: #ffffff;
  --text: #1c1c1c;
  --muted: #656565;
  --line: #dfdfdf;
  --soft: #f4f4f4;
  --panel: #fff5e6;
  --accent: #f29006;
  --accent-soft: #bb8942;
  --accent-dark: #c66e00;
  --dark: #202020;
  --dark-2: #303030;
  --focus: #f29006;
  --radius: 8px;
  --shadow: 0 20px 50px rgba(22, 22, 22, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding-top: var(--header-height);
  color: var(--text);
  background: var(--bg);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  object-fit: cover;
}

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

a:hover {
  color: var(--accent-dark);
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  color: #1c1c1c;
  background: rgba(242, 144, 6, 0.34);
}

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

.job-example_description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-grid {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}

.logo {
  display: grid;
  grid-template-columns: 140px auto;
  /* gap: 12px; */
  align-items: center;
  font-weight: 800;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--dark);
  border-radius: 6px;
}

.logo-text {
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 22px;
  justify-content: center;
  color: var(--muted);
  font-size: 15px;
}

.header-actions {
  display: grid;
  grid-template-columns: auto 38px 38px auto;
  gap: 10px;
  align-items: center;
}

.phone-link {
  font-weight: 750;
  white-space: nowrap;
}

.icon-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #797979;
}

.icon-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.button {
  display: inline-grid;
  place-items: center;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.button-small {
  min-height: 42px;
  padding: 0 16px;
}

.section {
  padding: 92px 0;
}

.section-dark {
  color: #fff;
  background:
    linear-gradient(
      90deg,
      rgba(16, 16, 16, 0.94),
      rgba(16, 16, 16, 0.74) 48%,
      rgba(16, 16, 16, 0.42)
    ),
    url("assets/price-live-in-backgr-minifi-1440.jpg") center / cover;
}

.section-commerce {
  color: #fff;
  background:
    linear-gradient(
      90deg,
      rgba(16, 16, 16, 0.94),
      rgba(16, 16, 16, 0.74) 48%,
      rgba(16, 16, 16, 0.42)
    ),
    url("assets/restoran-5-mini.jpg") center / cover;
}

.hero {
  /*   min-height: calc(100vh - var(--header-height)); */
  padding-top: 80px;
  display: grid;
  align-items: start;
  padding: 58px 0 0;
  overflow-x: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 70px;
  align-items: start;
}

.hero-copy {
  grid-column: auto;
  align-self: start;
  padding-bottom: 34px;
  transform: translateY(26px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

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

h2,
.very-wide-titles {
  hyphens: auto;
  overflow-wrap: break-word;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(64px, 6.4vw, 96px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-subtitle {
  margin-top: 24px;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.28;
}

.hero-subtitle strong {
  color: #fff;
  font-weight: 900;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.18;
}

.hero-reasons {
  margin: 72px 0 0 0;
  position: relative;
  grid-column: 1 / -1;
  isolation: isolate;
  background: #fff;
  color: var(--text);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.hero-reasons::before {
  content: "";
  position: absolute;
  inset: 0 50%;
  z-index: -1;
  width: 100vw;
  margin-left: -50vw;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

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

.reason-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reason-list li {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px 18px;
  align-items: start;
  align-content: start;
  min-height: 178px;
  padding: 32px 24px;
  color: var(--text);
  background: #fff;
  border-right: 1px solid var(--line);
  transition: background 0.2s ease;
}

.reason-list li:first-child {
  border-left: 1px solid var(--line);
}

.reason-list li:hover {
  background: #fff0d9;
}

.reason-number {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: #fff;
  background: var(--accent);
  border-radius: 6px;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.reason-list strong {
  align-self: end;
  font-size: 22px;
  line-height: 1.1;
}

.reason-list span:last-child {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.lead-panel {
  width: 100%;
  max-width: 430px;
  margin-top: 52px;
  justify-self: end;
  align-self: start;
  padding: 26px;
  transform: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lead-panel h2 {
  font-size: 34px;
  margin-bottom: 12px;
}

.lead-panel p {
  color: var(--muted);
}

.callback-form {
  display: grid;
  gap: 16px;
}

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

.field label {
  font-size: 14px;
  font-weight: 800;
}

.field input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(242, 144, 6, 0.18);
  outline: none;
}

.consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 13px;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 38px;
}

.section-heading.wide {
  max-width: 860px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

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

.price-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 12px;
  min-height: 320px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.price-card.featured {
  border-color: rgba(242, 144, 6, 0.5);
  background: var(--panel);
}

.price-card p {
  color: var(--muted);
}

.price-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  border: 1px solid rgba(242, 144, 6, 0.18);
  background: #fff5e6;
  object-fit: cover;
}

.price-card strong,
.work-card strong,
.work-detail-price {
  font-size: 24px;
  color: var(--accent-dark);
}

.price-card .button {
  justify-self: start;
  margin-top: 6px;
}

.muted {
  background: var(--soft);
}

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

.specialist {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 118px;
  padding: 18px;
  border: 1px solid #e7e7e7;
  border-radius: var(--radius);
  background: #fff;
}

.specialist h3 {
  margin: 0;
  font-size: 18px;
}

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

.sofa-develope_lead-panel {
  margin-top: 24px;
}

.trade-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 6px;
  background: #fff0d9;
  color: var(--accent-dark);
}

.trade-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel {
  position: relative;
}

.carousel-controls {
  position: absolute;
  top: -82px;
  right: 0;
  display: grid;
  grid-template-columns: 48px 48px;
  gap: 10px;
}

.round-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 8px;
}

.round-button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.carousel-viewport {
  overflow: hidden;
}

.work-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 3);
  gap: 20px;
  transition: transform 0.35s ease;
}

.work-card {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 14px;
  min-height: 460px;
  padding: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.work-open {
  display: grid;
  gap: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.work-open img {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.work-open span,
.work-card p,
.work-card strong {
  margin-left: 20px;
  margin-right: 20px;
}

.work-open span {
  font-size: 24px;
  font-weight: 850;
}

.work-card p {
  color: var(--muted);
}

.contact-section {
  background: var(--dark);
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 48px;
  align-items: center;
}

.contact-grid p {
  max-width: 650px;
  /* color: #d3d3d3; */
  color: white;
  font-size: 19px;
}

.contact-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: var(--dark-2);
  font-style: normal;
}

.contact-card > a {
  font-size: 24px;
  font-weight: 800;
}

.contact-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.messenger-button {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-weight: 800;
}

.messenger-button_accent {
  background-color: var(--accent);
  font-weight: 700;
}

.messenger-attention {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.messenger-button:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(242, 144, 6, 0.18);
}

.site-footer {
  padding: 44px 0;
  background: #f4f4f4;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 24px;
  font-weight: 750;
}

.legal {
  max-width: 860px;
  color: var(--muted);
  font-size: 13px;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal-window {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 30px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.callback-window {
  width: min(100%, 440px);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  padding: 0 0 5px 2px;
}

.work-window {
  width: min(100%, 1120px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 28px;
  align-items: start;
}

.work-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 12px;
  height: min(54vh, 460px);
  min-height: 340px;
}

.gallery-main {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.gallery-thumbs {
  display: grid;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: 10px;
  min-height: 0;
}

.gallery-thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}

.gallery-thumbs button.is-active {
  border-color: var(--accent);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-detail {
  align-self: center;
}

.work-detail-text {
  color: var(--muted);
  white-space: pre-line;
}

@media (max-width: 1060px) {
  :root {
    --header-height: 100px;
  }

  .header-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 0;
  }

  .site-header,
  .header-grid {
    min-height: var(--header-height);
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  }

  .main-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .header-actions {
    grid-template-columns: auto 38px 38px auto;
    justify-content: start;
  }

  .hero-grid,
  .contact-grid,
  .work-window {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-bottom: 0;
    transform: none;
  }

  .lead-panel {
    grid-column: auto;
    justify-self: stretch;
    max-width: none;
    margin-top: 0;
    transform: none;
  }

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

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

  .logo {
    display: none;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .section {
    padding: 66px 0;
  }

  .hero {
    min-height: auto;
    padding: 52px 0;
  }

  .reason-list {
    grid-template-columns: 1fr;
  }

  .hero-reasons {
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    border-radius: var(--radius);
    overflow: hidden;
  }

  .reason-list li,
  .reason-list li:first-child {
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

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

  .sofa-develope_container {
    grid-template-columns: minmax(250px, 480px);
    justify-content: center;
  }

  .work-track {
    grid-auto-columns: calc((100% - 16px) / 2);
    gap: 16px;
  }

  .carousel-controls {
    position: static;
    justify-content: start;
    margin-bottom: 18px;
  }

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

  .work-gallery {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }

  /* .gallery-main {
    height: min(58vh, 420px);
  } */

  .gallery-thumbs {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 82px;
  }
}

@media (max-width: 580px) {
  :root {
    --header-height: 140px;
  }

  .header-grid {
    gap: 6px;
  }

  .header-actions {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .header-actions .button-small {
    grid-column: 1 / -1;
  }

  .icon-link {
    width: 100%;
  }

  .main-nav {
    display: none;
    /* gap: 16px;
    font-size: 14px; */
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 32px;
  }

  .lead-panel,
  .price-card,
  .contact-card,
  .modal-window {
    padding: 22px;
  }

  .reason-list {
    font-size: 17px;
  }

  .work-track {
    grid-auto-columns: 100%;
  }

  .contact-buttons {
    grid-template-columns: 1fr;
  }

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

/* Ошибка ввода формы обратной связи RegEx */

.field-error {
  display: none;
  margin-top: 6px;
  font-size: 14px;
}

input:not(:placeholder-shown):invalid + .field-error {
  display: block;
}

/* Скрываем ошибку при корректном номере */

input:valid + .field-error {
  display: none;
}

/* Акцентная ссылка на форме ОС*/

.color-link {
  color: var(--accent-soft);
}
