:root {
  --color-bg: #ffffff;
  --color-surface: #fbfbfb;
  --color-text: #3c4145;
  --color-text-strong: #3c4145;
  --color-muted: #3c4145;
  --color-dark: #3c4145;
  --color-dark-strong: #1c2d31;
  --color-accent: #ffcb0f;
  --color-accent-strong: #f3be04;
  --color-border: #ececec;
  --color-shadow: rgba(17, 26, 30, 0.08);
  --container-width: 1510px;
  --radius-round: 999px;
  --radius-card: 8px;
  --transition-fast: 0.25s ease;
  --hero-image: url("./assets/images/slate-roof-hero.jpg");
}

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

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 104px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: "Montserrat", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

/* body.has-floating-ui { */
  /* padding-bottom: 118px; */
/* } */

body,
body * {
  font-family: "Montserrat", sans-serif !important;
}

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

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

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.container {
  width: min(calc(100% - 64px), var(--container-width));
  margin: 0 auto;
}

.container--hero {
  width: min(calc(100% - 64px), 1600px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 30px;
  border-radius: var(--radius-round);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--accent {
  color: var(--color-text-strong);
  background: var(--color-accent);
  box-shadow: 0 18px 34px rgba(255, 203, 15, 0.34);
}

.btn--accent:hover {
  background: var(--color-accent-strong);
}

.btn--dark {
  color: #ffffff;
  background: var(--color-dark);
  box-shadow: 0 16px 30px rgba(36, 57, 61, 0.24);
}

.btn--small {
  min-height: 46px;
  padding: 0 22px;
  font-size: 16px;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 42px, 0);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.section-title {
  margin: 0;
  color: var(--color-text-strong);
  font-size: 52px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
}

.section-title--caps {
  text-transform: uppercase;
}

.section-header {
  display: grid;
  gap: 16px;
  margin-bottom: 40px;
}

.section-header p {
  max-width: 720px;
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.7;
}

.icon-badge,
.stats-item__icon,
.service-card__icon,
.popular-card__icon,
.advantage-card__icon {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
}

.icon-badge {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  color: #3c4145;
  background: var(--color-accent);
  box-shadow: 0 16px 28px rgba(38, 57, 61, 0.12);
}

.icon-badge svg,
.stats-item__icon svg,
.service-card__icon svg,
.popular-card__icon svg,
.advantage-card__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-badge::before {
    content: "";
  width: 30px;
  height: 30px;
  background-color: currentColor;
  -webkit-mask: var(--icon-url) center / contain no-repeat;
  mask: var(--icon-url) center / contain no-repeat;
}
.stats-item__icon::before,
.service-card__icon::before,
.popular-card__icon::before,
.advantage-card__icon::before {
  content: "";
  width: 26px;
  height: 26px;
  background-color: currentColor;
  -webkit-mask: var(--icon-url) center / contain no-repeat;
  mask: var(--icon-url) center / contain no-repeat;
}

.icon-badge--small {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}

.icon-badge--small::before {
  width: 36px;
  height: 36px;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  padding-top: 32px;
}

.header-top {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
  color: var(--color-dark);
  background: var(--color-accent);
  font-size: 25px;
  font-weight: 700;
  text-transform: lowercase;
}

.brand__text {
  display: grid;
  gap: 4px;
}

.brand__title {
  color: var(--color-text-strong);
  font-size: 21px;
  font-weight: 700;
}

.brand__subtitle {
  color: var(--color-muted);
  font-size: 15px;
}

.header-contacts {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 8px 16px 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: var(--radius-round);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 34px rgba(17, 26, 30, 0.12);
  backdrop-filter: blur(14px);
}

.header-contacts__icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-dark);
  background: var(--color-accent);
}

.header-contacts__icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.header-contacts__text {
  display: grid;
  gap: 2px;
}

.header-contacts__text span {
  color: #33464b;
  font-size: 13px;
}

