:root{
  --ink:#17322f;
  --mint:#dcefe9;
  --mint2:#b9dcd3;
  --cream:#f6f3ec;
  --white:#fff;
  --accent:#e5eee9;
  --line:#cbd9d4;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Manrope,Arial,sans-serif;
  color:var(--ink);
  background:var(--cream);
  line-height:1.6;
}

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


/* =========================
   HEADER
========================= */

.header{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(246,243,236,.94);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(23,50,47,.08);
}

.nav{
  min-height:82px;
  display:flex;
  align-items:center;
  gap:28px;
}

.logo{
  font-size:32px;
  font-weight:800;
  letter-spacing:-2px;
  color:var(--ink);
  text-decoration:none;
  margin-right:auto;
}

.logo span{
  color:#82b8aa;
}

.logo-image{
  display:flex;
  align-items:center;
  max-width:175px;
}

.logo-image img{
  display:block;
  width:175px;
  height:auto;
}

.desktop-nav{
  display:flex;
  gap:22px;
}

.desktop-nav a,
.mobile-nav a{
  color:var(--ink);
  text-decoration:none;
  font-size:13px;
  font-weight:700;
}

.phone{
  font-weight:800;
  color:var(--ink);
  text-decoration:none;
  white-space:nowrap;
}

.menu-btn{
  display:none;
  background:none;
  border:0;
  font-size:24px;
  color:var(--ink);
  cursor:pointer;
}

.mobile-nav{
  display:none;
  padding:10px 24px 22px;
  flex-direction:column;
  gap:14px;
}

.mobile-nav.open{
  display:flex;
}


/* =========================
   HERO
========================= */

.hero{
  min-height:700px;
  background:var(--mint);
  position:relative;
  overflow:hidden;
}

.hero-shape{
  position:absolute;
  width:60vw;
  height:60vw;
  max-width:850px;
  max-height:850px;
  border-radius:50%;
  background:#c4e1d9;
  right:-18%;
  top:-18%;
}

.hero-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:700px;
  align-items:center;
}

.hero-copy{
  position:relative;
  z-index:3;
}

.eyebrow{
  font-size:11px;
  letter-spacing:2px;
  font-weight:800;
  opacity:.72;
  margin-bottom:18px;
}

.hero h1{
  font-size:clamp(52px,7vw,92px);
  line-height:.95;
  letter-spacing:-4px;
  margin:0 0 28px;
  font-weight:800;
}

.hero h1 em{
  font-style:normal;
  font-weight:400;
}

.hero p{
  font-size:18px;
  max-width:530px;
  margin:0;
}

.no-break{
  white-space:nowrap;
}

.actions{
  display:flex;
  gap:12px;
  margin-top:32px;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:15px 22px;
  border-radius:999px;
  text-decoration:none;
  font-weight:800;
  border:1px solid var(--ink);
  cursor:pointer;
  font-family:inherit;
}

.btn-dark{
  background:var(--ink);
  color:#fff;
}

.btn-light{
  background:transparent;
  color:var(--ink);
}


/* =========================
   HERO PHOTO
========================= */

.hero-visual{
  height:520px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  z-index:2;
}

.hero-visual img{
  display:block;
  width:100%;
  max-width:560px;
  height:520px;
  object-fit:cover;
  object-position:center;
  border-radius:34px;
  box-shadow:0 30px 70px rgba(23,50,47,.16);
}


/* =========================
   SECTIONS
========================= */

.intro,
.methods,
.team,
.advantages,
.news,
.contacts{
  padding:120px 0;
}

.section-head{
  max-width:750px;
  margin-bottom:55px;
}

.section-head.center{
  text-align:center;
  margin-left:auto;
  margin-right:auto;
}

.section-head.row{
  display:flex;
  justify-content:space-between;
  align-items:end;
  max-width:none;
}

.section-head h2{
  font-size:clamp(42px,5vw,68px);
  line-height:1;
  letter-spacing:-3px;
  margin:0 0 22px;
}

