:root {
  color-scheme: light;
  font-family: Arial, "Helvetica Neue", sans-serif;
  color: #101522;
  background: #f8f9fb;
  --blue: #117bfa;
  --ink-blue: #124687;
  --muted: #39415a;
  --card: #edf1f7;
}

* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #126ded; outline-offset: 4px; }
section[id], footer[id] { scroll-margin-top: 18px; }

.wrap { width: min(calc(100% - 46px), 1190px); margin-inline: auto; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.header { color: white; background: linear-gradient(115deg, #393b3e, #252b35 45%, #393a40); }
.header-inner { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 23px); min-height: 52px; padding-inline: clamp(0px, 1.2vw, 14px); }
.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.brand img { width: 41px; height: 43px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 21px; letter-spacing: -.035em; }
.brand small { font-size: 11px; line-height: 1.04; }
.nav { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2.05vw, 30px); margin-inline: auto; }
.nav a { position: relative; padding: 10px 0; font-size: 12px; white-space: nowrap; }
.nav a:hover::after, .home-link::after { content: ""; position: absolute; inset: auto 0 2px; height: 2px; background: #2589ff; }
.header-contact { flex: none; text-align: right; }
.header-contact small { display: block; margin-top: 2px; font-size: 9px; }
.phone { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.phone .icon { width: 13px; height: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; padding: 8px 20px; border: 1px solid transparent; border-radius: 9px; background: linear-gradient(#268bff, #006dec); color: white; font-size: 14px; font-weight: 700; text-align: center; }
.button:hover { background: #0062d8; }
.button-small { min-height: 29px; padding: 6px 13px; font-size: 12px; white-space: nowrap; border-radius: 7px; }
.button-outline { background: #252d377a; border-color: #f5f7fd; }
.button-outline:hover { background: #465261; }

.hero {
  color: white;
  background-color: #262a30;
  background-image: linear-gradient(90deg, #17191d40, #232831 41%, #252a3030 57%, transparent 74%), url("images/hero.webp"), linear-gradient(125deg, #17191c, #383f47);
  background-position: center, right center, center;
  background-size: cover, 55% 100%, cover;
  background-repeat: no-repeat;
}
.hero-inner { min-height: clamp(330px, 36vw, 445px); padding: clamp(32px, 4vw, 60px) 0 54px clamp(4px, 3.35vw, 42px); }
.hero h1 { font-size: clamp(35px, 4vw, 57px); line-height: .99; letter-spacing: -.036em; max-width: 640px; }
.hero p { max-width: 405px; margin-top: 10px; font-size: clamp(14px, 1.57vw, 19px); line-height: 1.22; }
.checks { display: grid; gap: 3px; margin: 9px 0 15px 23px; font-size: 13px; }
.checks li { display: flex; align-items: center; gap: 9px; }
.checks .icon { stroke-width: 3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.benefits { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: -35px; padding: 13px clamp(14px, 3.2vw, 36px); border-radius: 12px; background: linear-gradient(115deg, #f1f4f8, #e8edf5); box-shadow: inset 0 1px 0 #fff; }
.benefits li { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 1.6vw, 20px); font-size: 13px; }
.benefits .icon { width: 32px; height: 32px; color: var(--ink-blue); }
.benefits strong, .benefits span { display: block; }
.benefits span { margin-top: 3px; color: #2c3446; }

.section { margin-top: 24px; }
h2 { font-size: clamp(23px, 2.8vw, 35px); line-height: 1.05; letter-spacing: -.032em; }
.subtitle { margin: 5px 0 18px; color: var(--muted); font-size: clamp(14px, 1.55vw, 17px); }
.cabins, .team-grid, .review-grid, .services { display: grid; gap: 12px; }
.cabins { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; overflow: hidden; border-radius: 9px; background: linear-gradient(135deg, #f5f7fa, var(--card)); }
.card > img { width: 100%; height: auto; object-fit: cover; border-radius: 9px; }
.cabin > img { aspect-ratio: 1.1; }
.card-content { display: flex; flex-direction: column; flex: 1; padding: 9px 12px 11px; }
.card h3, .steps h3 { font-size: clamp(13px, 1.4vw, 16px); line-height: 1.08; letter-spacing: -.015em; }
.cabin h3 { min-height: 2.18em; }
.card p, .steps p, .review p { font-size: clamp(12px, 1.24vw, 14px); line-height: 1.13; }
.card p { margin-top: 4px; margin-bottom: 8px; }
.price-link { display: flex; align-items: center; justify-content: space-between; gap: 3px; width: 100%; margin-top: auto; border: 0; padding: 0; color: #394970; background: none; cursor: pointer; text-align: left; }
.price { display: inline-block; padding: 4px 9px; border-radius: 8px; background: linear-gradient(110deg, #d9e9fd, #c1dcfc); color: #0d234f; font-size: clamp(13px, 1.57vw, 18px); font-weight: 800; white-space: nowrap; }
.price-link:hover .price, a.price:hover { background: #b6d6ff; }
.price-link .icon { width: 15px; height: 15px; }

.services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service { min-height: 139px; overflow: hidden; border-radius: 10px; background: #eaf0f7 var(--service-photo) no-repeat right center / auto 100%; }
.service-installation { --service-photo: url("images/installation.webp"); }
.service-repair { --service-photo: url("images/repair.webp"); }
.service-content { min-height: 100%; padding: 11px 15px 10px; background: linear-gradient(90deg, #eaf0f7 43%, #eaf0f7c2 55%, transparent 74%); }
.service-title { display: flex; align-items: center; gap: 11px; }
.service-title h2 { font-size: clamp(17px, 2vw, 25px); }
.service-title .icon { width: 36px; height: 36px; padding: 7px; border-radius: 50%; color: white; background: #315e95; }
.service p { width: 57%; min-height: 35px; margin: 7px 0; font-size: 13px; line-height: 1.12; }

.process { margin-top: 19px; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin-top: 7px; }
.steps li { position: relative; padding-inline: 13px 16px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 47%; right: 0; width: 8px; height: 8px; border-top: 1.5px solid #63718d; border-right: 1.5px solid #63718d; transform: rotate(45deg); }
.steps .icon { width: 42px; height: 33px; margin-bottom: 3px; padding: 5px 9px; border-radius: 8px; background: linear-gradient(#e9f2ff, #cddff8); color: #0a3d82; }
.steps p { margin-top: 3px; }

.reviews, .team { margin-top: 29px; }
.review-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 20px; margin-bottom: 10px; }
.rating { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.rating strong { padding: 2px 6px; border-radius: 6px; color: #101522; background: #ecf0f5; font-size: 14px; }
.rating strong span { margin-right: 4px; color: #e68a00; }
.text-button { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; border: 0; background: transparent; color: var(--ink-blue); font-size: 12px; cursor: pointer; }
.text-button:hover { text-decoration: underline; }
.review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.review { padding: 8px 15px; border: 1px solid #dfe6f0; border-radius: 10px; background: #f7f9fc; }
.review-meta { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.review-meta img { flex: none; width: 37px; height: 37px; border-radius: 50%; object-fit: cover; }
.review-meta h3 { font-size: 13px; }
.review-meta time { margin-left: auto; color: var(--muted); font-size: 10px; white-space: nowrap; }
.stars { color: #a65c00; font-size: 14px; letter-spacing: .05em; }
.team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.profile > img { aspect-ratio: 1.05; }
.profile h3 { font-size: clamp(15px, 1.7vw, 21px); }
.profile .card-content > span { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: 12px; }
.profile .icon { color: var(--ink-blue); }

.footer { margin-top: 27px; padding: 19px 0; background: #252b35; color: white; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer p { margin-top: 3px; color: #e1e7f0; font-size: 13px; }
dialog { width: min(540px, calc(100% - 32px)); max-height: 90vh; border: 1px solid #d8e2f0; border-radius: 14px; padding: 26px; color: #101522; background: #f8faff; }
dialog::backdrop { background: #101725aa; }
dialog h2 { margin: 0 30px 14px 0; }
dialog p { margin-bottom: 12px; }
dialog .price { margin-bottom: 12px; }
dialog .review-grid { grid-template-columns: 1fr; }
dialog .review p { margin-bottom: 0; }
.close { position: absolute; right: 12px; top: 10px; width: 35px; height: 35px; border: 0; border-radius: 8px; background: #e9eef7; color: #203655; font-size: 24px; cursor: pointer; }

@media (min-width: 1050px) {
  .header-inner { min-height: 60px; }
  .nav a { font-size: 14px; }
  .hero p { max-width: 490px; }
  .checks { font-size: 15px; margin-block: 13px 19px; }
  .button { min-height: 42px; }
  .button-small { min-height: 34px; }
  .service { min-height: 160px; }
  .service p { font-size: 15px; }
}

@media (max-width: 800px) {
  .header-inner { flex-wrap: wrap; justify-content: space-between; padding: 6px 0 0; gap: 6px 12px; }
  .header-contact { margin-left: auto; }
  .nav { order: 3; width: 100%; justify-content: space-between; gap: 7px; }
  .nav a { padding-block: 8px; }
  .hero { background-size: cover, auto 100%, cover; }
  .hero-inner { min-height: 322px; }
  .cabins { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits li { justify-content: start; }
  .steps { gap: 8px; }
  .steps li { padding-inline: 3px 13px; }
  .review-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 28px); }
  .brand img { width: 34px; height: 36px; }
  .brand strong { font-size: 18px; }
  .brand small { font-size: 9px; }
  .header .button-small { display: none; }
  .phone { font-size: 13px; }
  .hero { background-image: linear-gradient(90deg, #191e26f5, #1d242cba 65%, #20252b73), url("images/hero.webp"); }
  .hero-inner { min-height: 0; padding: 28px 0 56px; }
  .hero h1 { font-size: clamp(31px, 8.2vw, 41px); }
  .hero p { max-width: 300px; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { min-height: 42px; padding-inline: 12px; font-size: 13px; }
  .checks { margin-left: 6px; }
  .benefits { gap: 10px 7px; padding: 10px; }
  .benefits li { font-size: 11px; }
  .benefits .icon { width: 24px; height: 24px; }
  .benefits span { margin-top: 2px; }
  .cabins, .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .card-content { padding-inline: 9px; }
  .services { grid-template-columns: 1fr; gap: 10px; }
  .service p { width: 57%; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .steps li::after { display: none; }
  .review-heading { column-gap: 8px; }
  .text-button { margin-left: 0; padding: 4px 0; }
  .footer-inner { align-items: flex-start; }
}
