:root {
  --paper: #f6f3eb;
  --ink: #322e26;
  --rust: #763f32;
  --line: #cfc8b9;
  --serif: Georgia, 'Times New Roman', serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a,
summary {
  transition: color 0.28s ease;
}
button,
input,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button,
summary {
  cursor: pointer;
}
:where(a, button, summary, [tabindex='0']):focus-visible {
  outline: 2px solid #ad7744;
  outline-offset: 4px;
}

.wrap {
  width: min(87.2%, 1450px);
  margin: auto;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}
header {
  height: 79px;
}
nav {
  display: flex;
  gap: 36px;
  font-size: 14px;
  color: #4e4940;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font: 30px var(--serif);
  letter-spacing: -1.4px;
  white-space: nowrap;
}
.brand svg {
  color: var(--rust);
}

.navbtn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 40px;
  transition:
    transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.4s,
    background-color 0.4s;
}
.navbtn {
  border: 1px solid #b8ab98;
  padding: 12px 20px;
}
.btn {
  padding: 16px 24px;
  border: 0;
}
.navbtn svg,
.btn svg {
  flex: none;
  stroke-width: 1.5;
}
.navbtn svg {
  color: var(--rust);
}
.light {
  background: #f4ecd9;
  color: #3f3529;
}
.rust {
  background: var(--rust);
  color: white;
}
.rust:disabled {
  opacity: 0.6;
  cursor: wait;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 565px;
  height: clamp(570px, 72vh, 775px);
  background: #453629;
  color: #fff8eb;
}
.heroimg,
.shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.heroimg {
  object-fit: cover;
  object-position: 50% 49%;
}
.shade {
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(29, 22, 17, 0.86),
      rgba(35, 24, 17, 0.65) 33%,
      rgba(30, 22, 17, 0.14) 65%,
      rgba(30, 22, 17, 0.05)
    ),
    linear-gradient(0deg, rgba(30, 20, 12, 0.45), transparent 25%);
}
.heroInner {
  padding: 25px 6.4vw 58px;
}
.hero-kicker {
  color: #f1d9bc;
  font: italic 17px/1.5 var(--serif);
}
.hero h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
}
.hero h1 {
  font-size: clamp(65px, 7.5vw, 122px);
  line-height: 0.99;
  letter-spacing: -0.054em;
  margin: 25px 0 23px;
}
em {
  font-weight: 400;
}
.hero p {
  line-height: 1.65;
  margin: 0;
  color: #f3ecdf;
  font-size: clamp(15px, 1.15vw, 19px);
}
.actions {
  display: flex;
  align-items: center;
  margin-top: 30px;
}
.scroll-cue {
  position: absolute;
  left: calc(50% - 26px);
  bottom: -26px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--rust);
  background: var(--paper);
  border: 5px solid var(--paper);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px #c9b9a3;
  transition:
    transform 0.3s ease,
    background-color 0.3s;
}

h2 {
  font-size: clamp(46px, 4.7vw, 80px);
  letter-spacing: -0.048em;
  line-height: 1.04;
  margin: 0 0 21px;
}
h2 em {
  color: var(--rust);
}
h3 {
  font-size: 29px;
  line-height: 1.2;
  margin: 18px 0 9px;
}
.story,
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9%;
  padding: 83px 0;
}
.story {
  align-items: center;
}
.story p,
.practice p,
.contact p {
  font-size: 16px;
  line-height: 1.75;
  color: #59554c;
}
.story p,
.contact p {
  max-width: 540px;
}
figure,
blockquote {
  margin: 0;
}
.story img {
  display: block;
  width: 100%;
  height: clamp(240px, 24vw, 400px);
  object-fit: cover;
  border-radius: 10px clamp(55px, 7vw, 105px);
}
details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  margin-top: 24px;
  font-size: 14px;
}
summary {
  font-weight: 600;
}
details a {
  text-decoration: underline;
}

.practice {
  background: #eae6da;
  padding: 76px 0 58px;
}
.practice-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7%;
  align-items: center;
}
.practice-heading h2,
.intro {
  margin: 0;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6%;
  margin-top: 42px;
}
.step-symbol {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--rust);
}
.step-symbol svg {
  flex: none;
  box-sizing: content-box;
  padding: 11px;
  border-radius: 50%;
  background: #f7f3e9;
}
.step-symbol::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #c9bca7;
}
.steps p {
  font-size: 15px;
}
.practice details {
  margin-top: 26px;
}