.section-head p{
  max-width:620px;
  font-size:17px;
}


/* =========================
   CARDS
========================= */

.cards{
  display:grid;
  gap:18px;
}

.four{
  grid-template-columns:repeat(4,1fr);
}

.condition{
  background:#fff;
  border-radius:24px;
  padding:30px;
  min-height:330px;
  display:flex;
  flex-direction:column;
  box-shadow:0 12px 35px rgba(23,50,47,.05);
}

.condition span,
.adv-grid span{
  font-size:12px;
  font-weight:800;
  opacity:.5;
}

.condition h3{
  font-size:24px;
  line-height:1.15;
  margin:45px 0 12px;
  letter-spacing:-1px;
}

.condition p{
  font-size:14px;
}

.condition a,
.news a,
.text-link{
  color:var(--ink);
  font-weight:800;
  text-decoration:none;
  margin-top:auto;
}


/* =========================
   ABOUT
========================= */

.about{
  background:var(--ink);
  color:#fff;
  padding:120px 0;
}

.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:90px;
  align-items:center;
}

.about-art{
  height:580px;
  border-radius:300px 300px 24px 24px;
  position:relative;
  overflow:hidden;
  background:#b9dcd3;
}

.about-art img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
}

.art-label{
  position:absolute;
  bottom:35px;
  left:35px;
  font-size:12px;
  line-height:1.2;
  letter-spacing:4px;
  font-weight:800;
  color:#fff;
  text-shadow:0 2px 10px rgba(0,0,0,.25);
}
.about-art::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    to top,
    rgba(0,0,0,.28) 0%,
    rgba(0,0,0,0) 35%
  );
  pointer-events:none;
}

.about-art .art-label{
  z-index:2;
}
}

.art-label{
  position:absolute;
  bottom:35px;
  left:35px;
  font-size:12px;
  line-height:1.2;
  letter-spacing:4px;
  font-weight:800;
}

.about h2{
  font-size:clamp(50px,6vw,78px);
  line-height:.95;
  letter-spacing:-4px;
  margin:0 0 28px;
}

.about h2 em{
  font-style:normal;
  font-weight:400;
}

.about-copy p{
  font-size:17px;
  color:#d7e4e0;
  max-width:560px;
}

.about .text-link{
  color:#fff;
  display:inline-block;
  margin-top:20px;
}


/* =========================
   STATS
========================= */

.stats{
  background:#fff;
  padding:70px 0;
}

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

.stats-grid>div{
  display:flex;
  align-items:center;
  gap:22px;
  border-right:1px solid var(--line);
  padding-right:20px;
}

.stats-grid>div:last-child{
  border:0;
}

.stats strong{
  font-size:64px;
  letter-spacing:-4px;
}

.stats span{
  font-size:13px;
  font-weight:700;
}


/* =========================================
   МЕТОДИ РЕАБІЛІТАЦІЇ
   ========================================= */

.methods {
  padding: 120px 0;
  background: #dfeeea;
  overflow: hidden;
}


/* =========================================
   ЗАГОЛОВОК
   ========================================= */

.methods-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 60px;
}

.methods-head h2 {
  margin: 12px 0 0;
}

.methods-head h2 em {
  font-style: italic;
  font-weight: 400;
}

.methods-intro {
  max-width: 390px;
  margin: 0 0 6px;
  color: #36534e;
  font-size: 16px;
  line-height: 1.7;
}


/* =========================================
   СІТКА
   ========================================= */

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


/* =========================================
   КАРТКА
   ========================================= */

.method-card {
  position: relative;

  min-height: 330px;
  padding: 30px 32px 34px;

  display: flex;
  flex-direction: column;

  background: #edf5f2;

  border: 1px solid rgba(22, 59, 54, 0.16);
  border-radius: 4px;

  overflow: hidden;

  transition:
    transform 0.35s ease,
    background-color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}


/* =========================================
   ВЕРХ КАРТКИ
   ========================================= */

