:root {
  --ink: #172026;
  --muted: #5d6975;
  --line: #dce3e7;
  --paper: #f6f8f9;
  --white: #ffffff;
  --teal: #008c89;
  --teal-dark: #006a68;
  --blue: #2563eb;
  --green: #168a4a;
  --red: #df4f37;
  --charcoal: #101820;
  --radius: 8px;
  --shadow: 0 18px 48px rgba(16, 24, 32, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--white);
  line-height: 1.55;
}

img,
video {
  display: block;
  width: 100%;
}

a {
  color: inherit;
}

.home-main {
  display: flex;
  flex-direction: column;
}

.home-main > section {
  order: 10;
}

.home-main .hero {
  order: 1;
}

.home-main .quick-contact {
  order: 2;
}

.home-main .priority-services {
  order: 3;
}

.home-main .yandex-tools {
  order: 4;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  background: transparent;
  border-radius: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
}

.site-nav a,
.header-call,
.site-footer a {
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--teal-dark);
}

.header-call {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 13px 18px;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  background: var(--teal);
  border-radius: 6px;
}

.hero {
  display: grid;
  min-height: calc(82vh - 72px);
  align-items: end;
  padding: clamp(70px, 12vw, 150px) clamp(18px, 5vw, 72px) clamp(42px, 7vw, 84px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.92) 0%, rgba(16, 24, 32, 0.68) 48%, rgba(16, 24, 32, 0.12) 100%),
    url("assets/hero-service.svg") center / cover no-repeat;
}

.hero__content {
  width: min(760px, 100%);
}

.hero__identity {
  display: inline-grid;
  justify-items: center;
  margin-bottom: 18px;
}

.hero__logo {
  width: 134px;
  height: 134px;
  margin-bottom: 24px;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.section--dark .eyebrow {
  color: #ffb199;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
}

.hero-title {
  display: inline-grid;
  justify-items: center;
  max-width: 100%;
  margin-bottom: 0;
  text-align: center;
}

.hero-title span {
  display: block;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.hero__lead {
  max-width: 620px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(21px, 2.2vw, 27px);
  line-height: 1.45;
}

.hero__lead strong {
  display: block;
  margin-top: 10px;
  color: var(--white);
}

.hero__actions,
.route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(760px, 100%);
}

.hero__actions .btn {
  width: 100%;
  min-height: 72px;
  padding: 18px 16px;
  font-size: 20px;
  line-height: 1.1;
}

.hero__actions .btn__icon {
  width: 30px;
  height: 30px;
  font-size: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.btn__icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  font-size: 17px;
}

.btn--primary {
  color: var(--white);
  background: var(--teal);
}

.btn--primary:hover {
  background: var(--teal-dark);
}

.btn--light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
}

.btn--light:hover {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.22);
}

.btn--secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.priority-services {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: clamp(36px, 6vw, 68px) clamp(18px, 5vw, 72px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.priority-services__head {
  max-width: 560px;
}

.priority-services__head h2 {
  margin-bottom: 12px;
  font-size: clamp(32px, 4vw, 52px);
}

.priority-services__head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

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

.priority-card {
  min-height: 260px;
  padding: 24px;
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(16, 24, 32, 0.14);
}

.priority-card--buyout {
  background: var(--charcoal);
}

.priority-card--recycle {
  background: var(--teal-dark);
}

.priority-card__label {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-bottom: 18px;
  padding: 7px 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  background: var(--white);
  border-radius: 6px;
}

.priority-card h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.08;
}

.priority-card p {
  color: rgba(255, 255, 255, 0.78);
}

.priority-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 8px;
  padding: 10px 13px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  background: var(--white);
  border-radius: 6px;
}

.quick-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.messenger {
  display: flex;
  min-height: 112px;
  align-items: center;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 48px);
  color: var(--white);
  text-decoration: none;
}

.messenger__icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.messenger__icon svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.messenger__icon svg path + path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.messenger__icon--text {
  font-size: 15px;
  font-weight: 900;
}

.messenger__content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.messenger__content span {
  font-size: 15px;
  opacity: 0.78;
}

.messenger__content small {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 700;
}

.messenger__content strong {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1;
}

.messenger--whatsapp {
  background: var(--green);
}

.messenger--telegram {
  background: var(--blue);
}

.messenger--max {
  background: var(--red);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.yandex-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 28px clamp(18px, 5vw, 72px);
  background: #fff7df;
  border-bottom: 1px solid #eadfb9;
}

.yandex-tools__text h2 {
  margin-bottom: 6px;
  font-size: clamp(24px, 3vw, 34px);
}

.yandex-tools__text p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.yandex-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 54px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid #e1cb68;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 24, 32, 0.08);
}

.yandex-search input[type="search"] {
  min-width: 0;
  padding: 0 16px;
  color: var(--ink);
  font: inherit;
  border: 0;
  outline: 0;
}

.yandex-search button,
.browser-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 54px;
  padding: 0 18px;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  background: #ffd633;
  border: 0;
  cursor: pointer;
}

.browser-downloads {
  display: grid;
  gap: 10px;
}

.yandex-search button:hover,
.browser-download--yandex:hover {
  background: #ffc700;
}

.browser-download--chrome {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(16, 24, 32, 0.08);
}

.browser-download--chrome:hover {
  background: #f3f7fb;
  border-color: #b8c7d3;
}