.reviews {
  padding: clamp(52px, 6.2vw, 94px) 0;
  background: #f5efe5;
  border-bottom: 1px solid #dfd5c6;
}
.reviews-heading {
  text-align: center;
}
.reviews-heading h2 {
  margin: 0;
}
.reviews-heading p {
  font-size: 13px;
  line-height: 1.5;
  margin: 12px 0 28px;
  color: #726455;
}
.review-viewport {
  --slide-width: min(68%, 720px);
  max-width: 1520px;
  margin: 0 auto;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  outline-offset: -3px !important;
  mask-image: linear-gradient(
    90deg,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
}
.review-viewport:active {
  cursor: grabbing;
}
.review-track {
  display: flex;
  align-items: stretch;
  touch-action: pan-y pinch-zoom;
}

.review-slide {
  flex: 0 0 var(--slide-width);
  min-width: 0;
  display: flex;
  padding: 10px clamp(7px, 1vw, 15px) 18px;
  opacity: 0.56;
  transition: opacity 0.45s ease;
}
.review-slide[data-current='true'] {
  opacity: 1;
}
.review-paper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 245px;
  padding: 27px clamp(22px, 4vw, 64px) 32px;
  border-radius: 22px;
  border: 1px solid #dacdb9;
  background: #fffcf5;
  box-shadow: 0 10px 22px -22px #693f2d;
}
.quote-mark {
  height: 36px;
  font: 64px/1 var(--serif);
  color: #ae8260;
}
.review-paper blockquote {
  max-width: 42ch;
  font: clamp(19px, 1.75vw, 28px)/1.4 var(--serif);
  letter-spacing: -0.019em;
  text-wrap: pretty;
}
.review-paper figcaption {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 19px;
  color: var(--rust);
  font: italic 17px/1.3 var(--serif);
}
.review-paper figcaption::before {
  content: '';
  width: 22px;
  height: 1px;
  background: #c5a289;
}
.review-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 7px;
}
.review-dots i {
  width: 6px;
  height: 5px;
  border-radius: 6px;
  background: #c3b3a2;
  transition:
    width 0.35s,
    background-color 0.35s;
}
.review-dots i[data-current='true'] {
  width: 23px;
  background: var(--rust);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
input,
textarea {
  display: block;
  width: 100%;
  margin: 9px 0 19px;
  padding: 12px;
  border: 1px solid #bfb6a8;
  color: var(--ink);
  background: #faf8f1;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 400;
}
textarea {
  resize: vertical;
}
form [role='status'] {
  margin-top: 10px;
  font-size: 14px;
}

@media (hover: hover) {
  .btn:not(:disabled):hover,
  .navbtn:hover {
    transform: scale(1.055);
    box-shadow: 0 5px 18px #38231720;
  }
  .light:hover {
    background: #fff8e7;
  }
  .rust:hover {
    background: #613327;
  }
  .navbtn:hover,
  .scroll-cue:hover {
    background: #ede6d9;
  }
  .scroll-cue:hover {
    transform: scale(1.075);
  }
  nav a:hover,
  summary:hover {
    color: #98553d;
  }
}
.btn:not(:disabled):active,
.navbtn:active,
.scroll-cue:active {
  transform: scale(0.98);
}

@media (max-width: 850px) {
  header {
    height: 66px;
  }
  nav {
    display: none;
  }
  .hero {
    height: 620px;
    min-height: 0;
  }
  .heroInner {
    padding-top: 65px;
  }
  .hero h1 {
    font-size: clamp(65px, 10.4vw, 85px);
  }
  .story,
  .contact {
    gap: 5%;
  }
  .steps {
    gap: 4%;
  }
  .fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .practice-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .intro {
    max-width: 680px;
  }
}
@media (max-width: 600px) {
  .brand {
    font-size: 24px;
    gap: 6px;
  }
  .brand svg {
    width: 32px;
  }
  .navbtn {
    padding: 9px 14px;
    font-size: 13px;
    gap: 7px;
  }
  .hero {
    height: 640px;
    align-items: flex-end;
  }
  .heroInner {
    padding: 0 6.4vw 85px;
  }
  .heroimg {
    object-position: 62% center;
  }
  .shade {
    background: linear-gradient(
      0deg,
      rgba(30, 21, 15, 0.88),
      rgba(31, 21, 17, 0.56) 57%,
      rgba(31, 21, 17, 0.07) 95%
    );
  }
  .hero h1 {
    font-size: clamp(52px, 13.4vw, 80px);
    margin: 20px 0;
  }
  .desktop {
    display: none;
  }
  .btn {
    padding: 14px 19px;
  }
  .story,
  .contact,
  .steps {
    grid-template-columns: 1fr;
  }
  .story,
  .contact {
    padding: 54px 0;
    gap: 25px;
  }
  .story {
    padding-top: 66px;
  }
  .practice {
    padding: 52px 0 38px;
  }
  .steps {
    gap: 24px;
    margin-top: 32px;
  }
  .steps article {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 15px;
  }
  .step-symbol {
    grid-row: span 2;
    align-self: start;
  }
  .step-symbol::after {
    display: none;
  }
  .steps h3 {
    margin: 4px 0 7px;
    font-size: 26px;
  }
  .steps p {
    margin: 0;
  }
  .story p,
  .practice p,
  .contact p {
    font-size: 15px;
  }
  h2 {
    font-size: clamp(39px, 10vw, 48px);
  }

  .review-viewport {
    --slide-width: 87%;
    mask-image: none;
  }
  .review-paper {
    min-height: 240px;
    padding: 20px 19px 24px;
    border-radius: 18px;
  }
  .review-paper blockquote {
    font-size: 20px;
  }
  .reviews-heading p {
    margin-bottom: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before {
    transition-duration: 0s !important;
  }
}

#top {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
}

/*    МОДАЛЬНОЕ ОКНО */

/* Кнопка под отзывами */
.review-action {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* Затемнение фона */
.review-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(30, 24, 19, 0.55);
  backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s,
    visibility 0.35s;
}

.review-modal.active {
  opacity: 1;
  visibility: visible;
}

/* Карточка окна */
.review-modal-card {
  position: relative;
  width: 100%;
  max-width: 470px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 43px 38px;
  border-radius: 25px;
  background: #fffcf5;
  box-shadow: 0 25px 80px rgba(36, 23, 16, 0.22);
  text-align: center;
  transform: translateY(25px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.review-modal.active .review-modal-card {
  transform: translateY(0) scale(1);
}

.review-close {
  position: absolute;
  top: 15px;
  right: 20px;
  border: none;
  background: transparent;
  color: #8c7765;
  font-size: 30px;
  cursor: pointer;
}

.review-modal-symbol {
  display: block;
  margin-bottom: 12px;
  color: #ae8260;
  font-size: 35px;
}

.review-modal h3 {
  margin: 0 0 14px;
  font:
    36px/1.15 Georgia,
    serif;
  color: #322e26;
}

.review-modal-description {
  margin: 0 auto 28px;
  max-width: 330px;
  color: #776c60;
  font-size: 14px;
  line-height: 1.7;
}

#reviewForm {
  text-align: left;
}

#reviewForm label {
  display: block;
  margin-bottom: 8px;
  color: #51473d;
}

#reviewForm input,
#reviewForm textarea {
  width: 100%;
  margin-top: 9px;
  padding: 14px;
  border: 1px solid #d8cdbd;
  border-radius: 10px;
  background: #faf7f0;
  outline: none;
  transition: border-color 0.25s;
}