.method-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  margin-bottom: 24px;
}

.method-number {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #718b85;
}

.method-arrow {
  width: 34px;
  height: 34px;

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

  border: 1px solid rgba(22, 59, 54, 0.2);
  border-radius: 50%;

  color: #163b36;
  font-size: 17px;

  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}


/* =========================================
   ТЕКСТ КАРТКИ
   ========================================= */

.method-content {
  margin-top: 0;
}

.method-content h3 {
  margin: 0 0 18px;

  color: #163b36;

  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
}

.method-content p {
  margin: 0;

  color: #36534e;

  font-size: 15px;
  line-height: 1.65;
}

.method-content strong {
  color: #163b36;
  font-weight: 600;
}


/* =========================================
   HOVER
   ========================================= */

.method-card:hover {
  transform: translateY(-6px);

  background: #f4f8f6;

  border-color: rgba(22, 59, 54, 0.28);

  box-shadow: 0 18px 45px rgba(22, 59, 54, 0.08);
}

.method-card:hover .method-arrow {
  background: #163b36;
  color: #ffffff;
  transform: rotate(5deg);
}


/* =========================================
   ДЕКОРАТИВНИЙ ЕЛЕМЕНТ
   ========================================= */

.method-card::after {
  content: "";

  position: absolute;

  right: -45px;
  bottom: -45px;

  width: 120px;
  height: 120px;

  border: 1px solid rgba(22, 59, 54, 0.08);
  border-radius: 50%;

  pointer-events: none;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1000px) {

  .methods {
    padding: 90px 0;
  }

  .methods-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 45px;
  }

  .methods-intro {
    max-width: 600px;
  }

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

}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 650px) {

  .methods {
    padding: 75px 0;
  }

  .methods-head {
    margin-bottom: 35px;
  }

  .methods-intro {
    font-size: 15px;
    line-height: 1.6;
  }

  .method-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .method-card {
    min-height: 0;
    padding: 25px 24px 28px;
  }

  .method-top {
    margin-bottom: 20px;
  }

  .method-content h3 {
    font-size: 21px;
    margin-bottom: 14px;
  }

  .method-content p {
    font-size: 14px;
    line-height: 1.65;
  }

}

/* =========================
   TEAM
========================= */

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

.person-img{
  height:380px;
  border-radius:220px 220px 20px 20px;
  background:linear-gradient(145deg,#d9eae5,#8ab5aa);
  display:grid;
  place-content:center;
  text-align:center;
  font-size:28px;
  font-weight:800;
  letter-spacing:2px;
}

.person h3{
  font-size:20px;
  margin-bottom:0;
}

.person p{
  font-size:14px;
  opacity:.7;
}


/* =========================
   ADVANTAGES
========================= */

.advantages{
  background:#fff;
}

.adv-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  border-top:1px solid var(--line);
}

.adv-grid>div{
  padding:38px;
  border-bottom:1px solid var(--line);
}

.adv-grid>div:nth-child(odd){
  border-right:1px solid var(--line);
}

.adv-grid h3{
  font-size:26px;
  margin:20px 0 8px;
}

.adv-grid p{
  max-width:500px;
}


/* =========================
   NEWS
========================= */

.news{
  background:var(--cream);
}

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

.news-grid article{
  background:#fff;
  padding-bottom:30px;
  border-radius:20px;
  overflow:hidden;
}

.news-image{
  height:220px;
  background:linear-gradient(135deg,#d5e9e3,#82aaa0);
  display:grid;
  place-content:center;
  font-weight:800;
  letter-spacing:3px;
}

.news article small,
.news article h3,
.news article a{
  margin-left:28px;
  margin-right:28px;
}

.news article small{
  display:block;
  margin-top:24px;
  font-weight:800;
  letter-spacing:1px;
  opacity:.55;
}

.news h3{
  font-size:22px;
  line-height:1.2;
  min-height:58px;
}

.news a{
  display:block;
}


/* =========================
   CTA
========================= */

.cta{
  padding:90px 0;
  background:var(--mint2);
}

.cta-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
}