.header-contacts__text strong {
  color: #3c4145;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.header-top__button {
  min-width: 158px;
  min-height: 65px;
  margin-left: 0;
  padding: 0 30px;
  border: 1px solid rgba(255, 203, 15, 0.74);
  color: #3c4145;
  background: var(--color-accent);
  box-shadow:
    0 18px 38px rgba(255, 203, 15, 0.36),
    0 0 0 4px rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(10px);
}

.header-top__button:hover {
  color: #3c4145;
  background: var(--color-accent-strong);
  box-shadow:
    0 22px 46px rgba(255, 203, 15, 0.42),
    0 0 0 5px rgba(255, 203, 15, 0.24);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 10px;
  border: 1px solid rgba(36, 57, 61, 0.14);
  border-radius: 50%;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-dark);
}

.menu-toggle span + span {
  margin-top: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  /* width: min(100%, 1040px); */
  width: min(100%, 644px);
  margin-top: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(20, 25, 27, 0.12);
  color: #2e3a3e;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  transition: color var(--transition-fast);
}

.site-nav a:hover {
  color: var(--color-text-strong);
}

.hero {
  position: relative;
  min-height: 100svh;
  /* background: var(--hero-image) center center / cover no-repeat; */
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.92) 31%, rgba(255, 255, 255, 0) 56%, rgba(255, 255, 255, 0) 76%),
    var(--hero-image) center 25%  / cover no-repeat;
}

.hero__inner {
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 180px 0 116px;
}

.hero__content {
  position: relative;
  max-width: 610px;
  padding-left: 34px;
}

.hero__content::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 2px;
  /* height: 331px; */
  height: 100%;
  background: #3c4145;
}

.hero__eyebrow {
  margin: 0 0 18px;
  color: var(--color-dark);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0 0 30px;
  color: #3c4145;
  font-size: 58px;
  font-weight: 800;
  line-height: 0.97;
  letter-spacing: 0;
}

.hero__feature {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 520px;
  margin-bottom: 38px;
  color: #2e3a3e;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.advantages {
  padding: 86px 0 0;
  background: #ffffff;
}

.advantages__header {
  grid-template-columns: minmax(0, 520px) minmax(0, 700px);
  align-items: end;
  justify-content: space-between;
  margin-bottom: 30px;
}

