:root {
  --red: #e31a22;
  --dark: #111;
  --muted: #6b6b6b;
  --line: #e4e4e4;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #171717;
  background: #fff;
}
a {
  text-decoration: none;
  color: inherit;
}
.container {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}
.site-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(20px, calc((100% - 1180px) / 2));
  position: sticky;
  top: 0;
  z-index: 30;
  background: #0c0c0c;
  color: #fff;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-icon {
  width: 22px;
  height: 38px;
  border: 2px solid var(--red);
  display: inline-block;
}
.brand b,
.brand small {
  display: block;
}
.brand small {
  font-size: 11px;
  margin-top: 3px;
}
.site-header nav {
  display: flex;
  gap: 26px;
  font-size: 13px;
}
.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--red);
}
.header-phone {
  font-weight: 800;
  white-space: nowrap;
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 0;
  background: transparent;
  color: #fff;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: 0.2s;
}
.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.hero {
  min-height: 530px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #0b0b0b;
  background-image: var(
    --hero-image,
    url("/assets/hero-concealed-desktop-r4.webp")
  );
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.48) 0%,
    rgba(0, 0, 0, 0.28) 47%,
    rgba(0, 0, 0, 0.04) 72%
  );
}
.hero-inner {
  position: relative;
  padding: 34px 0;
}
.hero-copy {
  width: min(54%, 590px);
  color: #fff;
}
.hero h1 {
  max-width: 590px;
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1.03;
  text-transform: uppercase;
  margin: 0 0 15px;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero h1 span,
.hero h1 em {
  display: block;
}
.hero h1 em {
  font-style: normal;
  color: #f0202a;
}
.hero-title-tail {
  color: #fff;
}
.hero p {
  font-size: 15px;
  line-height: 1.45;
  color: #ededed;
  max-width: 540px;
  margin: 0;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.hero-actions .btn {
  min-height: 44px;
  padding: 0 21px;
  font-size: 12px;
}
.btn {
  border: 0;
  min-height: 50px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}
.btn-red {
  background: var(--red);
  color: #fff;
}
.btn-outline {
  border: 1px solid #fff;
  color: #fff;
}
.btn-white {
  background: #fff;
  color: var(--red);
}
.btn-light {
  background: #fff;
  border: 1px solid #333;
  color: #111;
}
.hero-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
  max-width: 590px;
}
.hero-point {
  border-top: 2px solid var(--red);
  padding-top: 9px;
  font-size: 11px;
  line-height: 1.35;
}
.section {
  padding: 70px 0;
}
.section-title {
  text-align: center;
  font-size: 34px;
  text-transform: uppercase;
  margin: 0 0 34px;
}
.section-title:after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  background: var(--red);
  margin: 13px auto 0;
}
.section-title.left {
  text-align: left;
}
.section-title.left:after {
  margin-left: 0;
}
.service-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.service-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: #121212;
  color: #fff;
  min-height: 300px;
  overflow: hidden;
}
.service-copy {
  padding: 34px;
}
.service-copy h3 {
  font-size: 28px;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.service-copy ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
.service-copy li {
  margin: 10px 0;
  line-height: 1.4;
}
.service-copy li:before {
  content: "✓";
  color: var(--red);
  margin-right: 9px;
  font-weight: 900;
}
.service-image {
  background: #ddd center/cover no-repeat;
}
.calculator-section {
  background: #111;
  color: #fff;
}
.calculator-shell {
  display: grid;
  gap: 26px;
}
.calculator-head {
  max-width: 820px;
}
.eyebrow,
.summary-label {
  display: block;
  color: #ff4b52;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}
.calculator-head h2 {
  font-size: clamp(34px, 4vw, 56px);
  text-transform: uppercase;
  line-height: 1;
  margin: 10px 0 16px;
}
.calculator-head p {
  color: #c9c9c9;
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
}
.calculator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}
.calculator-fields {
  background: #191919;
  border: 1px solid #303030;
  padding: 28px;
}
.calculator fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 30px;
}
.calculator fieldset:last-child {
  margin-bottom: 0;
}
.calculator legend {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 15px;
}
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.choice {
  position: relative;
  border: 1px solid #444;
  background: #222;
  padding: 18px;
  cursor: pointer;
  transition: 0.2s;
}
.choice:hover,
.choice.active {
  border-color: var(--red);
  background: #2b1718;
}
.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice b,
.choice span {
  display: block;
}
.choice span {
  font-size: 13px;
  color: #aaa;
  margin-top: 6px;
}
.calculator-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.calculator label:not(.choice):not(.consent) {
  font-size: 13px;
  color: #cfcfcf;
}
.calculator input,
.calculator select,
.calculator textarea {
  width: 100%;
  border: 1px solid #454545;
  background: #282828;
  color: #fff;
  padding: 14px;
  margin-top: 7px;
  font: inherit;
}
.calculator select {
  appearance: auto;
}
.calculator textarea {
  min-height: 85px;
  resize: vertical;
}
.calculator-summary {
  position: sticky;
  top: 94px;
  background: #fff;
  color: #151515;
  padding: 28px;
}
.calculator-summary h3 {
  font-size: 28px;
  margin: 10px 0 18px;
}
.calculator-summary ul {
  padding: 0;
  list-style: none;
  border-top: 1px solid #ddd;
}
.calculator-summary li {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e5e5;
  font-size: 14px;
}
.calculator-summary li span {
  color: #666;
}
.calculator-summary li b {
  text-align: right;
}
.summary-note {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}
.calculator-summary .btn {
  width: 100%;
}
.form-message {
  min-height: 20px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 800;
}
.form-message.success {
  color: #188640;
}
.form-message.error {
  color: #b70f17;
}
.process-section {
  background: #f3f3f3;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  counter-reset: steps;
}
.process-card {
  position: relative;
  background: #fff;
  padding: 56px 20px 24px;
  min-height: 185px;
  border-top: 3px solid #111;
  counter-increment: steps;
}
.process-card:before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  top: 18px;
  left: 20px;
  color: var(--red);
  font-size: 24px;
  font-weight: 900;
}
.process-card p {
  margin: 0;
  font-weight: 800;
  line-height: 1.45;
}
.consent {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 14px !important;
  color: #bbb !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.45;
}
.consent input {
  width: 18px !important;
  height: 18px;
  min-width: 18px;
  margin: 0 !important;
  accent-color: var(--red);
}
.consent a {
  text-decoration: underline;
  color: #fff;
}
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.btn:disabled {
  opacity: 0.55;
  cursor: wait;
}
.works {
  background: #fafafa;
}
.gallery-title {
  text-transform: uppercase;
  font-size: 17px;
  margin: 0 0 14px;
}
.glass-title {
  margin-top: 40px;
}
.gallery {
  display: grid;
  gap: 15px;
}
.gallery-six {
  grid-template-columns: repeat(6, 1fr);
}
.gallery-four {
  grid-template-columns: repeat(4, 1fr);
  max-width: 950px;
  margin: auto;
}
.work-card {
  background: #fff;
}
.work-image {
  aspect-ratio: 3/4;
  background: #ddd center/cover no-repeat;
}
.gallery-four .work-image {
  aspect-ratio: 4/3;
}
.work-card p {
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
  margin: 9px 4px;
}
.center {
  text-align: center;
  margin-top: 26px;
}
.project-gallery-title {
  margin-top: 40px;
}
.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.project-work-card {
  margin: 0;
  background: #fff;
  border: 1px solid #e4e4e4;
}
.project-work-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  background: #f0f0f0;
}
.project-work-card figcaption {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.35;
}
.project-work-card figcaption small {
  color: var(--red);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.promo {
  background: linear-gradient(135deg, #d8121b, #aa090f);
  color: #fff;
}
.promo-inner {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 25px;
  align-items: center;
  padding: 30px 0;
}
.promo-icon {
  font-size: 70px;
}
.promo h2 {
  font-size: 30px;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.promo p {
  margin: 0;
  line-height: 1.5;
  max-width: 720px;
}
.bottom-zone {
  padding-top: 55px;
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: start;
}
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.trust-item {
  padding-left: 48px;
  position: relative;
}
.trust-item:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border: 1px solid #222;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--red);
  font-weight: 900;
}
.trust-item h3 {
  font-size: 16px;
  margin: 0 0 5px;
}
.trust-item p {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
}
.lead-form {
  background: linear-gradient(145deg, #232323, #0d0d0d);
  color: #fff;
  padding: 32px;
  border-radius: 4px;
}
.lead-form h2 {
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 8px;
}
.lead-form > p {
  text-align: center;
  color: #ccc;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid #414141;
  background: #292929;
  color: #fff;
  padding: 14px;
  margin-bottom: 12px;
}
.lead-form textarea {
  min-height: 100px;
  resize: vertical;
}
.lead-form button {
  width: 100%;
}
.lead-form small {
  display: block;
  text-align: center;
  color: #aaa;
  margin-top: 12px;
}
.lead-form small.success {
  color: #73d791;
}
.lead-form small.error {
  color: #ff8589;
}
footer {
  background: #0b0b0b;
  color: #d0d0d0;
  padding: 42px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 1fr 1fr;
  gap: 35px;
}
.footer-grid h4 {
  color: #fff;
  margin: 0 0 14px;
  text-transform: uppercase;
}
.footer-grid a,
.footer-grid span {
  display: block;
  margin: 8px 0;
  font-size: 13px;
}
.footer-grid p {
  font-size: 13px;
  line-height: 1.55;
}
.footer-brand {
  color: #fff;
  margin-bottom: 18px;
}
@media (max-width: 1120px) {
  .menu-toggle {
    display: block;
    margin-left: auto;
    margin-right: 10px;
  }
  .site-header nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: #0c0c0c;
    border-top: 1px solid #2e2e2e;
    padding: 14px max(20px, calc((100% - 1180px) / 2));
    box-shadow: 0 16px 30px #0008;
    flex-direction: column;
    gap: 0;
  }
  .site-header nav.open {
    display: flex;
  }
  .site-header nav a {
    padding: 13px 0;
    border-bottom: 1px solid #222;
  }
}
@media (max-width: 960px) {
  .hero {
    min-height: 590px;
    background-position: 60% center;
  }
  .hero-copy {
    width: min(66%, 560px);
  }
  .hero h1 {
    font-size: clamp(31px, 4.7vw, 42px);
  }
  .hero-shade {
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.46) 60%,
      rgba(0, 0, 0, 0.1) 100%
    );
  }
  .hero-points {
    grid-template-columns: 1fr 1fr;
  }
  .service-panels,
  .bottom-grid,
  .calculator {
    grid-template-columns: 1fr;
  }
  .calculator-summary {
    position: static;
  }
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-six {
    grid-template-columns: repeat(3, 1fr);
  }
  .promo-inner {
    grid-template-columns: 80px 1fr;
  }
  .promo-inner .btn {
    grid-column: 1/-1;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .container {
    width: calc(100% - 28px);
  }
  .site-header {
    padding: 0 14px;
  }
  .brand b {
    font-size: 13px;
  }
  .brand small {
    font-size: 8px;
  }
  .header-phone {
    font-size: 11px;
  }
  .menu-toggle {
    margin-right: 4px;
  }
  .hero {
    min-height: 720px;
    align-items: flex-start;
    background-position: center;
  }
  .hero.hero-premium-default {
    background-image: url("/assets/hero-concealed-mobile-r4.webp");
  }
  .hero-shade {
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(0, 0, 0, 0.76) 62%,
      rgba(0, 0, 0, 0.42) 100%
    );
  }
  .hero-inner {
    padding: 32px 0 26px;
  }
  .hero-copy {
    width: 100%;
    max-width: 100%;
  }
  .hero h1 {
    max-width: 360px;
    font-size: clamp(29px, 8.7vw, 35px);
    line-height: 1.02;
    margin-bottom: 14px;
  }
  .hero p {
    max-width: 350px;
    font-size: 14px;
    line-height: 1.42;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin: 18px 0 17px;
    max-width: 350px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-points {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
    margin-top: 16px;
    max-width: 350px;
  }
  .hero-point {
    font-size: 10px;
    padding-top: 7px;
  }
  .service-panel {
    grid-template-columns: 1fr;
  }
  .service-image {
    min-height: 220px;
  }
  .calculator-fields,
  .calculator-summary {
    padding: 20px;
  }
  .choice-grid,
  .calculator-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
  .process-card {
    min-height: 150px;
  }
  .gallery-six,
  .gallery-four {
    grid-template-columns: repeat(2, 1fr);
  }
  .promo-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .promo-icon {
    font-size: 55px;
  }
  .trust-grid,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 52px 0;
  }
}
@media (max-width: 420px) {
  .header-phone {
    display: none;
  }
  .hero {
    min-height: 735px;
  }
  .hero h1 {
    font-size: clamp(28px, 8.4vw, 33px);
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
}

.visitor-counter {
  margin-top: 16px !important;
  padding-top: 12px;
  border-top: 1px solid #2d2d2d;
  color: #bdbdbd;
}
.visitor-counter b {
  color: #fff;
  font-size: 16px;
}

/* SEO content pages */
.seo-page {
  background: #fff;
}
.seo-hero {
  padding: 82px 0 58px;
  background: linear-gradient(135deg, #151515, #2a2a2a);
  color: #fff;
}
.seo-hero h1 {
  max-width: 900px;
  margin: 12px 0 18px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.04;
  text-transform: uppercase;
}
.seo-hero p {
  max-width: 780px;
  font-size: 19px;
  line-height: 1.6;
  color: #e4e4e4;
}
.breadcrumbs {
  font-size: 13px;
  color: #aaa;
}
.breadcrumbs a {
  color: #fff;
}
.seo-content {
  padding: 64px 0;
}
.seo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.7fr);
  gap: 45px;
}
.seo-article h2 {
  font-size: 34px;
  margin: 45px 0 18px;
}
.seo-article h2:first-child {
  margin-top: 0;
}
.seo-article h3 {
  font-size: 23px;
  margin: 28px 0 12px;
}
.seo-article p,
.seo-article li {
  font-size: 17px;
  line-height: 1.7;
}
.seo-article ul {
  padding-left: 22px;
}
.seo-photo {
  width: 100%;
  height: auto;
  display: block;
  margin: 22px 0;
  border-radius: 2px;
}
.seo-card {
  background: #f5f5f5;
  padding: 24px;
  margin-bottom: 18px;
  border-top: 4px solid var(--red);
}
.seo-card h3 {
  margin-top: 0;
}
.seo-sidebar {
  position: sticky;
  top: 94px;
  align-self: start;
}
.seo-sidebar .btn {
  width: 100%;
  margin-top: 12px;
}
.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 18px 0;
}
.faq-item h3 {
  margin: 0 0 8px;
}
.seo-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.seo-link {
  border: 1px solid #ddd;
  padding: 20px;
}
.seo-link:hover {
  border-color: var(--red);
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.works-grid figure {
  margin: 0;
}
.works-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.works-grid figcaption {
  padding: 10px 2px;
  font-size: 14px;
}
.contact-box {
  background: #111;
  color: #fff;
  padding: 30px;
}
.contact-box a {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
}
.policy {
  max-width: 900px;
}
.policy h2 {
  margin-top: 32px;
}
@media (max-width: 850px) {
  .seo-grid {
    grid-template-columns: 1fr;
  }
  .seo-sidebar {
    position: static;
  }
  .works-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .seo-hero {
    padding: 60px 0 42px;
  }
  .works-grid,
  .seo-links {
    grid-template-columns: 1fr;
  }
  .seo-article p,
  .seo-article li {
    font-size: 16px;
  }
}

.article-page,
.article-list {
  padding: 60px 0;
  max-width: 900px;
}
.article-page h1,
.article-list h1 {
  font-size: 42px;
}
.article-content {
  font-size: 18px;
  line-height: 1.7;
}
.article-content h2 {
  margin-top: 38px;
}
.breadcrumbs {
  font-size: 14px;
  color: #666;
  margin-bottom: 28px;
}

/* Две версии 3D-демонстрации */
.door-3d-section {
  overflow: hidden;
  background: radial-gradient(circle at 70% 20%, #f7f5f2, #e7e3de 65%, #ddd8d1);
}
.door-3d-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 22px;
}
.door-3d-heading .section-title {
  margin-bottom: 0;
}
.door-3d-heading > p {
  margin: 0;
  color: #56514c;
  font-size: 17px;
  line-height: 1.65;
}

/* Василий: чат посетителей */
.vasya-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  font-family: Inter, Arial, sans-serif;
}
.vasya-chat-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  background: #c90012;
  color: #fff;
  padding: 10px 17px 10px 10px;
  box-shadow: 0 12px 35px #0005;
  cursor: pointer;
}
.vasya-chat-toggle span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #c90012;
  font-size: 20px;
  font-weight: 900;
}
.vasya-chat-toggle b {
  font-size: 14px;
}
.vasya-chat-window {
  position: absolute;
  right: 0;
  bottom: 62px;
  width: min(370px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 18px;
  background: #fff;
  color: #171717;
  box-shadow: 0 24px 70px #0005;
}
.vasya-chat-window > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #101010;
  color: #fff;
}
.vasya-chat-window > header div {
  display: flex;
  flex-direction: column;
}
.vasya-chat-window > header b {
  font-size: 17px;
}
.vasya-chat-window > header small {
  color: #bbb;
}
.vasya-chat-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.vasya-chat-messages {
  height: 280px;
  overflow: auto;
  padding: 14px;
  background: #f5f5f5;
}
.vasya-chat-message {
  max-width: 86%;
  margin: 0 0 9px;
  padding: 10px 12px;
  border-radius: 13px;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.4;
}
.vasya-chat-message.assistant {
  background: #fff;
  border: 1px solid #ddd;
}
.vasya-chat-message.visitor {
  margin-left: auto;
  background: #171717;
  color: #fff;
}
.vasya-chat-message.system {
  max-width: 100%;
  background: #e9f7ec;
  color: #195d26;
  text-align: center;
  font-size: 12px;
}
.vasya-chat-consent {
  padding: 13px 14px;
}
.vasya-chat-consent label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.4;
}
.vasya-chat-consent a {
  color: #9f0010;
}
.vasya-chat-consent button,
.vasya-chat-window form button {
  border: 0;
  border-radius: 8px;
  background: #c90012;
  color: #fff;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}
.vasya-chat-window form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #ddd;
}
.vasya-chat-window textarea {
  min-width: 0;
  resize: none;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 9px;
  font: inherit;
}
.vasya-chat-phone {
  display: block;
  padding: 0 14px 13px;
  color: #a50010;
  font-weight: 700;
  font-size: 13px;
}
.vasya-chat [hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .vasya-chat {
    right: 12px;
    bottom: 12px;
  }
  .vasya-chat-window {
    right: 0;
    bottom: 58px;
  }
  .vasya-chat-messages {
    height: min(42vh, 300px);
  }
  .vasya-chat-toggle b {
    display: none;
  }
}