.cta h2{
  font-size:clamp(40px,5vw,64px);
  line-height:1;
  letter-spacing:-3px;
  margin:0;
}


/* =========================
   CONTACTS
========================= */

.contacts{
  background:#fff;
}

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

.contacts h2{
  font-size:64px;
  line-height:1;
  letter-spacing:-3px;
  margin:0 0 20px;
}

.contact-info{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:35px;
}

.contact-info a{
  color:var(--ink);
  font-size:22px;
  font-weight:800;
  text-decoration:none;
}

.form{
  display:grid;
  gap:15px;
}

.form label{
  font-size:12px;
  font-weight:800;
}

.form input,
.form textarea{
  width:100%;
  margin-top:7px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:14px 15px;
  font:inherit;
  background:var(--cream);
  outline:none;
}

.form input:focus,
.form textarea:focus{
  border-color:var(--ink);
}

.form-note{
  font-size:11px;
  opacity:.6;
}

.success{
  display:none;
  background:var(--mint);
  padding:12px;
  border-radius:10px;
  font-size:13px;
}

.success.show{
  display:block;
}


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

footer{
  background:var(--ink);
  color:#fff;
  padding:70px 0 30px;
}

.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:50px;
}

.footer-grid .logo{
  color:#fff;
}

.footer-grid .logo p{
  font-size:14px;
  font-weight:500;
  letter-spacing:0;
  line-height:1.5;
  margin-top:15px;
  color:#c7d8d3;
}

.footer-grid>div:not(:first-child){
  display:flex;
  flex-direction:column;
  gap:10px;
}

.footer-grid b{
  margin-bottom:10px;
}

.footer-grid a{
  color:#c7d8d3;
  text-decoration:none;
  font-size:13px;
}

.copyright{
  border-top:1px solid rgba(255,255,255,.15);
  margin-top:55px;
  padding-top:20px;
  color:#9eb5ae;
  font-size:11px;
}


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

.logo-footer{
  margin-right:0;
}

.logo-footer img{
  display:block;
  width:210px;
  height:auto;
  filter:brightness(0) invert(1);
}

.logo-footer p{
  margin-top:15px;
}


/* =========================
   TABLET
========================= */