.advantages__header p {
  max-width: none;
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.advantage-card {
  min-height: 230px;
  padding: 26px 22px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(17, 26, 30, 0.05);
}

.advantage-card__icon {
  width: 50px;
  height: 50px;
  color: var(--color-dark);
  background: var(--color-accent);
  box-shadow: 0 14px 26px rgba(255, 203, 15, 0.26);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.advantage-card__icon::before {
  content: none;
}

.advantage-card h3 {
  margin: 22px 0 10px;
  color: #172024;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.14;
}

.advantage-card p {
  margin: 0;
  color: #435258;
  font-size: 15px;
  line-height: 1.65;
}

.services-preview {
  position: relative;
  padding: 72px 0 116px;
}

.services-preview__layout {
  display: block;
}

.services-stats {
  position: relative;
  z-index: 2;
}

.stats-panel {
  padding: 34px 30px 26px;
  color: #ffffff;
  background: var(--color-dark);
}

.stats-item {
  padding: 20px 0 24px;
  text-align: center;
}

.stats-item + .stats-item {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stats-item__icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  color: rgba(255, 255, 255, 0.9);
}

.stats-item__value {
  display: block;
  margin-bottom: 8px;
  font-size: 58px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.stats-item__label {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.45;
}

.discount-card {
  margin-top: 18px;
  padding: 28px 24px 24px;
  text-align: center;
  background: var(--color-accent);
}

.discount-card__caption,
.discount-card__note {
  margin: 0;
}

.discount-card__caption {
  font-size: 16px;
}

.discount-card__value {
  display: block;
  margin: 8px 0;
  color: #161b1d;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  text-transform: uppercase;
}

.discount-card__note {
  margin-bottom: 18px;
  font-size: 13px;
}

.services-grid-wrap {
  padding-top: 0;
}

.services-grid-wrap .section-title {
  margin-bottom: 34px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 28px;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(17, 26, 30, 0.04);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(17, 26, 30, 0.08);
}

.service-card__media {
  position: relative;
  overflow: hidden;
  background: #f7f7f7;
}

.service-card__media img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.service-card:hover .service-card__media img {
  transform: scale(1.03);
}

.service-card__icon {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 44px;
  height: 44px;
  color: var(--color-dark);
  background: var(--color-accent);
  box-shadow: 0 12px 26px rgba(36, 57, 61, 0.18);
}

.service-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 20px;
}

.service-card__title {
  display: block;
  margin-top: 0;
  color: #1d2528;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

.service-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-round);
  color: var(--color-text-strong);
  background: var(--color-accent);
  /* box-shadow: 0 12px 24px rgba(255, 203, 15, 0.26); */
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.service-card:hover .service-card__action {
  background: var(--color-accent-strong);
  box-shadow: 0 14px 28px rgba(255, 203, 15, 0.34);
  transform: translateY(-1px);
}

.about {
  padding: 10px 0 40px;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(440px, 1.2fr);
  gap: 46px;
  align-items: center;
}

.about__text {
  max-width: 490px;
  margin: 26px 0 0;
  color: #3c4145;
  font-size: 16px;
  line-height: 1.75;
}

.about__support {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

.about__thumb {
  width: 196px;
  height: 138px;
  object-fit: cover;
}

.guarantee-card {
  display: grid;
  gap: 8px;
}

.guarantee-card__label {
  margin: 0;
  color: #3c4145;
  font-size: 18px;
}

.guarantee-card__value {
  color: #3c4145;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.98;
}

.about__media img {
  width: 100%;
  height: 432px;
  object-fit: cover;
}

.workflow-cta {
  padding: 30px 0 116px;
}

.workflow-cta__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.workflow-step,
.workflow-promo {
  min-height: 170px;
  padding: 26px 24px;
  border: 1px solid var(--color-border);
  background: #ffffff;
}

.workflow-step__index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-accent);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.workflow-step__index::after {
  content: "";
  width: 34px;
  height: 2px;
  background: rgba(210, 169, 0, 0.42);
}

.workflow-step p,
.workflow-promo__title {
  margin: 16px 0 10px;
  color: #3c4145;
  font-size: 15px;
  line-height: 1.65;
}

.workflow-step strong,
.workflow-step__phone {
  color: #3c4145;
  font-size: 19px;
  font-weight: 700;
}

.workflow-promo {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(20, 29, 32, 0.9) 0%, rgba(20, 29, 32, 0.76) 58%, rgba(20, 29, 32, 0.62) 100%),
    url("./assets/images/slate-repair.jpg") center center / cover no-repeat;
  border-color: rgba(20, 29, 32, 0.28);
  box-shadow: 0 22px 44px rgba(17, 26, 30, 0.14);
}

.workflow-promo__title {
  margin: 0 0 24px;
  color: #ffffff;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.popular-services {
  padding: 0 0 108px;
}

.popular-services__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: stretch;
}

.popular-services__media {
  height: 100%;
}

.popular-services__media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.popular-services__lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
  align-content: stretch;
}

.popular-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  height: 100%;
  padding: 26px 24px;
  border: 1px solid var(--color-border);
  background: #ffffff;
}

.popular-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.popular-card__icon {
  width: 46px;
  height: 46px;
  color: #3c4145;
  background: var(--color-accent);
  box-shadow: 0 14px 26px rgba(36, 57, 61, 0.12);
}

.popular-card__title {
  margin: 0;
  color: #3c4145;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.popular-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.popular-card li {
  position: relative;
  padding-left: 14px;
  color: #3c4145;
  font-size: 15px;
  line-height: 1.85;
}

.popular-card li::before {
  content: "-";
  position: absolute;
  left: 0;
  top: 0;
}

.gallery {
  padding: 0 0 108px;
}

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

.gallery-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-border);
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(17, 26, 30, 0.06);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.gallery-card:hover img {
  transform: scale(1.03);
}

.gallery-card__caption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  max-width: min(74%, 250px);
  padding: 12px 14px 10px;
  border-left: 3px solid var(--color-accent);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 20px rgba(17, 26, 30, 0.1);
}

