@font-face {
  font-family: Manrope;
  font-display: swap;
  src: url("../fonts/Manrope-Light.woff2") format("woff2"), url("../fonts/Manrope-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: Manrope;
  font-display: swap;
  src: url("../fonts/Manrope-Regular.woff2") format("woff2"), url("../fonts/Manrope-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: Manrope;
  font-display: swap;
  src: url("../fonts/Manrope-Medium.woff2") format("woff2"), url("../fonts/Manrope-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: Manrope;
  font-display: swap;
  src: url("../fonts/Manrope-SemiBold.woff2") format("woff2"), url("../fonts/Manrope-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: Manrope;
  font-display: swap;
  src: url("../fonts/Manrope-Bold.woff2") format("woff2"), url("../fonts/Manrope-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: Literature;
  font-display: swap;
  src: url("../fonts/Literature-Decor.woff2") format("woff2"), url("../fonts/Literature-Decor.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}


:root {
  --light: #E9E1D7;
  --dark: #000000;
  --primary: #974338;
  --bg-light: #FDF5EB;
}

html {
  height: 100%;
  scroll-behavior: smooth;
  font: 500 16px/1.4 Manrope;
  color: var(--primary, #974338);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

input:focus-visible {
  outline: none;
}

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

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  background-color: var(--light, #E9E1D7);
}

ul,
ol {
  padding: 0;
  list-style-position: inside;
}

ul[class],
ol[class] {
  list-style: none;
}

a:not([class]) {
  -webkit-text-decoration-skip: ink;
          text-decoration-skip-ink: auto;
}

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

article > * + * {
  margin-top: 1em;
}

input,
button,
textarea,
select {
  font: inherit;
}

.container {
  max-width: 92.5%;
  width: 100%;
  padding: 0 16px;
  margin: 0 auto;
}

.button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: -moz-max-content;
  width: max-content;
  border: 0;
  line-height: 1;
  transition: opacity 0.3s ease-out;
}

.button span {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease-out;
}

.button:hover:not(:disabled) {
  cursor: pointer;
}

.button:disabled {
  opacity: 0.5;
}

.button-circle {
  width: 220px;
  height: 220px;
  padding: 10px;
  border-radius: 100%;
  border: 1px solid var(--primary, #974338);
  color: var(--primary, #974338);
  background-color: var(--light, #E9E1D7);
  text-align: center;
}

.button-circle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 95%;
  height: 95%;
  border-radius: 100%;
  background-color: var(--primary, #974338);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s ease-out;
}

.button-circle:hover {
  color: var(--light, #E9E1D7);
}

.button-circle:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

.button-primary {
  color: var(--light, #E9E1D7);
  background-color: var(--primary, #974338);
}

.button-primary::before {
  background-color: var(--light, #E9E1D7);
}

.button-primary:hover {
  color: var(--primary, #974338);
}

h1,
h2 {
  font: 500 44px/1.2 Manrope;
}

h3 {
  font: 500 32px/1.2 Manrope;
}

h4 {
  font: 500 24px/1.2 Manrope;
}

h5 {
  font: 500 20px/1.2 Manrope;
}

h6 {
  font: 500 18px/1.2 Manrope;
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  transition: all 0.2s ease-in-out;
}

.header__container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 32px;
  padding-top: 70px;
  color: var(--primary, #974338);
  line-height: 1;
}

.header__container a:not(.header__logo) {
  position: relative;
}

.header__container a:not(.header__logo)::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  height: 1px;
  width: 0;
  background-color: var(--primary, #974338);
  transition: width 0.3s ease-out;
}

.header__container a:not(.header__logo):hover::before {
  width: 100%;
}

.header__nav.open {
  left: 0;
}

.header__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__menu li {
  position: relative;
  z-index: 1;
}

.header__phone {
  position: relative;
  z-index: 1;
  line-height: 1.2em;
  transition: color 0.2s linear;
}

.header__box {
  display: none;
}

.header__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}

.header__group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
  font-size: 14px;
}

.header__group span {
  color: rgba(233, 225, 215, 0.7);
}

.header__socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.header__socials a svg {
  min-width: 32px;
  width: 32px;
  height: 32px;
  pointer-events: none;
  transition: transform 0.3s ease-out;
}

.header__socials a:hover svg {
  transform: scale(1.1);
}

.header__burger {
  position: relative;
  display: none;
  cursor: pointer;
  z-index: 1;
  transition: color 0.2s linear;
}

.header__burger.close,
.header__burger .open {
  pointer-events: none;
}

.header__burger .close {
  display: none;
}

.header__burger .open {
  display: block;
}

.header__burger.active .close {
  display: block;
}

.header__burger.active .open {
  display: none;
}

.header.active .header__burger,
.header.active .header__phone {
  color: var(--light, #E9E1D7);
}

.footer {
  color: var(--light, #E9E1D7);
  background-color: var(--primary, #974338);
}

.footer__container {
  padding: 36px 0;
  line-height: 1;
}

.footer__container a:not(.footer__logo) {
  position: relative;
}

.footer__container a:not(.footer__logo)::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  height: 1px;
  width: 0;
  background-color: var(--light, #E9E1D7);
  transition: width 0.3s ease-out;
}

.footer__container a:not(.footer__logo):hover::before {
  width: 100%;
}

.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer__wrap {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(233, 225, 215, 0.3);
}

.footer__logo {
  width: 210px;
  height: 40px;
}

.footer__logo img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.footer__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer__copy {
  line-height: 1.2em;
}

.section-pad {
  padding: 100px 0;
}

.section-pad-top {
  padding-top: 100px;
}

.section-pad-bottom {
  padding-bottom: 100px;
}

.section-red {
  color: var(--light, #E9E1D7);
  background-color: var(--primary, #974338);
}

.section-hidden {
  overflow: hidden;
}

.title-decor {
  font: 400 120px/1 Literature;
}

.title-sm {
  font: 500 16px/1 Manrope;
}

.title-abs {
  position: absolute;
  top: 80px;
  left: 0;
}

.title-indent {
  margin-bottom: 20px;
}

.text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.text-up {
  text-transform: uppercase;
}

.text-down {
  text-transform: lowercase;
}

.text-left-3 {
  margin-left: 25%;
}

.text-left-4 {
  margin-left: 33%;
}

.col-5 {
  max-width: 532px;
}

.corners {
  position: relative;
}

.corners::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 1px;
  width: calc(100% + 64px);
  height: calc(100% + 120px);
  background: radial-gradient(circle at top left, #974338, transparent 32px), radial-gradient(circle at top right, #974338, transparent 32px), radial-gradient(circle at bottom left, #974338, transparent 32px), radial-gradient(circle at bottom right, #974338, transparent 32px);
  -webkit-mask: linear-gradient(#F0EFE5 0 0) content-box, linear-gradient(#F0EFE5 0 0);
          mask: linear-gradient(#F0EFE5 0 0) content-box, linear-gradient(#F0EFE5 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

.corners-light::before {
  background: radial-gradient(circle at top left, #E9E1D7, transparent 32px), radial-gradient(circle at top right, #E9E1D7, transparent 32px), radial-gradient(circle at bottom left, #E9E1D7, transparent 32px), radial-gradient(circle at bottom right, #E9E1D7, transparent 32px);
}

.tabs__nav {
  position: relative;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
/*   width: 100%; */
  line-height: 1;
}

.tabs__content {
  display: block;
  overflow: hidden;
}

.modals {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: none;
  width: 100%;
  height: 100%;
  background-color: rgba(151, 67, 56, 0.2);
  z-index: 3;
}

.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 760px;
  max-width: 792px;
  width: 100%;
  padding: 16px;
  overflow-x: hidden;
  overflow-y: auto;
}

.modal__container {
  background-color: var(--light, #E9E1D7);
}

.modal__close {
  position: absolute;
  top: 40px;
  right: 40px;
  padding: 0;
  margin: 0;
  border: 0;
  background-color: transparent;
}

.modal__close svg {
  width: 20px;
  min-width: 20px;
  height: 20px;
  pointer-events: none;
}

.modal__close:hover {
  cursor: pointer;
}

.modal__box {
  width: 100%;
  padding: 40px;
}

.modal__top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  line-height: 1;
}

.modal__subtitle {
  color: rgba(151, 67, 56, 0.5);
  font-weight: 500;
}

.modal__title {
  font: 400 48px/1 Literature;
}

.modal__duration {
  font-size: 24px;
  font-weight: 500;
}

.modal__stages {
  width: 100%;
  padding: 40px;
  background-color: #FDF5EB;
}

.modal__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.modal__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--primary, #974338);
  font-weight: 500;
  line-height: 1;
}

.modal__price {
  font-size: 24px;
}

.modal__caption {
  margin-bottom: 16px;
}

.modal__list {
  list-style-type: decimal !important;
  -moz-columns: 2;
       columns: 2;
  padding-left: 16px;
}

.modal__feedback {
  display: block;
  width: 100%;
  padding: 32px 40px;
  color: var(--light, #E9E1D7);
  background-color: var(--primary, #974338);
  text-align: center;
}

.modal__feedback:hover {
  cursor: pointer;
}

.hero {
  position: relative;
  padding: 40px 0;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  z-index: -1;
}

.hero::before {
  left: 0;
  background-color: var(--primary, #974338);
}

.hero::after {
  right: 0;
  background-color: var(--light, #E9E1D7);
}

.hero__container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  min-height: calc(100vh - 80px);
}

.hero__container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 1px;
  width: calc(100% + 64px);
  height: 100%;
  background: radial-gradient(circle at top left, #E9E1D7, transparent 32px), radial-gradient(circle at top right, #974338, transparent 32px), radial-gradient(circle at bottom left, #E9E1D7, transparent 32px), radial-gradient(circle at bottom right, #974338, transparent 32px);
  -webkit-mask: linear-gradient(#F0EFE5 0 0) content-box, linear-gradient(#F0EFE5 0 0);
          mask: linear-gradient(#F0EFE5 0 0) content-box, linear-gradient(#F0EFE5 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.hero__col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 46px;
}

.hero__img {
  position: relative;
  width: 30vw;
  max-width: 440px;
  min-width: 256px;
  height: 36vw;
  max-height: 520px;
  min-height: 304px;
  z-index: 1;
}

.hero__img img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 500px 500px 0 0;
}

.hero__img::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  border-radius: 500px 500px 0 0;
  border: 1px solid var(--light, #E9E1D7);
}

.hero__box {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.hero__box::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40px;
  max-width: 412px;
  width: 28.6vw;
  min-width: 236px;
  max-height: 488px;
  height: 33.8vw;
  min-height: 279px;
  transform: rotate(-13deg);
  background: url(../img/decor-1.png) center/contain no-repeat;
}

.hero__group {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.hero__logo {
  max-height: 140px;
  min-height: 92px;
  height: 9.7vw;
  margin-bottom: 24px;
}

.hero__logo img {
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.hero__desc {
  max-width: 250px;
  margin-bottom: 32px;
  text-align: center;
}

.about {
  position: relative;
}

.about::before,
.about::after {
  content: "";
  position: absolute;
}

.about::before {
  top: 0;
  left: -80px;
  max-width: 456px;
  width: 31.6vw;
  min-width: 260px;
  max-height: 300px;
  height: 20.8vw;
  min-height: 172px;
  background: url(../img/decor-2.png) center/contain no-repeat;
}

.about::after {
  left: -10%;
  bottom: -66px;
  max-width: 525px;
  width: 36.5vw;
  min-width: 316px;
  max-height: 316px;
  height: 22vw;
  min-height: 190px;
  background: url(../img/decor-3.png) center/contain no-repeat;
}

.about__subtitle {
  max-width: 58%;
}

.about__images {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 40px 0;
}

.about__images img {
  max-height: 460px;
  height: 32vw;
  min-height: 300px;
  max-width: 420px;
  width: 29.3vw;
  min-width: 270px;
  border-radius: 500px 500px 0 0;
  -o-object-fit: cover;
     object-fit: cover;
}

.about__images img:first-child {
  align-self: start;
  width: 280px;
  height: 304px;
}

.about__images img:last-child {
  align-self: flex-end;
  width: 280px;
  height: 304px;
  border-radius: 0 0 500px 500px;
}

.about__caption {
  max-width: 911px;
}

.device {
  position: relative;
}

.device:not(.section-red) {
  background-color: var(--bg-light, #FDF5EB);
}

.device:not(.section-red)::after {
  content: "";
  position: absolute;
  top: -10%;
  left: 8%;
  width: 326px;
  height: 559px;
  background: url(../img/decor-4.png) center/contain no-repeat;
}

.device.section-red .device-card {
  border-color: var(--light, #E9E1D7);
}

.device__container::before {
  z-index: 0;
}

.device__top,
.device__wrap {
  position: relative;
  z-index: 1;
}

.device__wrap {
  display: grid;
  grid-template-columns: calc(33% - 20px) 67%;
  gap: 20px;
  margin-top: 20px;
}

.device__images {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.device__img {
  max-height: 400px;
  height: 28vw;
  min-height: 160px;
  border-radius: 200px 0 0 200px;
  overflow: hidden;
}

.device__img img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  filter: grayscale(1);
}

.device__video {
  position: relative;
  display: block;
  max-height: 480px;
  height: 33vw;
  min-height: 220px;
  margin-bottom: 20px;
}

.device__video img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.device__video::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
}

.device__video span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--light, #E9E1D7);
  font-size: 32px;
  text-transform: uppercase;
  z-index: 1;
}

.device__video:hover {
  cursor: url("data:image/svg+xml;utf8,      <svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'>        <circle cx='40' cy='40' r='38' fill='none' stroke='white' stroke-width='2'/>        <polygon points='32,26 56,40 32,54' fill='white'/>      </svg>") 40 40, auto;
}

.device__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.device-card {
  padding: 20px;
  border: 1px solid var(--primary, #974338);
}

.device-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.device__bottom {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 25%;
  gap: 16px;
  margin-top: 60px;
  z-index: 1;
}

.device__bottom .device__caption {
  max-width: 642px;
  margin-left: 33%;
}

.device__bottom .device__txt {
  max-width: 493px;
  margin-left: 44%;
}

.device__button::before {
  background-color: var(--bg-light, #FDF5EB);
}

.services {
  position: relative;
}

.services::after {
  content: "";
  position: absolute;
  top: 30%;
  right: -10%;
  width: 635px;
  height: 493px;
  background: url(../img/decor-5.png) center/contain no-repeat;
}

.services__tabs {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 980px;
}

.services__nav {
  overflow-y: hidden;
  overflow-x: auto;
}

.services__nav .trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 200px;
  border: 1px solid var(--primary, #974338);
  color: var(--primary, #974338);
  background-color: var(--light, #E9E1D7);
  transition: background-color 0.3s ease-out, color 0.3s ease-out;
}

.services__nav .trigger.active {
  color: var(--light, #E9E1D7);
  background-color: var(--primary, #974338);
  pointer-events: none;
}

.services__nav .trigger:hover {
  cursor: pointer;
}

.services__content .targets {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  transform: translate(0);
  height: 100%;
  transition: transform 0.5s ease-out, height 0.3s ease;
}

.services__content .targets .target {
  min-width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.services__content .targets .target.active {
  opacity: 1;
}

.services__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  -moz-column-gap: 16px;
       column-gap: 16px;
  row-gap: 40px;
/*   margin: 0 auto; */
}

.services-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.services-card__img {
  max-width: 320px;
  width: 100%;
  min-width: 270px;
  max-height: 380px;
  height: 26vw;
  min-height: 330px;
  margin-bottom: 20px;
  border-radius: 160px 160px 0 0;
  overflow: hidden;
}

.services-card__img img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.3s ease-out;
}

.services-card__subtitle {
  margin-bottom: 16px;
  color: rgba(151, 67, 56, 0.5);
  line-height: 1;
}

.services-card__caption {
  margin-bottom: 20px;
  line-height: 1;
}

.services-card:hover {
  cursor: pointer;
}

.services-card:hover .services-card__img img {
  filter: grayscale(0);
}

.certificate {
  position: relative;
  min-height: 720px;
}

.certificate::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 75%;
  border-radius: 0 0 0 340px;
  background-color: var(--primary, #974338);
}

.certificate__container {
  color: var(--light, #E9E1D7);
  z-index: 1;
}

.certificate__img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 25%;
  border-radius: 0 0 340px 0;
  overflow: hidden;
}

.certificate__img img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.certificate__img::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
}

.certificate__wrap {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.certificate__txt {
  margin-left: 8%;
}

.contacts__subtitle {
  margin-bottom: 40px;
}

.contacts__row {
  display: flex;
  align-items: stretch;
}

.contacts__map {
  width: 50%;
  border-radius: 200px 0 0 200px;
  overflow: hidden;
}

.contacts__map iframe {
  width: 100%;
  height: 100%;
}

.contacts__wrap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  width: 50%;
  padding: 60px;
  color: var(--light, #E9E1D7);
  background-color: var(--primary, #974338);
}

.contacts__wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 50vw;
  height: 100%;
  background-color: var(--primary, #974338);
}

.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contacts__group {
  display: flex;
  flex-direction: column;
}

.contacts__group a:not(.contacts__socials a) {
  position: relative;
  width: -moz-max-content;
  width: max-content;
}

.contacts__group a:not(.contacts__socials a)::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  height: 1px;
  width: 0;
  background-color: var(--light, #E9E1D7);
  transition: width 0.3s ease-out;
}

.contacts__group a:not(.contacts__socials a):hover::before {
  width: 100%;
}

.contacts__group span {
  display: block;
  margin-bottom: 8px;
  color: rgba(233, 225, 215, 0.7);
}

.contacts__address a::before {
  width: 100% !important;
}

.contacts__socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contacts__socials a svg {
  min-width: 24px;
  width: 24px;
  height: 24px;
  pointer-events: none;
  transition: transform 0.3s ease-out;
}

.contacts__socials a:hover svg {
  transform: scale(1.1);
}

.contacts__txt {
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .tabs__nav .mobile-select {
    display: none;
  }
}

@media (min-width: 1920px) {
  .container {
    max-width: 1682px;
  }
}

@media (max-width: 1200px) {
  .title-decor {
    font-size: 100px;
  }
}

@media (max-width: 980px) {
  .container {
    max-width: unset;
  }

  .header__container {
    justify-content: space-between;
  }

  .header__nav {
    position: absolute;
    top: 0;
    left: -100vw;
    display: block;
    min-height: 100vh;
    min-width: 320px;
    padding: 30px;
    padding-top: 120px;
    color: var(--light, #E9E1D7);
    background-color: rgba(151, 67, 56, 0.9);
    transition: left 0.3s ease-out;
  }

  .header__box {
    display: block;
  }

  .header__burger {
    display: block;
  }

  .section-pad {
    padding: 80px 0;
  }

  .section-pad-top {
    padding-top: 80px;
  }

  .section-pad-bottom {
    padding-bottom: 80px;
  }

  .title-decor {
    font-size: 60px;
  }

  .modal__title {
    font-size: 32px;
  }

  .modal__duration {
    font-size: 20px;
  }

  .modal__price {
    font-size: 20px;
  }

  .services__tabs {
    gap: 24px;
  }

  .services__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) and (max-width: 540px) {
  .header__nav {
    width: 100%;
  }
}

@media (max-width: 767px) {
  html {
    font-size: 14px;
  }

  .button-circle {
    width: 180px;
    height: 180px;
  }

  h1,
  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 24px;
  }

  h4 {
    font-size: 18px;
  }

  h5 {
    font-size: 16px;
  }

  h6 {
    font-size: 14px;
  }

  .header__container {
    padding-top: 60px;
  }

  .header__menu {
    position: relative;
    flex-direction: column;
    gap: 16px;
    padding: 48px 0;
    margin-bottom: 50px;
    font-size: 24px;
  }

  .header__menu::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1px;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, #E9E1D7, transparent 24px), radial-gradient(circle at top right, #E9E1D7, transparent 24px), radial-gradient(circle at bottom left, #E9E1D7, transparent 24px), radial-gradient(circle at bottom right, #E9E1D7, transparent 24px);
    -webkit-mask: linear-gradient(#F0EFE5 0 0) content-box, linear-gradient(#F0EFE5 0 0);
            mask: linear-gradient(#F0EFE5 0 0) content-box, linear-gradient(#F0EFE5 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }

  .footer__container {
    padding: 40px 0;
  }

  .footer__row {
    flex-direction: column;
    gap: 40px;
  }

  .footer__menu {
    flex-direction: column;
    gap: 20px;
  }

  .footer__copy {
    gap: 16px;
  }

  .section-pad {
    padding: 60px 0;
  }

  .section-pad-top {
    padding-top: 60px;
  }

  .section-pad-bottom {
    padding-bottom: 60px;
  }

  .title-decor {
    font-size: 44px;
  }

  .title-sm {
    font-size: 14px;
  }

  .title-abs {
    position: static;
    margin-bottom: 8px;
  }

  .title-indent {
    margin-bottom: 16px;
  }

  .text {
    gap: 16px;
  }

  .text-left-3 {
    margin-left: 0;
  }

  .text-left-4 {
    margin-left: 20%;
  }

  .corners::before {
    width: 100%;
    height: calc(100% + 80px);
    background: radial-gradient(circle at top left, #974338, transparent 24px), radial-gradient(circle at top right, #974338, transparent 24px), radial-gradient(circle at bottom left, #974338, transparent 24px), radial-gradient(circle at bottom right, #974338, transparent 24px);
  }

  .corners-light::before {
    background: radial-gradient(circle at top left, #E9E1D7, transparent 24px), radial-gradient(circle at top right, #E9E1D7, transparent 24px), radial-gradient(circle at bottom left, #E9E1D7, transparent 24px), radial-gradient(circle at bottom right, #E9E1D7, transparent 24px);
  }

  .tabs__nav .trigger {
    display: none;
  }

  .tabs__nav .mobile-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 200px;
    border: 1px solid var(--primary, #974338);
    color: var(--primary, #974338);
    background: url(../img/down-red.svg) transparent no-repeat top 55% right 12px;
    cursor: pointer;
  }

  .tabs__nav .mobile-select option {
    width: 100%;
    color: var(--primary, #974338);
  }

  .tabs__nav .mobile-select:focus {
    outline: 0;
  }

  .modal__close svg {
    width: 16px;
    min-width: 16px;
    height: 16px;
  }

  .modal__close {
    top: 30px;
    right: 30px;
  }

  .modal__box {
    padding: 30px;
  }

  .modal__top {
    gap: 4px;
  }

  .modal__subtitle {
    font-size: 14px;
  }

  .modal__title {
    font-size: 28px;
  }

  .modal__duration {
    margin-top: 4px;
    font-size: 16px;
  }

  .modal__stages {
    padding: 30px;
  }

  .modal__cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .modal__card {
    padding: 16px;
    font-size: 14px;
  }

  .modal__price {
    font-size: 16px;
  }

  .modal__caption {
    margin-bottom: 12px;
    font-size: 16px;
  }

  .modal__list {
    -moz-columns: unset;
         columns: unset;
  }

  .modal__feedback {
    padding: 24px 30px;
  }

  .modal {
    height: auto;
    max-height: 90vh;
  }

  .hero::before,
  .hero::after {
    content: none;
  }

  .hero__container::before {
    width: 100%;
    height: calc(100% - 40px);
    background: radial-gradient(circle at top left, #974338, transparent 24px), radial-gradient(circle at top right, #974338, transparent 24px), radial-gradient(circle at bottom left, #E9E1D7, transparent 24px), radial-gradient(circle at bottom right, #E9E1D7, transparent 24px);
  }

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

  .hero__col {
    min-height: 448px;
    padding: 40px 16px;
    margin: 0 -16px;
    background-color: var(--primary, #974338);
  }

  .hero__img::before {
    width: calc(100% + 24px);
    height: calc(100% + 24px);
  }

  .hero__box::before {
    top: 10%;
    transform: rotate(0);
  }

  .hero__box {
    order: -1;
    min-height: 568px;
    background-color: var(--light, #E9E1D7);
  }

  .hero__logo {
    margin-bottom: 40px;
  }

  .hero__desc {
    max-width: 280px;
    margin-bottom: 40px;
  }

  .hero {
    padding: 0 0;
  }

  .about::after {
    left: -25%;
    bottom: -40px;
  }

  .about__images img:first-child {
    display: none;
  }

  .about__images img:last-child {
    display: none;
  }

  .about__images {
    justify-content: flex-end;
    margin: 16px 0;
  }

  .device:not(.section-red)::after {
    content: none;
  }

  .device__wrap {
    grid-template-columns: 100%;
    gap: 16px;
  }

  .device__col:last-child {
    display: contents;
  }

  .device__images {
    flex-direction: row;
    gap: 8px;
  }

  .device__img:last-child {
    border-radius: 0 200px 200px 0;
  }

  .device__img {
    width: calc(50% - 4px);
  }

  .device__video:hover {
    cursor: url("data:image/svg+xml;utf8,        <svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'>          <circle cx='20' cy='20' r='18' fill='none' stroke='white' stroke-width='2'/>          <polygon points='16,13 27,20 16,27' fill='white'/>        </svg>") 20 20, auto;
  }

  .device__video {
    order: -1;
    margin-bottom: 0;
  }

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

  .device-card__top {
    margin-bottom: 6px;
  }

  .device-card {
    padding: 16px;
  }

  .device__bottom .device__caption {
    margin-left: 0;
  }

  .device__bottom .device__txt {
    margin-left: 20%;
  }

  .device__bottom {
    grid-template-columns: 100%;
    margin-top: 40px;
  }

  .device__button {
    margin-left: 20%;
  }

  .services::after {
    content: none;
  }

  .services__tabs {
    gap: 16px;
  }

  .services__cards {
    grid-template-columns: 100%;
  }

  .certificate::before {
    content: none;
  }

  .certificate__container::before {
    width: calc(100% - 32px);
    height: calc(100% - 40px);
  }

  .certificate__container {
    margin: 0 -16px;
    padding: 0 16px;
    padding-top: 60px;
    padding-bottom: 40px;
    background-color: var(--primary, #974338);
  }

  .certificate__img::before {
    content: none;
  }

  .certificate__img {
    order: 1;
    position: static;
    width: 100%;
    height: 380px;
    border-radius: 0 0 0 200px;
  }

  .certificate__wrap {
    flex-direction: column;
  }

  .certificate__txt {
    margin-left: 20%;
  }

  .certificate__button {
    margin-left: 20%;
  }

  .certificate {
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  .contacts__row {
    flex-direction: column;
    margin-right: -16px;
  }

  .contacts__map {
    order: 1;
    width: 100%;
    height: 400px;
    border-radius: 0 0 0 60px;
  }

  .contacts__wrap::after {
    content: none;
  }

  .contacts__wrap {
    grid-template-columns: 1fr;
    width: 100%;
    padding: 40px;
    padding-left: 70px;
    border-radius: 60px 0 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}