#reviewForm input:focus,
#reviewForm textarea:focus {
  border-color: #763f32;
}

.review-submit {
  width: 100%;
  margin-top: 10px;
}

/* Окно благодарности */
.review-success[hidden] {
  display: none;
}

.review-success-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 25px;
  border-radius: 50%;
  background: #e7ebdd;
  color: #55734b;
  font-size: 38px;
  animation: reviewPop 0.5s ease both;
}

.review-success p {
  margin: 16px auto 28px;
  max-width: 330px;
  color: #776c60;
  line-height: 1.7;
}

@keyframes reviewPop {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .review-modal-card {
    padding: 38px 23px;
    border-radius: 20px;
  }

  .review-modal h3 {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .review-modal,
  .review-modal-card,
  .review-success-icon {
    transition: none;
    animation: none;
  }
}

/* Сообщение о повторном отзыве */
.review-already {
  text-align: center;
  padding: 15px 0;
}

.review-already[hidden] {
  display: none;
}

.review-already-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 25px;
  border-radius: 50%;
  background: #eee4d8;
  color: #763f32;
  font-size: 34px;
}

.review-already p {
  max-width: 330px;
  margin: 16px auto 28px;
  color: #776c60;
  line-height: 1.7;
}

/* ==============================
   FOOTER
============================== */

.site-footer {
  display: block;
  width: 100%;
  padding: 58px 0 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

/* Основная часть */

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-about {
  max-width: 440px;
}

.footer-about .brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font: 30px var(--serif);
  letter-spacing: -1.4px;
}