.gallery-card__title {
  display: block;
  margin-bottom: 4px;
  color: #3c4145;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.gallery-card__caption p {
  margin: 0;
  color: #3c4145;
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gallery-card--featured .gallery-card__caption {
  max-width: min(74%, 250px);
}

.gallery-card--featured .gallery-card__title {
  font-size: 20px;
}

.gallery-card--featured,
.gallery-card--stack,
.gallery-card--wide {
  grid-column: auto;
  grid-row: auto;
}

.reviews-contacts {
  padding: 0 0 90px;
}

.reviews-contacts__grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 54px;
  align-items: stretch;
}

.reviews__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
  margin-top: 34px;
}

.review-card {
  display: flex;
  flex-direction: column;
  min-height: 186px;
  padding: 24px 24px 22px;
  border: 1px solid var(--color-border);
  background: #ffffff;
}

.review-card__quote {
  color: var(--color-accent);
  font-size: 36px;
  font-weight: 800;
  line-height: 0.7;
}

.review-card p {
  margin: 12px 0 14px;
  color: #3c4145;
  font-size: 15px;
  line-height: 1.75;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.review-card__avatar {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 50%;
  color: #3c4145;
  background: var(--color-accent);
  object-fit: cover;
}

.review-card__avatar--initials {
  display: inline-grid;
  place-items: center;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}

.review-card strong {
  color: #3c4145;
  font-size: 16px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 36px 34px 40px;
  border: 1px solid #f1f1f1;
  box-shadow: 0 24px 48px var(--color-shadow);
  background: #ffffff;
}

.contact-card h3 {
  margin: 0;
  color: #3c4145;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.contact-card > p {
  margin: 16px 0 26px;
  color: #3c4145;
  font-size: 15px;
  line-height: 1.7;
}

.contact-card__services {
  margin-bottom: 22px;
  padding-top: 4px;
  /* border-top: 1px solid var(--color-border); */
}

.contact-card__services-title {
  margin: 0 0 12px;
  color: #8da0a7;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-card__services-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-card__services-list li {
  position: relative;
  padding: 10px 0 10px 18px;
  color: #435258;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.contact-card__services-list li + li {
  border-top: 1px solid rgba(236, 236, 236, 0.85);
}

.contact-card__services-list li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}