.browser-download--anydesk {
  color: var(--white);
  background: #e31b23;
}

.browser-download--anydesk:hover {
  background: #c9141b;
}

.yandex-search svg,
.browser-download svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.browser-download {
  border-radius: 8px;
  white-space: nowrap;
}

.chrome-mark {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  background:
    conic-gradient(#4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0);
  border-radius: 50%;
}

.anydesk-mark {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #e31b23;
  font-size: 14px;
  font-weight: 900;
  background: var(--white);
  border-radius: 6px;
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.section--light {
  background: var(--paper);
}

.section--dark {
  color: var(--white);
  background: var(--charcoal);
}

.section__head {
  width: min(780px, 100%);
  margin-bottom: 34px;
}

.section__head p,
.split p,
.route-hero p,
.route-steps p {
  color: var(--muted);
  font-size: 18px;
}

.section--dark p {
  color: rgba(255, 255, 255, 0.74);
}

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

.service-card {
  min-height: 230px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-card--accent {
  background: #eefafa;
  border-color: rgba(0, 140, 137, 0.28);
}

.service-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  font-size: 26px;
  background: #e9f7f6;
  border-radius: 8px;
}

.service-card p {
  color: var(--muted);
}

.guarantee-note {
  margin: 22px 0 0;
  padding: 20px 24px;
  color: var(--white);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
  background: var(--charcoal);
  border-radius: var(--radius);
}

.seo-phrases {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1fr);
  gap: clamp(26px, 5vw, 66px);
  align-items: center;
  padding: clamp(44px, 7vw, 76px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(0, 140, 137, 0.12), rgba(255, 214, 51, 0.14)),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.seo-phrases__copy {
  max-width: 620px;
}

.seo-phrases h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 48px);
}

.seo-phrases p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.phrase-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.phrase-list span {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 16px 18px 16px 50px;
  color: var(--ink);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(16, 24, 32, 0.08);
}

.phrase-list span::before {
  position: absolute;
  left: 16px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  content: "+";
  background: var(--teal);
  border-radius: 6px;
}

.phrase-list span:nth-child(3n)::before {
  background: var(--blue);
}

.phrase-list span:nth-child(3n + 2)::before {
  background: var(--red);
}

.split,
.contact-layout,
.route-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: center;
}

.benefits {
  display: grid;
  gap: 12px;
}

.benefits div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.benefits strong {
  color: var(--red);
  font-size: 22px;
}

.benefits span {
  color: var(--ink);
  font-weight: 750;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list a,
.contact-list div {
  display: block;
  padding: 18px;
  color: var(--white);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.contact-list span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.contact-list strong {
  font-size: 22px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.route-hero {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background: var(--paper);
}

.route-hero h1 {
  color: var(--ink);
}

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

.media-item {
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.media-item img,
.media-item video {
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  background: #dbe4ea;
}

.media-item figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-weight: 700;
}

.map-widget {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(16, 24, 32, 0.1);
}

.map-widget__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.map-widget__links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.map-widget__links a:hover {
  color: var(--teal-dark);
  border-color: var(--teal);
}

.map-widget__frame {
  min-height: 420px;
}

.map-widget__frame iframe {
  width: 100% !important;
  height: min(68vh, 560px) !important;
  min-height: 420px;
  border: 0 !important;
}

.map-widget noscript {
  display: block;
  padding: 20px;
  color: var(--red);
  font-weight: 800;
}

.map-link-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 4vw, 38px);
  color: var(--white);
  background: var(--charcoal);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(16, 24, 32, 0.14);
}

.map-link-card span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin-bottom: 14px;
  padding: 6px 10px;
  color: var(--ink);
  font-weight: 900;
  background: var(--white);
  border-radius: 6px;
}

.map-link-card h3 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.map-link-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.route-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.route-steps div {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.route-steps span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--white);
  font-weight: 800;
  background: var(--charcoal);
  border-radius: 8px;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .header-call {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero {
    min-height: 78vh;
    background:
      linear-gradient(180deg, rgba(16, 24, 32, 0.9) 0%, rgba(16, 24, 32, 0.72) 52%, rgba(16, 24, 32, 0.52) 100%),
      url("assets/hero-service.svg") center / cover no-repeat;
  }

  .quick-contact,
  .priority-services,
  .priority-service-grid,
  .yandex-tools,
  .service-grid,
  .seo-phrases,
  .split,
  .contact-layout,
  .route-hero,
  .map-link-card,
  .media-grid,
  .route-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero__actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    min-height: 64px;
    padding: 10px 4px;
    gap: 5px;
    font-size: 13px;
    white-space: nowrap;
  }

  .hero__actions .btn__icon {
    width: 17px;
    height: 17px;
    font-size: 13px;
  }

  .hero__actions .btn__label {
    font-size: 0;
  }

  .hero__actions .btn__label::after {
    content: attr(data-mobile);
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: static;
  }

  .site-nav {
    gap: 14px;
    font-size: 14px;
  }

  h1 {
    font-size: 40px;
  }

  .hero__logo {
    width: 106px;
    height: 106px;
  }

  .route-actions {
    flex-direction: column;
  }

  .btn,
  .messenger {
    width: 100%;
  }

  .yandex-search {
    grid-template-columns: 1fr;
  }

  .yandex-search input[type="search"] {
    min-height: 54px;
  }

  .browser-download {
    width: 100%;
    white-space: normal;
  }

  .phrase-list {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}