.footer-about .brand svg {
  flex-shrink: 0;
  color: var(--rust);
}

.footer-about p {
  margin: 18px 0 0;
  color: #76695c;
  font-size: 14px;
  line-height: 1.8;
}

/* Навигация */

.footer-navigation {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  min-width: 150px;
}

.footer-navigation h4 {
  margin: 0 0 7px;
  color: var(--rust);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-navigation a {
  color: #51473d;
  font-size: 14px;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

/* Нижняя часть */

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 25px;
  border-top: 1px solid var(--line);
  color: #8c7e70;
  font-size: 12px;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Кнопка наверх */

.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--rust);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.footer-top span {
  font-size: 19px;
  line-height: 1;
}

/* Наведение */

@media (hover: hover) {
  .footer-navigation a:hover {
    color: var(--rust);
    transform: translateX(4px);
  }

  .footer-top:hover {
    transform: translateY(-3px);
  }
}

/* Планшеты */

@media (max-width: 850px) {
  .site-footer {
    padding-top: 48px;
  }

  .footer-main {
    gap: 35px;
    padding-bottom: 40px;
  }
}

/* Телефоны */

@media (max-width: 600px) {
  .site-footer {
    padding-top: 40px;
  }

  .footer-main {
    flex-direction: column;
    gap: 34px;
    padding-bottom: 35px;
  }

  .footer-about .brand {
    font-size: 25px;
    gap: 7px;
  }

  .footer-about .brand svg {
    width: 34px;
    height: 34px;
  }

  .footer-about p {
    margin-top: 14px;
    font-size: 13px;
  }

  .footer-navigation {
    gap: 12px;
  }

  .footer-navigation h4 {
    margin-bottom: 5px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-top: 20px;
    padding-bottom: 24px;
  }

  .footer-bottom-links {
    width: 100%;
    justify-content: space-between;
    gap: 16px;
  }
}

/* Основные стили прайса */
.pricing-list {
  width: min(87.2%, 1100px);
  margin: 65px auto;
  border-top: 1px solid #cfc8b9;
  border-bottom: 1px solid #cfc8b9;
}

.pricing-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 35px 10px;
}

/* И только потом адаптация */
@media (max-width: 600px) {
  .pricing-item {
    padding: 26px 0;
    gap: 15px;
  }
}

.pricing-price {
  font-family: Arial, sans-serif;
  font-size: 25px;
}

/* ==========================================
   МОДАЛЬНОЕ ОКНО УСПЕШНОЙ ЗАЯВКИ
========================================== */

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;
  background: rgba(30, 24, 19, 0.55);
  backdrop-filter: blur(7px);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.contact-modal.active {
  opacity: 1;
  visibility: visible;
}

.contact-modal-card {
  position: relative;
  width: 100%;
  max-width: 470px;
  max-height: 90vh;
  overflow-y: auto;

  padding: 45px 38px;
  border-radius: 25px;
  background: #fffcf5;

  text-align: center;
  box-shadow: 0 25px 80px rgba(36, 23, 16, 0.22);

  transform: translateY(25px) scale(0.96);
  transition: transform 0.4s ease;
}

.contact-modal.active .contact-modal-card {
  transform: translateY(0) scale(1);
}

.contact-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;

  border: none;
  background: transparent;
  color: #8c7765;
  font-size: 30px;
  cursor: pointer;
}

.contact-modal-icon {
  display: grid;
  place-items: center;

  width: 74px;
  height: 74px;
  margin: 0 auto 18px;

  border-radius: 50%;
  background: #e7ebdd;
  color: #55734b;
  font-size: 38px;
}

.contact-modal-symbol {
  display: block;
  margin-bottom: 12px;
  color: #ae8260;
  font-size: 25px;
}

.contact-modal-card h3 {
  margin: 0 0 18px;
  color: #322e26;
  font:
    36px/1.15 Georgia,
    serif;
}

.contact-modal-card p {
  max-width: 340px;
  margin: 0 auto 28px;
  color: #776c60;
  font-size: 15px;
  line-height: 1.8;
}

.contact-modal-card .btn {
  min-width: 170px;
}

/* Скрытое поле для защиты от ботов */
.contact-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  left: -9999px;
}

/* Адаптация под телефон */
@media (max-width: 600px) {
  .contact-modal-card {
    padding: 38px 23px;
    border-radius: 20px;
  }

  .contact-modal-card h3 {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-modal,
  .contact-modal-card {
    transition: none;
  }
}

.sity {
  font-family: Georgia, sans-serif;
  padding-top: 40px;
  font-size: 10px;
}