.phone-stack {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.phone-stack a {
  color: var(--color-text-strong);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.phone-stack--compact a {
  font-size: 24px;
}

.contacts-map__frame {
  background: #f3f3f3;
}

.contacts-map__frame iframe {
  display: block;
  width: 100%;
  height: 330px;
  border: 0;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  padding: 34px 0 38px;
  align-items: start;
}

.contacts-item__label {
  margin: 0 0 12px;
  color: #3c4145;
  font-size: 14px;
}

.contacts-item__value {
  margin: 0;
  color: #1f292d;
  font-size: 16px;
  line-height: 1.7;
}

.site-footer {
  border-top: 1px solid var(--color-border);
}

.footer__bottom {
  display: flex;
  justify-content: center;
  padding: 18px 0 24px;
  color: #94a0a4;
  font-size: 13px;
}

.floating-call,
.floating-collab,
.floating-collab-toggle,
.scroll-top {
  position: fixed;
  z-index: 40;
}

.floating-call {
  left: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 12px 18px 12px 12px;
  border-radius: var(--radius-round);
  color: var(--color-text-strong);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(17, 26, 30, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity var(--transition-fast),
    visibility var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.floating-call__pulse {
  position: absolute;
  inset: 8px auto 8px 8px;
  width: 52px;
  border-radius: 50%;
  background: rgba(255, 203, 15, 0.34);
  animation: pulse-ring 2.2s ease-out infinite;
}

.floating-call__icon {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  color: var(--color-text-strong);
  background: var(--color-accent);
  box-shadow: 0 14px 28px rgba(255, 203, 15, 0.3);
  animation: phone-bob 1.8s ease-in-out infinite;
}

.floating-call__icon svg,
.scroll-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-call__text {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
}

.floating-call__text strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.floating-call__text span {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.3;
}

.floating-collab {
  right: 24px;
  bottom: 96px;
  position: fixed;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  width: min(320px, calc(100vw - 120px));
  padding: 0;
  border: 1px solid rgba(17, 26, 30, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 42px rgba(17, 26, 30, 0.18);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast),
    visibility var(--transition-fast);
}

.floating-collab__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #6f8086;
  background: rgba(17, 26, 30, 0.06);
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.floating-collab__close svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-collab__close:hover {
  color: #162024;
  background: rgba(17, 26, 30, 0.12);
  transform: rotate(90deg);
}

.floating-collab.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
}

.floating-collab__image {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: block;
  object-fit: cover;
}

.floating-collab__content {
  display: grid;
  gap: 6px;
  padding: 14px 42px 14px 16px;
}

.floating-collab__content strong {
  color: #162024;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.floating-collab__content p {
  margin: 0;
  color: #6f8086;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.floating-collab-toggle {
  right: 24px;
  bottom: 96px;
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--color-accent);
  box-shadow: 0 18px 32px rgba(255, 199, 0, 0.34);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast),
    visibility var(--transition-fast),
    background var(--transition-fast);
}

.floating-collab-toggle svg {
  width: 24px;
  height: 24px;
  stroke: #162024;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-collab-toggle.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
}

.floating-collab-toggle:hover {
  background: #ffd43a;
}

.scroll-top {
  right: 24px;
  bottom: 24px;
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--color-dark);
  box-shadow: 0 18px 32px rgba(36, 57, 61, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast),
    visibility var(--transition-fast),
    background var(--transition-fast);
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
}

.floating-call.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
}

.floating-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(17, 26, 30, 0.2);
}

.scroll-top:hover {
  background: var(--color-dark-strong);
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.88);
    opacity: 0.85;
  }

  70% {
    transform: scale(1.28);
    opacity: 0;
  }

  100% {
    transform: scale(1.28);
    opacity: 0;
  }
}

@keyframes phone-bob {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }

  20% {
    transform: rotate(-10deg) scale(1.02);
  }

  40% {
    transform: rotate(10deg) scale(1.02);
  }

  60% {
    transform: rotate(-6deg) scale(1.01);
  }

  80% {
    transform: rotate(6deg) scale(1.01);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .floating-call__pulse,
  .floating-call__icon {
    animation: none;
  }

  .scroll-top {
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
  }
}

@media (max-width: 1180px) {
  .hero__inner {
    padding-top: 168px;
  }

  .services-preview__layout {
    gap: 30px;
  }

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

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

}

