:root {
  --page: #ebe8e3;
  --dark: #21342d;
  --muted: #46534e;
  --accent: #d8c99d;
  --cream: #f4ecd2;
  --canvas: 1570px;
  --side: clamp(80px, 10.2vw, 160px);
}

@font-face {
  font-family: "Castoro";
  src: url("../fonts/castoro/Castoro-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Catamaran";
  src: url("../fonts/catamaran/Catamaran-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Clicker Script";
  src: url("../fonts/clicker-script/ClickerScript-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  color: var(--dark);
  background: var(--page);
  font-family: "Catamaran", Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

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

.hero {
  min-height: 860px;
  height: min(1249px, calc(100vw * 0.7952));
  background:
    linear-gradient(90deg, rgba(7, 12, 9, 0.08), rgba(7, 12, 9, 0.02)),
    url("../images/construction/hero-interior.png") center top / cover no-repeat;
}

.hero-inner {
  width: min(calc(100% - (2 * var(--side))), calc(var(--canvas) - 320px));
  height: 100%;
  margin: 0 auto;
  padding-top: 70px;
}

.hero-logo-link {
  display: inline-block;
  margin-bottom: 145px;
  text-decoration: none;
}

.hero-logo {
  width: 308px;
  height: auto;
  filter: brightness(0) invert(1);
}

.hero-content {
  max-width: 1040px;
}

.hero-title {
  margin-bottom: 38px;
  color: #f5f1e8;
  font-family: "Castoro", Georgia, "Times New Roman", serif;
  font-size: 58px;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-desc {
  max-width: 600px;
  margin-bottom: 36px;
  color: #ECE9E5;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 380px;
  min-height: 72px;
  padding: 18px 36px;
  gap: 30px;
  color: var(--dark);
  background: var(--cream);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-btn:hover,
.hero-btn:focus-visible {
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
  transform: translateY(-3px);
}

.section {
  width: min(calc(100% - (2 * var(--side))), calc(var(--canvas) - 320px));
  margin: 0 auto;
}

.offer {
  padding: 112px 0 118px;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 48px;
  color: #2f3d38;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -14px;
  width: 86px;
  height: 1px;
  background: var(--accent);
}

.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(120px, 17vw, 280px);
}

.offer-column {
  display: grid;
  gap: 34px;
}

.offer-item {
  display: grid;
  grid-template-columns: 138px 1fr;
  align-items: center;
  gap: 28px;
  color: #263730;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.28;
}

.offer-accordion {
  align-items: start;
}

.accordion-content {
  min-width: 0;
}

.accordion-trigger {
  display: inline-block;
  appearance: none;
  padding: 0;
  border: 0;
  color: #263730;
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.accordion-trigger:hover,
.accordion-trigger:focus-visible {
  color: #111c18;
}

.accordion-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.accordion-trigger:focus-visible {
  outline: 0;
  text-decoration-thickness: 2px;
}

.accordion-panel {
  position: relative;
  width: min(100%, 560px);
  margin-top: 10px;
  padding: 22px 54px 50px 22px;
  color: #f4f0e6;
  background: #21342d;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.62;
  animation: accordion-open 0.22s ease;
}

.accordion-panel[hidden] {
  display: none;
}

.accordion-close {
  position: absolute;
  right: 20px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 26px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.accordion-close span {
  width: 16px;
  height: 16px;
  border-top: 3px solid #f4ecd2;
  border-left: 3px solid #f4ecd2;
  transform: translateY(4px) rotate(45deg);
}

@keyframes accordion-open {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.offer-icon {
  display: grid;
  place-items: center;
  width: 126px;
  height: 126px;
  border: 2px solid #b9b8b3;
  border-radius: 50%;
  background: #f1efea;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
}

.offer-icon img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.image-break {
  height: 620px;
  overflow: hidden;
}

.image-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.text-section {
  padding: 0 0 96px;
}

.text-section + .image-break {
  margin-top: 0;
}

.finishing-info {
  margin-top: -18px;
}

.cooperation {
  padding-top: 78px;
}

.text-title {
  max-width: 1180px;
  margin-bottom: 34px;
  color: #43504b;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
}

.text-title-marked::before {
  content: "";
  display: block;
  width: 86px;
  height: 1px;
  margin-bottom: 30px;
  background: var(--accent);
}

.text-block {
  max-width: 1190px;
  color: #46534e;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.72;
}

.text-block p + p {
  margin-top: 30px;
}

.process-list {
  display: grid;
  gap: 36px;
}

.process-step h3 {
  display: inline-block;
  margin-bottom: 18px;
  color: #43504b;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.process-step p {
  max-width: 1160px;
}

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

.contact-inner {
  width: min(calc(100% - (2 * var(--side))), calc(var(--canvas) - 320px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.contact-lead {
  max-width: 980px;
  margin-bottom: 64px;
  font-size: 29px;
  font-weight: 600;
  line-height: 1.48;
  letter-spacing: 0.05em;
}

.script {
  margin-bottom: 12px;
  font-family: "Clicker Script", "Brush Script MT", cursive;
  font-size: 62px;
  line-height: 1.2;
  white-space: nowrap;
}

.script::after {
  content: "";
  display: block;
  width: 104px;
  height: 2px;
  margin-top: 12px;
  background: var(--accent);
}

.contact-line {
  height: 1px;
  margin: 58px 0 48px;
  background: rgba(233, 228, 215, 0.45);
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 82px;
  text-decoration: none;
}

.contact-item + .contact-item {
  padding-left: 96px;
  border-left: 1px solid rgba(233, 228, 215, 0.45);
}

.contact-icon {
  min-width: 56px;
  color: #f2ead7;
  font-size: 62px;
  line-height: 1;
}

.contact-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

.contact-item span:last-child {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
}

@media (max-width: 1180px) {
  .hero-inner,
  .section,
  .contact-inner {
    width: min(100% - 80px, var(--canvas));
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-desc {
    font-size: 22px;
  }

  .offer-grid {
    gap: 80px;
  }
}

@media (max-width: 820px) {
  .hero {
    height: auto;
    min-height: 760px;
    background-position: 68% top;
  }

  .hero-inner,
  .section,
  .contact-inner {
    width: min(100% - 40px, var(--canvas));
  }

  .hero-inner {
    padding-top: 42px;
  }

  .hero-logo-link {
    margin-bottom: 110px;
  }

  .hero-logo {
    width: 220px;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-desc {
    font-size: 21px;
  }

  .offer-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .text-section {
    padding-bottom: 72px;
  }

  .cooperation {
    padding-top: 56px;
  }

  .text-title {
    font-size: 22px;
  }

  .text-block {
    font-size: 17px;
  }

  .contact-item + .contact-item {
    padding-left: 0;
    border-left: 0;
  }

  .script {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 700px;
  }
  .hero-content{
    padding-bottom:20px;
  }
  .hero-title {
    font-size: 30px;
  }

  .hero-btn {
    width: 100%;
    min-width: 0;
  }

  .offer-item {
    grid-template-columns: 96px 1fr;
    gap: 18px;
    font-size: 18px;
  }

  .offer-icon {
    width: 88px;
    height: 88px;
  }

  .offer-icon img {
    width: 48px;
    height: 48px;
  }

  .accordion-panel {
    width: 100%;
    padding: 18px 48px 46px 18px;
    font-size: 17px;
    line-height: 1.55;
  }

  .text-section {
    padding-bottom: 56px;
  }

  .finishing-info {
    margin-top: 0;
  }

  .text-title {
    margin-bottom: 26px;
    font-size: 20px;
  }

  .text-block {
    font-size: 16px;
    line-height: 1.65;
  }

  .text-block p + p {
    margin-top: 22px;
  }

  .process-list {
    gap: 30px;
  }

  .image-break {
    height: 320px;
  }

  .contact-lead {
    font-size: 22px;
  }

  .script {
    font-size: 44px;
  }
}
