* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #f8fcfd;
  color: #122333;
  font: 14px Arial, Helvetica, sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
.container {
  width: min(1450px, calc(100% - 40px));
  margin: auto;
}
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fffF;
  border-bottom: 1px solid #dceff2;
  backdrop-filter: blur(10px);
}
.header-in {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand strong,
.brand b {
  display: block;
  line-height: 1;
}
.brand strong {
  font-size: 22px;
}
.brand b {
  font-size: 17px;
  color: #0798aa;
  margin-top: 4px;
}
.drop {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e9fafc;
  color: #0798aa;
  font-size: 30px;
  font-weight: 900;
}
.drop.dark {
  background: #ffffff12;
  color: #fff;
}
nav {
  display: flex;
  gap: 28px;
  font-weight: 700;
  font-size: 13px;
}
nav a:hover {
  color: #0798aa;
}
.head-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hours {
  font-size: 11px;
  text-align: right;
  font-weight: 700;
}
.hours em {
  color: #0798aa;
  font-style: normal;
}
.phone {
  font-weight: 900;
  white-space: nowrap;
}
.btn {
  border: 0;
  border-radius: 11px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
}
.primary {
  background: #0aa3b5;
  color: #fff;
  box-shadow: 0 10px 25px #0aa3b533;
}
.primary:hover {
  background: #078f9f;
  transform: translateY(-1px);
}
.outline {
  background: #fff;
  color: #078fa4;
  border: 1px solid #9edbe2;
}
.outline:hover {
  background: #effcfd;
}
.white {
  background: #fff;
  color: #078fa4;
}
.big {
  padding: 15px 22px;
}
.hero {
  background: #fff;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  min-height: 510px;
}
.hero-copy {
  padding: 58px 48px 58px 52px;
}
.badge {
  display: inline-flex;
  padding: 9px 15px;
  border: 1px solid #bfeaf0;
  background: #effcfd;
  border-radius: 999px;
  color: #078fa4;
  font-weight: 800;
}
.hero h1 {
  font-size: 72px;
  line-height: .98;
  letter-spacing: -2px;
  margin: 22px 0 0;
}
.hero h1 span {
  display: block;
  color: #0798aa;
}
.hero p {
  max-width: 620px;
  font-size: 18px;
  line-height: 1.55;
  color: #435463;
}
.advantages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 30px;
}
.advantages>div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.advantages i,
.benefits i {
  width: 38px;
  height: 38px;
  border: 1px solid #16a6b8;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #078fa4;
  background: #ecfbfd;
  font-style: normal;
  font-size: 18px;
  flex: none;
}
.advantages small,
.benefits small {
  display: block;
  color: #63727d;
  font-weight: 500;
  margin-top: 2px;
}
.hero-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.hero-photo {
  position: relative;
  min-height: 510px;
  overflow: hidden;
}
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fffE, #fff2 50%, transparent);
}
.discount {
  position: absolute;
  right: 24px;
  bottom: 22px;
  width: 190px;
  background: #fff;
  border-radius: 16px;
  padding: 15px 18px;
  box-shadow: 0 15px 35px #0002;
}
.discount strong {
  display: block;
  color: #0798aa;
  font-size: 18px;
}
.discount span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}
.discount b {
  display: block;
  text-align: right;
  font-size: 24px;
}
.section {
  padding: 38px 0;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-head h2,
h2 {
  margin: 0;
  color: #075c70;
  font-size: 28px;
  font-weight: 950;
}
.section-head a {
  color: #078fa4;
  font-weight: 800;
}
.services {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.service {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dbecef;
  border-radius: 12px;
  box-shadow: 0 3px 12px #1233230a;
  transition: .2s;
}
.service:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px #12332318;
}
.service b {
  display: block;
  text-align: center;
  padding: 10px 7px 7px;
  font-size: 12px;
  min-height: 40px;
}
.service img {
  display: block;
  width: calc(100% - 16px);
  height: 105px;
  margin: 0 8px;
  border-radius: 8px;
  object-fit: cover;
}
.service strong {
  display: block;
  text-align: center;
  color: #0798aa;
  padding: 11px;
  font-size: 14px;
}
.price-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
  padding-bottom: 30px;
}
.card {
  background: #fff;
  border: 1px solid #dbecef;
  border-radius: 16px;
  box-shadow: 0 3px 14px #1233230a;
}
.prices {
  padding: 25px;
}
.price-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  margin: 12px 0 18px;
}
.price-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf3f4;
  padding: 9px 0;
  font-size: 13px;
}
.price-list b {
  white-space: nowrap;
  color: #0798aa;
}
.prices>.btn {
  display: block;
  margin: auto;
}
.calculator {
  padding: 25px;
  border-radius: 16px;
  background: #0aa3b5;
  color: #fff;
  box-shadow: 0 14px 30px #0aa3b533;
}
.calculator h2 {
  color: #fff;
}
.calculator label {
  display: block;
  margin: 18px 0 7px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fffd;
}
.calculator select,
.calculator input {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  color: #17313c;
  outline: 0;
  background: #fff;
}
.quantity {
  height: 48px;
  max-width: 180px;
  border-radius: 8px;
  background: #fff;
  color: #17313c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}
.quantity button {
  border: 0;
  background: transparent;
  font-size: 23px;
  font-weight: 900;
  cursor: pointer;
}
.calc-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 25px;
}
.calc-bottom small {
  display: block;
  color: #fffd;
}
.calc-bottom strong {
  display: block;
  margin-top: 4px;
  font-size: 30px;
}
.benefits {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #fff;
  border: 1px solid #dbecef;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 28px;
}
.benefits>div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-right: 1px solid #e8f1f2;
}
.benefits>div:last-child {
  border: 0;
}
.benefits b {
  font-size: 12px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-bottom: 30px;
}
.block {
  padding: 22px;
}
.works {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.works img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
}
.preview {
  display: flex;
  gap: 14px;
  border: 1px solid #e3eff1;
  border-radius: 12px;
  padding: 16px;
}
.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #dff7fa;
  color: #078fa4;
  display: grid;
  place-items: center;
  font-weight: 950;
  flex: none;
}
.preview-main {
  flex: 1;
}
.preview-name {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.stars {
  color: #f3a51b;
  letter-spacing: 1px;
}
.preview small {
  color: #7b8992;
  font-size: 11px;
}
.preview p {
  color: #4d5d68;
  line-height: 1.55;
}
.center {
  text-align: center;
  margin-bottom: 22px;
}
.center p {
  color: #64747e;
}
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.review {
  border: 1px solid #dbecef;
  border-radius: 16px;
  padding: 19px;
}
.review.blue {
  background: #e8fbff;
}
.review.white {
  background: #fff;
}
.review.soft {
  background: #f2fbfc;
}
.review-top {
  display: flex;
  gap: 12px;
}
.review-main {
  flex: 1;
}
.review-name {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.rating {
  background: #fff;
  padding: 5px 8px;
  border-radius: 7px;
  color: #078fa4;
  font-size: 11px;
  font-weight: 950;
}
.review-service {
  color: #078fa4;
  font-size: 11px;
  font-weight: 900;
  margin-top: 7px;
}
.review p {
  font-size: 13px;
  line-height: 1.55;
  color: #52636d;
}
.review small {
  color: #829099;
  font-size: 10px;
}
.center-title {
  text-align: center;
  margin-bottom: 20px;
}
.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.faq-item {
  background: #fff;
  border: 1px solid #dbecef;
  border-radius: 11px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  border: 0;
  background: #fff;
  display: flex;
  justify-content: space-between;
  text-align: left;
  padding: 15px 17px;
  font-weight: 800;
  cursor: pointer;
}
.faq-q b {
  color: #078fa4;
  font-size: 20px;
}
.faq-a {
  display: none;
  border-top: 1px solid #edf3f4;
  padding: 14px 17px;
  color: #60717b;
  line-height: 1.55;
}
.faq-item.open .faq-a {
  display: block;
}
.callback-wrap {
  padding-bottom: 0;
}
.callback {
  position: relative;
  overflow: hidden;
  background: #08a5b7;
  color: #fff;
  border-radius: 16px;
  padding: 30px 38px;
}
.callback>img {
  position: absolute;
  inset: 0;
  width: 50%;
  height: 100%;
  object-fit: cover;
  opacity: .25;
  mix-blend-mode: overlay;
}
.callback-in {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}
.callback h2 {
  color: #fff;
  font-size: 32px;
}
.callback p {
  color: #fffd;
}
.points {
  display: flex;
  gap: 22px;
  margin-top: 16px;
  font-weight: 800;
}
.callback-phone {
  min-width: 280px;
  text-align: center;
}
.callback-phone>a {
  display: block;
  font-size: 30px;
  font-weight: 950;
}
.callback-phone .btn {
  width: 100%;
  margin-top: 12px;
}
footer {
  margin-top: 0;
  background: #064b59;
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding: 45px 0;
}
.footer-grid p {
  max-width: 390px;
  color: #fffa;
  line-height: 1.7;
}
.footer-grid h3 {
  margin: 0 0 14px;
}
.footer-grid>div:not(:first-child) a,
.footer-grid>div:not(:first-child) span {
  display: block;
  color: #fffb;
  margin: 9px 0;
  font-size: 13px;
}
.footer-phone {
  font-size: 18px !important;
  color: #fff !important;
  font-weight: 950;
}
.map {
  overflow: hidden;
  border: 1px solid #fff3;
  border-radius: 11px;
}
.map img {
  width: 100%;
  height: 145px;
  display: block;
  object-fit: cover;
}
.map-link {
  text-align: center;
  color: #50d5e0 !important;
  font-weight: 800;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 1px solid #fff1;
  font-size: 11px;
  color: #fff7;
}
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
}
.modal.show {
  display: block;
}
.backdrop {
  position: absolute;
  inset: 0;
  background: #08222b99;
  backdrop-filter: blur(4px);
}
.modal-box {
  position: relative;
  width: min(470px, calc(100% - 30px));
  margin: 10vh auto;
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 30px 80px #0005;
}
.close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: 0;
  background: transparent;
  font-size: 30px;
  cursor: pointer;
}
.modal-box label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-top: 15px;
}
.modal-box input {
  width: 100%;
  height: 46px;
  border: 1px solid #d5e7ea;
  border-radius: 9px;
  padding: 0 13px;
  margin-top: 6px;
}
.modal-box form .btn {
  width: 100%;
  margin-top: 18px;
}
.modal-phone {
  display: block;
  text-align: center;
  color: #078fa4;
  font-size: 12px;
  font-weight: 800;
  margin-top: 15px;
}