@media (max-width: 992px) {
  .site-header {
    position: sticky;
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(36, 57, 61, 0.08);
  }

  .header-top {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .header-contacts {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .header-top__button {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 18px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero {
    min-height: auto;
  }

  .hero__inner {
    min-height: 720px;
    padding: 86px 0 66px;
  }

  .hero__title {
    font-size: 50px;
  }

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

  .advantages {
    padding-top: 72px;
  }

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

  .services-preview__layout,
  .about__grid,
  .popular-services__grid,
  .reviews-contacts__grid,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .services-preview__layout {
    margin-top: 0;
  }

  .services-grid-wrap {
    padding-top: 10px;
  }

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

  .service-card__media img {
    height: 220px;
  }

  .workflow-cta__grid,
  .popular-services__lists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .popular-services__media {
    min-height: 440px;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(calc(100% - 32px), var(--container-width));
  }

  .container--hero {
    width: min(calc(100% - 32px), 1600px);
  }

  .site-header {
    top: 0;
  }

  .header-top {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
  }

  .brand {
    gap: 12px;
    min-width: 0;
  }

  .brand__text {
    min-width: 0;
  }

  .brand__title {
    line-height: 1.08;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    /*white-space: nowrap; overflow: hidden; text-overflow: ellipsis;*/
            max-width: 116px;
        font-size: 15px;
  }

  .brand__subtitle {
    display: none;
  }

  .header-contacts {
    gap: 8px;
  }

  .header-contacts__icon {
    width: 32px;
    height: 32px;
  }

  .header-contacts__text span {
    display: none;
  }

  .header-contacts__text strong {
    font-size: 14px;
  }

  .hero {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 42%, rgba(255, 255, 255, 0.48) 78%, rgba(255, 255, 255, 0) 100%),
      var(--hero-image) 72% top / cover no-repeat;
  }

  .hero__inner {
    min-height: 680px;
    padding: 54px 0 46px;
    align-items: center;
  }

  .hero__content {
    max-width: 100%;
    padding-left: 18px;
  }

  .hero__content::before {
    height: 57%;
  }

  .hero__title {
    font-size: 42px;
  }

  .hero__feature {
    font-size: 16px;
  }

  .advantages {
    padding-top: 56px;
  }

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

  .advantage-card {
    min-height: 0;
  }

  .services-preview {
    padding: 60px 0 90px;
  }

  .services-grid,
  .workflow-cta__grid,
  .popular-services__lists {
    grid-template-columns: 1fr;
  }

  .gallery {
    padding-bottom: 90px;
  }

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

  .gallery-card,
  .gallery-card--featured,
  .gallery-card--stack,
  .gallery-card--wide {
    min-height: 0;
  }

  .gallery-card__caption {
    right: 14px;
    bottom: 14px;
    left: 14px;
    max-width: min(78%, 250px);
    padding: 11px 12px 10px;
  }

  .gallery-card__title,
  .gallery-card--featured .gallery-card__title {
    font-size: 18px;
  }

  .gallery-card__caption p {
    font-size: 12px;
  }

  .service-card__media img {
    height: 240px;
  }

  .service-card__body {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-card__action {
    min-width: 0;
  }

  .about__support {
    flex-direction: column;
    align-items: flex-start;
  }

  .about__thumb {
    width: 100%;
    max-width: 100%;
  }

  .about__media img {
    height: auto;
  }

  .contact-card {
    padding: 30px 24px 34px;
  }

  .phone-stack a,
  .phone-stack--compact a {
    font-size: 20px;
  }

  .floating-call {
    left: 16px;
    bottom: 16px;
    min-height: 60px;
    padding: 10px 14px 10px 10px;
    gap: 10px;
  }

  .floating-call__pulse,
  .floating-call__icon {
    width: 46px;
  }

  .floating-call__icon {
    height: 46px;
    flex-basis: 46px;
  }

  .floating-call__text strong {
    font-size: 16px;
  }

  .floating-call__text span {
    font-size: 12px;
  }

  .floating-collab {
    right: 16px;
    bottom: 78px;
    grid-template-columns: 78px minmax(0, 1fr);
    width: min(260px, calc(100vw - 96px));
    padding: 0;
  }

  .floating-collab__image {
    width: 100%;
    height: 100%;
  }

  .floating-collab__content strong {
    font-size: 15px;
  }

  .floating-collab__content p {
    font-size: 12px;
  }

  .floating-collab__content {
    padding: 12px 38px 12px 14px;
  }

  .floating-collab-toggle {
    right: 16px;
    bottom: 78px;
    width: 52px;
    height: 52px;
  }

  .scroll-top {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 560px) {
  .brand__mark {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    font-size: 13px;
  }

  .hero__title {
    font-size: 36px;
  }

  .stats-panel,
  .discount-card {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-title,
  .contact-card h3 {
    font-size: 34px;
  }

  .popular-card__title {
    font-size: 22px;
  }

  .floating-call {
    padding-right: 12px;
  }

  .floating-collab {
    grid-template-columns: 68px minmax(0, 1fr);
    width: min(220px, calc(100vw - 88px));
    bottom: 74px;
  }

  .floating-collab__content {
    padding: 12px 34px 12px 12px;
  }

  .floating-collab-toggle {
    bottom: 74px;
  }

  .floating-collab__content p {
    display: none;
  }

  .floating-call__text span {
    display: none;
  }
}

body * {
  letter-spacing: 0 !important;
}