/* Compact density R2: пропорциональное уменьшение всей публичной страницы. */
html {
  scroll-padding-top: 74px;
}
.site-header {
  height: 64px;
}
.brand {
  gap: 9px;
}
.brand-icon {
  width: 20px;
  height: 34px;
}
.brand b {
  font-size: 15px;
}
.brand small {
  font-size: 9px;
}
.site-header nav {
  gap: 22px;
  font-size: 12px;
}
.header-phone {
  font-size: 15px;
}
.btn {
  min-height: 44px;
  padding: 0 20px;
  font-size: 13px;
}
.hero {
  min-height: 570px;
  background-position: center 42%;
}
.hero-inner {
  padding: 26px 0;
}
.hero-copy {
  width: min(52%, 560px);
}
.hero h1 {
  max-width: 560px;
  font-size: clamp(30px, 2.55vw, 38px);
  line-height: 1.02;
  margin-bottom: 12px;
}
.hero p {
  max-width: 510px;
  font-size: 14px;
  line-height: 1.42;
}
.hero-actions {
  gap: 12px;
  margin: 16px 0;
}
.hero-actions .btn {
  min-height: 40px;
  padding: 0 18px;
  font-size: 11px;
}
.hero-points {
  gap: 10px;
  margin-top: 18px;
  max-width: 560px;
}
.hero-point {
  padding-top: 7px;
  font-size: 10px;
}
.section {
  padding: 56px 0;
}
.section-title {
  font-size: 30px;
  margin-bottom: 28px;
}
.section-title:after {
  width: 48px;
  height: 2px;
  margin-top: 10px;
}
.service-panels {
  gap: 16px;
}
.service-panel {
  min-height: 260px;
}
.service-copy {
  padding: 28px;
}
.service-copy h3 {
  font-size: 24px;
  margin-bottom: 15px;
}
.service-copy li {
  margin: 8px 0;
  font-size: 14px;
}
.calculator-shell {
  gap: 22px;
}
.calculator-head h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  margin: 8px 0 13px;
}
.calculator-head p {
  font-size: 16px;
}
.calculator {
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
}
.calculator-fields,
.calculator-summary {
  padding: 24px;
}
.calculator fieldset {
  margin-bottom: 24px;
}
.calculator legend {
  font-size: 16px;
  margin-bottom: 12px;
}
.choice {
  padding: 15px;
}
.calculator input,
.calculator select,
.calculator textarea {
  padding: 12px;
}
.calculator-summary {
  top: 80px;
}
.calculator-summary h3 {
  font-size: 24px;
  margin: 8px 0 14px;
}
.calculator-summary li {
  padding: 10px 0;
  font-size: 13px;
}
.process-grid {
  gap: 10px;
}
.process-card {
  min-height: 158px;
  padding: 48px 17px 20px;
}
.process-card:before {
  top: 15px;
  left: 17px;
  font-size: 21px;
}
.process-card p {
  font-size: 14px;
}
.gallery {
  gap: 12px;
}
.work-card p {
  font-size: 12px;
  margin: 7px 3px;
}
.glass-title {
  margin-top: 32px;
}
.promo-inner {
  grid-template-columns: 90px 1fr auto;
  gap: 20px;
  padding: 24px 0;
}
.promo-icon {
  font-size: 58px;
}
.promo h2 {
  font-size: 26px;
}
.promo p {
  font-size: 14px;
}
.bottom-zone {
  padding-top: 44px;
}
.bottom-grid {
  gap: 32px;
}
.trust-grid {
  gap: 16px;
}
.trust-item {
  padding-left: 42px;
}
.trust-item:before {
  width: 29px;
  height: 29px;
}
.trust-item h3 {
  font-size: 14px;
}
.trust-item p {
  font-size: 12px;
}
.lead-form {
  padding: 26px;
}
.lead-form h2 {
  font-size: 23px;
}
.lead-form > p {
  font-size: 14px;
}
.lead-form input,
.lead-form textarea {
  padding: 12px;
}
.lead-form textarea {
  min-height: 82px;
}
footer {
  padding: 34px 0;
}
.footer-grid {
  gap: 28px;
}
.door-3d-heading {
  gap: 30px;
  margin-bottom: 18px;
}
.door-3d-heading > p {
  font-size: 15px;
}
.seo-hero {
  padding: 64px 0 46px;
}
.seo-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
}
.seo-hero p {
  font-size: 17px;
}
.seo-content {
  padding: 52px 0;
}
.seo-grid {
  gap: 36px;
}
.seo-article h2 {
  font-size: 30px;
  margin-top: 38px;
}
.seo-article p,
.seo-article li {
  font-size: 16px;
}
.article-page,
.article-list {
  padding: 50px 0;
}
.article-page h1,
.article-list h1 {
  font-size: 36px;
}
.article-content {
  font-size: 17px;
}
.vasya-chat {
  right: 16px;
  bottom: 16px;
}
.vasya-chat-toggle {
  gap: 8px;
  padding: 8px 14px 8px 8px;
}
.vasya-chat-toggle span {
  width: 30px;
  height: 30px;
  font-size: 18px;
}
.vasya-chat-toggle b {
  font-size: 13px;
}
@media (max-width: 1120px) {
  .site-header nav {
    top: 64px;
  }
}
@media (max-width: 960px) {
  .hero {
    min-height: 530px;
  }
  .hero-copy {
    width: min(68%, 540px);
  }
  .hero h1 {
    font-size: clamp(29px, 4.2vw, 36px);
  }
  .hero-actions .btn {
    padding: 0 15px;
  }
  .section {
    padding: 50px 0;
  }
  .section-title {
    font-size: 28px;
  }
  .service-panel {
    min-height: 240px;
  }
  .service-copy {
    padding: 25px;
  }
  .calculator {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  html {
    scroll-padding-top: 68px;
  }
  .site-header {
    height: 64px;
  }
  .brand b {
    font-size: 12px;
  }
  .brand small {
    font-size: 7px;
  }
  .brand-icon {
    width: 18px;
    height: 32px;
  }
  .site-header nav {
    top: 64px;
  }
  .menu-toggle {
    width: 42px;
    height: 42px;
  }
  .hero {
    min-height: 600px;
  }
  .hero-inner {
    padding: 26px 0 22px;
  }
  .hero-copy {
    width: 100%;
    max-width: 100%;
  }
  .hero h1 {
    max-width: 340px;
    font-size: clamp(25px, 7.3vw, 29px);
    line-height: 1.01;
    margin-bottom: 12px;
  }
  .hero p {
    max-width: 330px;
    font-size: 13px;
    line-height: 1.4;
  }
  .hero-actions {
    gap: 10px;
    margin: 14px 0;
    max-width: 330px;
  }
  .hero-actions .btn {
    min-height: 40px;
    font-size: 11px;
  }
  .hero-points {
    gap: 9px;
    margin-top: 13px;
    max-width: 330px;
  }
  .hero-point {
    padding-top: 6px;
    font-size: 9px;
  }
  .section {
    padding: 44px 0;
  }
  .section-title {
    font-size: 26px;
    margin-bottom: 24px;
  }
  .service-copy {
    padding: 22px;
  }
  .service-copy h3 {
    font-size: 22px;
  }
  .service-image {
    min-height: 190px;
  }
  .calculator-fields,
  .calculator-summary {
    padding: 17px;
  }
  .calculator-head h2 {
    font-size: 30px;
  }
  .calculator-head p {
    font-size: 15px;
  }
  .choice {
    padding: 13px;
  }
  .process-card {
    min-height: 130px;
    padding: 45px 15px 18px;
  }
  .gallery-title {
    font-size: 15px;
  }
  .promo-inner {
    padding: 21px 0;
  }
  .promo-icon {
    font-size: 48px;
  }
  .promo h2 {
    font-size: 23px;
  }
  .bottom-zone {
    padding-top: 38px;
  }
  .lead-form {
    padding: 22px;
  }
  .seo-hero {
    padding: 50px 0 38px;
  }
  .seo-content {
    padding: 44px 0;
  }
  .seo-article h2 {
    font-size: 27px;
  }
  .article-page,
  .article-list {
    padding: 42px 0;
  }
  .article-page h1,
  .article-list h1 {
    font-size: 31px;
  }
  .vasya-chat {
    right: 10px;
    bottom: 10px;
  }
  .vasya-chat-toggle {
    padding: 7px;
  }
  .vasya-chat-toggle span {
    width: 28px;
    height: 28px;
    font-size: 17px;
  }
}

/* Static premium interior example R5 replaces the previous homemade 3D. */
.door-interior-example {
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #111;
  box-shadow: 0 24px 70px #493f3526;
}
.door-interior-example img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.door-interior-example figcaption {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 26px;
  background: #111;
  color: #fff;
}
.door-interior-example figcaption div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.door-interior-example figcaption b {
  font-size: 16px;
}
.door-interior-example figcaption span {
  color: #bbb;
  font-size: 12px;
  line-height: 1.4;
}
.door-interior-example .btn {
  white-space: nowrap;
}
@media (max-width: 760px) {
  .door-interior-example figcaption {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }
  .door-interior-example img {
    aspect-ratio: 4/3;
  }
  .door-interior-example .btn {
    width: 100%;
  }
}
.works-grid .project-work-card img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
@media (max-width: 960px) {
  .project-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .project-gallery {
    grid-template-columns: 1fr;
  }
  .project-work-card img {
    max-height: none;
  }
}
.work-kind {
  display: block;
  width: max-content;
  margin: 0 auto 5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eee;
  color: #555;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* v4.2.0-r7: full service photographs on narrow screens. */
@media (max-width: 600px) {
  .service-image {
    min-height: 0;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
  }
}