@media(max-width:1050px){

  .desktop-nav{
    display:none;
  }

  .menu-btn{
    display:block;
  }

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

  /* HERO */
  .hero{
    min-height:auto;
    padding:80px 0;
  }

  .hero-grid{
    grid-template-columns:1fr;
    min-height:0;
  }

  .hero-copy{
    max-width:850px;
  }

  .hero-visual{
    display:flex;
    height:auto;
    margin-top:50px;
  }

  .hero-visual img{
    width:100%;
    max-width:700px;
    height:420px;
  }

  .split,
  .contact-grid{
    grid-template-columns:1fr;
    gap:50px;
  }

  .about-art{
    height:460px;
  }

  .team-grid,
  .news-grid{
    grid-template-columns:1fr 1fr;
  }

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

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

  .stats-grid>div{
    border-right:0;
    border-bottom:1px solid var(--line);
    padding-bottom:20px;
  }

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


/* =========================
   MOBILE
========================= */

@media(max-width:650px){

  .container{
    width:min(100% - 30px,1180px);
  }

  /* HEADER */

  .nav{
    min-height:70px;
  }

  .phone{
    display:none;
  }

  .logo-image{
    max-width:145px;
  }

  .logo-image img{
    width:145px;
  }

  .mobile-nav.open{
    display:flex;
  }


  /* HERO */

  .hero{
    padding:55px 0 60px;
  }

  .hero-shape{
    width:420px;
    height:420px;
    right:-240px;
    top:-170px;
  }

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

  .eyebrow{
    font-size:9px;
    letter-spacing:1.5px;
    margin-bottom:14px;
  }

  .hero h1{
    font-size:clamp(38px,11vw,46px);
    line-height:1;
    letter-spacing:-2px;
    margin-bottom:24px;
  }

  /*
    На телефоне разрешаем перенос,
    чтобы текст никогда не вылезал
    за границы экрана.
  */
  .no-break{
    white-space:normal;
  }

  .hero p{
    font-size:16px;
    line-height:1.6;
    max-width:100%;
  }

  .actions{
    margin-top:28px;
    gap:10px;
  }

  .btn{
    padding:14px 20px;
    font-size:14px;
  }

  /* PHOTO */

  .hero-visual{
    width:100%;
    height:auto;
    margin-top:40px;
  }

  .hero-visual img{
    width:100%;
    max-width:none;
    height:300px;
    border-radius:24px;
    object-fit:cover;
    object-position:center;
    box-shadow:0 20px 45px rgba(23,50,47,.14);
  }


  /* SECTIONS */

  .four,
  .team-grid,
  .news-grid,
  .method-grid,
  .adv-grid{
    grid-template-columns:1fr;
  }

  .section-head.row,
  .cta-inner{
    display:block;
  }

  .section-head.row .text-link{
    display:inline-block;
    margin-top:10px;
  }

  .section-head h2{
    font-size:clamp(38px,10vw,52px);
    letter-spacing:-2px;
  }

  .condition{
    min-height:280px;
  }

  .stats strong{
    font-size:50px;
  }

  .about,
  .intro,
  .methods,
  .team,
  .advantages,
  .news,
  .contacts{
    padding:80px 0;
  }

  .about-art{
    height:380px;
  }

  .adv-grid>div:nth-child(odd){
    border-right:0;
  }

  .cta .btn{
    margin-top:25px;
  }

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

  .contacts h2{
    font-size:50px;
  }
}


/* =========================
   VERY SMALL PHONES
========================= */

@media(max-width:390px){

  .container{
    width:calc(100% - 24px);
  }

  .hero{
    padding-top:45px;
  }

  .hero h1{
    font-size:38px;
    letter-spacing:-2px;
  }

  .hero p{
    font-size:15px;
  }

  .actions{
    flex-direction:column;
    align-items:stretch;
  }

  .btn{
    width:100%;
  }

  .hero-visual{
    margin-top:32px;
  }

  .hero-visual img{
    height:260px;
    border-radius:20px;
  }
}.hero-photo-caption {
  font-size: 16px;
  line-height: 1.5;
  margin-top: 8px;
}

.hero-photo-caption strong {
  font-weight: 800;
}

.hero-photo-caption span {
  font-weight: 400;
}
@media (min-width: 1051px) {
  .hero-visual {
    transform: translateX(45px);
  }
}
/* =========================================
   TEAM — TEXT + PHOTO
   ========================================= */

.team {
  padding: 120px 0;
  background: var(--cream);
}

.team-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

/* ЛЕВАЯ ЧАСТЬ */

.team-content {
  max-width: 650px;
}

.team-content .eyebrow {
  margin-bottom: 20px;
}

.team-content h2 {
  font-size: clamp(52px, 6vw, 82px);
  line-height: .95;
  letter-spacing: -4px;
  margin: 0 0 30px;
}

.team-content h2 em {
  font-style: normal;
  font-weight: 400;
}

.team-intro {
  font-size: 18px;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 0 55px;
}

/* ТЕКСТОВЫЕ БЛОКИ */

.team-block {
  border-top: 1px solid var(--line);
  padding: 30px 0 34px;
}

.team-block:last-child {
  border-bottom: 1px solid var(--line);
}

.team-block h3 {
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0 0 14px;
}

.team-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  opacity: .55;
  margin: 0 0 18px;
}

.team-block p:not(.team-label) {
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 20px;
}

.team-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-block li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
  font-size: 15px;
  line-height: 1.5;
}

.team-block li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  opacity: .5;
}

/* ПРАВАЯ ЧАСТЬ — ФОТО */

.team-visual {
  position: sticky;
  top: 110px;
  width: 100%;
  height: 700px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--mint2);
}