/* ===== АДАПТАЦИЯ ===== */
@media (max-width: 1200px) {
  nav {
    gap: 14px;
  }
  .phone {
    display: none;
  }
  .services {
    grid-template-columns: repeat(4, 1fr);
  }
  .hero h1 {
    font-size: 60px;
  }
  .benefits {
    grid-template-columns: repeat(3, 1fr);
  }
  .benefits>div:nth-child(3) {
    border: 0;
  }
}
@media (max-width: 900px) {
  .container {
    width: calc(100% - 28px);
  }
  nav {
    display: none;
  }
  .hero-grid,
  .price-layout,
  .split {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding: 38px 8px;
  }
  .hero-photo {
    min-height: 380px;
  }
  .advantages {
    grid-template-columns: repeat(2, 1fr);
  }
  .services {
    grid-template-columns: repeat(3, 1fr);
  }
  .reviews {
    grid-template-columns: 1fr 1fr;
  }
  .faq {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .callback-in {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 620px) {
  .container {
    width: calc(100% - 20px);
  }
  .brand strong {
    font-size: 18px;
  }
  .brand b {
    font-size: 14px;
  }
  .drop {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  .head-right .btn {
    padding: 10px 11px;
    font-size: 12px;
  }
  .hero-copy {
    padding: 30px 4px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .hero p {
    font-size: 15px;
  }
  .hero-btns {
    flex-direction: column;
  }
  .hero-btns .btn {
    width: 100%;
  }
  .hero-photo {
    min-height: 290px;
  }
  .discount {
    right: 10px;
    bottom: 10px;
    transform: scale(.9);
    transform-origin: bottom right;
  }
  .services {
    grid-template-columns: 1fr 1fr;
  }
  .service img {
    height: 90px;
  }
  .price-list {
    grid-template-columns: 1fr;
  }
  .prices,
  .calculator,
  .block {
    padding: 18px;
  }
  .benefits {
    grid-template-columns: 1fr 1fr;
  }
  .benefits>div {
    border: 0;
    border-bottom: 1px solid #e8f1f2;
  }
  .benefits>div:last-child {
    grid-column: 1/-1;
  }
  .works {
    grid-template-columns: 1fr 1fr;
  }
  .works img {
    height: 105px;
  }
  .reviews {
    grid-template-columns: 1fr;
  }
  .calc-bottom {
    flex-direction: column;
    align-items: stretch;
  }
  .calc-bottom .btn {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
  }
}

/* ===== ГАЛЕРЕЯ — БЫСТРЫЕ ПРЕВЬЮ ===== */
#worksGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

#worksGrid .work-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  background: #e2e8f0;
  transition: transform 0.3s ease;
}

#worksGrid .work-item:hover {
  transform: scale(1.02);
}

#worksGrid .work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #e2e8f0;
  transition: filter 0.3s ease;
}

#worksGrid .work-item:hover img {
  filter: brightness(0.7);
}