.team-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1050px) {

  .team {
    padding: 100px 0;
  }

  .team-layout {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .team-content {
    max-width: 800px;
  }

  .team-visual {
    position: relative;
    top: auto;
    height: 560px;
    order: 2;
  }

}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 650px) {

  .team {
    padding: 80px 0;
  }

  .team-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .team-content {
    width: 100%;
  }

  .team-content .eyebrow {
    margin-bottom: 16px;
  }

  .team-content h2 {
    font-size: clamp(42px, 11vw, 56px);
    line-height: .98;
    letter-spacing: -3px;
    margin-bottom: 25px;
  }

  .team-intro {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .team-block {
    padding: 25px 0 28px;
  }

  .team-block h3 {
    font-size: 23px;
  }

  .team-block li {
    font-size: 14px;
    padding-left: 18px;
  }

  .team-visual {
    width: 100%;
    height: 420px;
    border-radius: 22px;
    order: 2;
  }

  .team-visual img {
    object-position: center;
  }

}/* ========================================
   EVEXIA PHOTO GALLERY
======================================== */

.gallery {
  padding: 120px 0;
  background: var(--cream);
  overflow: hidden;
}

.gallery .section-head {
  max-width: none;
  margin-bottom: 45px;
}

.gallery .section-head.row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.gallery .section-head h2 {
  margin: 0;
  font-size: clamp(48px, 5vw, 72px);
  line-height: .95;
  letter-spacing: -4px;
}

.gallery .section-head h2 em {
  font-style: normal;
  font-weight: 400;
}

/* Кнопки */

.gallery-controls {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.gallery-btn {
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;

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

  transition:
    background .25s ease,
    color .25s ease,
    opacity .25s ease;
}

.gallery-btn:hover {
  background: var(--ink);
  color: #fff;
}

.gallery-btn:disabled {
  opacity: .3;
  cursor: default;
}

.gallery-btn:disabled:hover {
  background: transparent;
  color: var(--ink);
}

/* Область карусели */

.gallery-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Лента */

.gallery-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;

  width: max-content;
  max-width: none;

  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

/* ОДНА карточка */

.gallery-item {
  flex: 0 0 calc((min(1180px, calc(100vw - 48px)) - 60px) / 4);

  width: calc((min(1180px, calc(100vw - 48px)) - 60px) / 4);

  height: 350px;

  margin: 0;
  padding: 0;

  border-radius: 24px;
  overflow: hidden;

  background: var(--mint2);

  position: relative;
}

/* Картинка */

.gallery-item img {
  display: block;

  width: 100%;
  height: 100%;

  max-width: none;

  margin: 0;
  padding: 0;

  object-fit: cover;
  object-position: center;

  transition: transform .5s ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
}

/* Счётчик */

.gallery-counter {
  display: flex;
  align-items: center;
  gap: 7px;

  margin-top: 22px;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;

  opacity: .6;
}

.gallery-current {
  min-width: 20px;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 1050px) {

  .gallery {
    padding: 100px 0;
  }

  .gallery-item {
    flex-basis: calc((min(100vw - 48px, 1180px) - 20px) / 2);
    width: calc((min(100vw - 48px, 1180px) - 20px) / 2);
    height: 360px;
  }

}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 650px) {

  .gallery {
    padding: 80px 0;
  }

  .gallery .section-head {
    margin-bottom: 30px;
  }

  .gallery .section-head.row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
  }

  .gallery .section-head h2 {
    font-size: 46px;
    line-height: .95;
    letter-spacing: -3px;
  }

  .gallery-controls {
    gap: 7px;
  }

  .gallery-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .gallery-track {
    gap: 15px;
  }

  .gallery-item {
    flex: 0 0 calc(100vw - 30px);
    width: calc(100vw - 30px);

    height: 390px;

    border-radius: 22px;
  }

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

} /* закрываем первый @media (max-width: 650px) */

/* =========================
   GALLERY
========================= */

.gallery-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 22px;
}

.gallery-counter {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--ink);
  opacity: .65;
}

.gallery-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gallery-btn {
  width: 52px;
  height: 52px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;

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

  transition:
    background .2s ease,
    color .2s ease,
    transform .2s ease;
}

.gallery-btn:hover {
  background: var(--ink);
  color: #fff;
}

.gallery-btn:active {
  transform: scale(.95);
}


/* Фотографии */

.gallery-wrapper {
  width: 100%;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: 20px;
  transition: transform .45s ease;
}

.gallery-item {
  flex: 0 0 calc((100% - 60px) / 4);
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 1 / 1;
  background: #dcefe9;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1050px) {

  .gallery-item {
    flex: 0 0 calc((100% - 20px) / 2);
  }

  .gallery-btn {
    width: 48px;
    height: 48px;
  }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 650px) {

  .gallery-bottom {
    margin-top: 18px;
  }

  .gallery-item {
    flex: 0 0 100%;
    border-radius: 20px;
  }

  .gallery-track {
    gap: 0;
  }

  .gallery-controls {
    gap: 8px;
  }

  .gallery-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .gallery-counter {
    font-size: 11px;
    gap: 8px;
  }

} /* закрываем второй @media (max-width: 650px) */

/* ========================================
   КНОПКА "НАВЕРХ"
   ======================================== */

.back-to-top {
  position: fixed !important;

  right: 28px !important;
  bottom: 28px !important;

  width: 52px !important;
  height: 52px !important;

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

  padding: 0;
  margin: 0;

  border: 1px solid #163b36;
  border-radius: 50%;

  background: #f5f2ea;
  color: #163b36;

  font-family: inherit;
  font-size: 23px;
  line-height: 1;

  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(12px);

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease;

  z-index: 2147483647 !important;
}

/* ========================================
   КНОПКА ПОЯВИЛАСЬ
   ======================================== */

.back-to-top.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;

  transform: translateY(0) !important;
}

/* ========================================
   СТРЕЛКА
   ======================================== */

.back-to-top span {
  display: block;

  transform: translateY(-1px);

  transition: transform 0.25s ease;
}

/* ========================================
   HOVER — DESKTOP
   ======================================== */

.back-to-top:hover {
  background: #163b36;
  color: #ffffff;
}

.back-to-top:hover span {
  transform: translateY(-4px);
}

/* ========================================
   НАЖАТИЕ
   ======================================== */

.back-to-top:active {
  transform: translateY(1px) !important;
}

/* ========================================
   FOCUS
   ======================================== */

.back-to-top:focus {
  outline: none;
}

.back-to-top:focus-visible {
  outline: 2px solid #163b36;
  outline-offset: 3px;
}


/* ========================================
   DESKTOP
   ======================================== */

@media (min-width: 769px) {

  .back-to-top {
    right: 28px !important;
    bottom: 28px !important;

    width: 52px !important;
    height: 52px !important;
  }

}


/* ========================================
   TABLET + MOBILE
   ======================================== */

@media (max-width: 768px) {

  .back-to-top {
    right: 18px !important;
    bottom: 18px !important;

    width: 46px !important;
    height: 46px !important;

    font-size: 21px;
  }

}


/* ========================================
   VERY SMALL MOBILE
   ======================================== */

@media (max-width: 400px) {

  .back-to-top {
    right: 15px !important;
    bottom: 15px !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 20px;
  }

}

/* =========================================
   ТЕЛЕФОН В МОБІЛЬНІЙ ШАПЦІ
   ========================================= */

@media (max-width: 768px) {

  .header .nav {
    display: flex;
    align-items: center;
  }

  .header .phone {
    display: block;
    margin-left: auto;
    margin-right: 16px;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
  }

  .header .menu-btn {
    flex-shrink: 0;
  }

}

/* =========================================
   АДРЕС У КОНТАКТАХ
   Окремо від телефону та email
   ========================================= */

.contact-info a.contact-address {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}