/* ===== МОДАЛКА (полная картинка) ===== */
.works-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.92);
}

.works-modal.active {
  display: flex;
}

.works-modal-content {
  position: relative;
  max-width: 94vw;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#modalLoader {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  position: absolute;
  text-align: center;
  line-height: 1.6;
}

#modalLoader span {
  display: block;
  font-size: 40px;
  margin-bottom: 10px;
}

.works-modal-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  background: #0a0a0a;
}

.works-modal-caption {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  margin: 12px 0 8px;
  text-align: center;
}

.works-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 1;
}

.works-modal-close:hover {
  opacity: 1;
}

.works-modal-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 6px;
}

.works-modal-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.works-modal-nav button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.works-modal-nav span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  min-width: 50px;
  text-align: center;
}

/* ===== АДАПТАЦИЯ ГАЛЕРЕИ ===== */
@media (max-width: 640px) {
  #worksGrid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
  }
  .works-modal-content img {
    max-height: 70vh;
    border-radius: 8px;
  }
  .works-modal-close {
    top: -36px;
    font-size: 26px;
  }
  .works-modal-nav button {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .works-modal-caption {
    font-size: 14px;
  }
  #modalLoader {
    font-size: 15px;
  }
  #modalLoader span {
    font-size: 30px;
  }
}