:root {
  --green: #20a51b;
  --navy: #102b4b;
  --header-height: 112px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
}

.scrap-page {
  --scrap-green: #24a51c;
  --scrap-navy: #102e50;
  --scrap-ink: #142b43;
  --scrap-muted: #626b73;
  --scrap-bg: #f4f6f8;
  direction: rtl;
  color: var(--scrap-ink);
  background: var(--scrap-bg);
  font-family: Tahoma, Arial, sans-serif;
  padding: 0 0 22px;
}

.scrap-page *,
.scrap-page *::before,
.scrap-page *::after {
  box-sizing: border-box;
}

.scrap-hero {
  min-height: 390px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: #fff;
  overflow: hidden;
}

.hero-copy {
  padding: 38px clamp(32px, 7vw, 110px) 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero-copy h1 {
  margin: 0 0 13px;
  color: var(--scrap-navy);
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.35;
  font-weight: 800;
  white-space: nowrap;
}

.hero-copy h1 span {
  color: var(--scrap-green);
}

.hero-copy h2 {
  margin: 0 0 22px;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.8;
  font-weight: 700;
}

.hero-copy p {
  max-width: 570px;
  margin: 0;
  color: var(--scrap-muted);
  font-size: 16px;
  line-height: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.scrap-button {
  min-height: 56px;
  min-width: 220px;
  padding: 0 20px;
  border-radius: 12px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgb(16 43 75 / 12%);
  transition: transform .2s ease, filter .2s ease;
}

.scrap-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.button-green {
  background: var(--scrap-green);
}

.button-navy {
  background: var(--scrap-navy);
}

.button-icon {
  font-size: 21px;
  line-height: 1;
}

.hero-visual {
  min-height: 390px;
  position: relative;
  overflow: hidden;
  background: #f3f6f4;
  clip-path: ellipse(88% 78% at 61% 42%);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  display: block;
  object-fit: contain;
  object-position: center;
}

.scrap-categories {
  width: min(100% - 64px, 1420px);
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  min-height: 158px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  border: 1px solid #edf0f2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 15px rgb(17 43 69 / 5%);
  flex-direction: row-reverse;
}

.category-copy {
  min-width: 0;
}

.category-copy h3 {
  margin: 0 0 7px;
  color: var(--scrap-navy);
  font-size: 18px;
}

.category-copy p {
  min-height: 44px;
  margin: 0 0 7px;
  color: var(--scrap-muted);
  font-size: 12px;
  line-height: 1.8;
}

.category-copy a {
  color: #27577d;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.category-copy a span {
  padding-right: 4px;
  font-size: 21px;
  vertical-align: -1px;
}

.category-card img {
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
}

.service-benefits {
  width: min(100% - 64px, 1420px);
  min-height: 90px;
  margin: 7px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

.benefit-item {
  min-height: 58px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.benefit-item + .benefit-item {
  border-right: 1px solid #d4dbe0;
}

.benefit-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--scrap-navy);
  font-size: 19px;
}

.benefit-item h3 {
  margin: 0 0 3px;
  font-size: 16px;
}

.benefit-item p {
  margin: 0;
  color: #454f58;
  font-size: 12px;
  line-height: 1.7;
}

.price-section {
  width: min(100% - 64px, 1420px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 22px;
  align-items: stretch;
}

.price-table-wrap,
.price-panel {
  overflow: hidden;
  border: 1px solid #edf0f2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgb(17 43 69 / 4%);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
}

.price-table th {
  padding: 9px 16px;
  color: #fff;
  background: var(--scrap-navy);
  font-size: 14px;
  font-weight: 700;
}

.price-table td {
  padding: 10px 16px;
  border-bottom: 1px solid #e5e9ec;
  color: #202a32;
  font-size: 14px;
}

.price-table tbody tr:last-child td {
  border-bottom: 0;
}

.price-table td:not(:first-child) {
  text-align: center;
}

.price-panel {
  padding: 17px 22px 16px;
}

.price-panel h2 {
  margin: 0;
  color: var(--scrap-navy);
  font-size: 23px;
}

.title-underline {
  width: 54px;
  height: 4px;
  margin: 14px 0 17px;
  display: block;
  background: var(--scrap-green);
}

.price-filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.filter-button {
  min-height: 39px;
  padding: 6px 10px;
  border: 1px solid #d9dfe3;
  border-radius: 22px;
  color: var(--scrap-ink);
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.filter-button:hover,
.filter-button.selected {
  border-color: var(--scrap-green);
  color: #fff;
  background: var(--scrap-green);
}

.price-note {
  margin: 15px 0 5px;
  color: var(--scrap-muted);
  font-size: 12px;
  line-height: 1.8;
}

.price-call-link {
  color: var(--scrap-navy);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.site-header {
  width: 100%;
  height: var(--header-height);
  background: #fff;
  direction: rtl;
  font-family: Tahoma, Arial, sans-serif;
  position: relative;
  z-index: 20;
}

.header-inner {
  width: calc(100% - 48px);
  max-width: none;
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
}

.brand-name {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: clamp(24px, 2.1vw, 31px);
  line-height: 1.2;
  font-weight: 800;
}

.brand-dark {
  color: var(--navy);
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 62px);
}

.nav-link {
  color: #14283e;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 0;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #14283e;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
}

.header-phone {
  justify-self: start;
  min-width: 212px;
  height: 54px;
  padding: 0 20px;
  border-radius: 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 3px 8px rgb(32 165 27 / 16%);
}

.header-phone svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: currentColor;
}

.menu-toggle {
  display: none;
}

.site-footer {
  min-height: 64px;
  width: 100%;
  position: relative;
  background: #0f2b4b;
  color: #f4f7fa;
  font-family: Tahoma, Arial, sans-serif;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #24a51c 0 18%, #0f2b4b 18% 100%);
}

.footer-inner {
  width: min(100% - 48px, 1200px);
  min-height: 64px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-title {
  white-space: nowrap;
  font-size: 14px;
}

.footer-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f4f7fa;
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
}

.footer-item:hover {
  color: #77d36e;
}

.footer-icon {
  color: #a7d1a6;
  font-size: 15px;
}

.footer-divider {
  width: 1px;
  height: 20px;
  background: rgb(255 255 255 / 28%);
}

@media (max-width: 900px) {
  :root {
    --header-height: 88px;
  }

  .scrap-hero {
    grid-template-columns: 1fr 0.9fr;
    min-height: 340px;
  }

  .hero-copy {
    padding: 28px 32px;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 340px;
  }

  .scrap-categories,
  .service-benefits,
  .price-section {
    width: min(100% - 36px, 700px);
  }

  .scrap-categories {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 135px;
  }

  .category-copy p {
    min-height: 0;
  }

  .category-card img {
    width: 108px;
    height: 108px;
    flex-basis: 108px;
  }

  .price-section {
    grid-template-columns: 1fr;
  }

  .header-inner {
    width: calc(100% - 32px);
    grid-template-columns: auto 1fr auto;
    gap: 16px;
  }

  .brand {
    grid-column: 3;
    gap: 8px;
  }

  .brand-logo {
    width: 54px;
    height: 54px;
  }

  .brand-name {
    font-size: 23px;
  }

  .header-phone {
    grid-column: 1;
    min-width: auto;
    height: 46px;
    padding-inline: 14px;
    font-size: 14px;
  }

  .menu-toggle {
    grid-column: 2;
    justify-self: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: #f2f5f7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 21px;
    height: 2px;
    border-radius: 2px;
    background: var(--navy);
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(var(--header-height) - 2px);
    right: 16px;
    left: 16px;
    padding: 12px;
    border: 1px solid #e6ebef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 28px rgb(16 43 75 / 12%);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link {
    padding: 14px 12px;
  }

  .nav-link.active::after {
    right: 0;
    left: auto;
    bottom: 50%;
    transform: translateY(50%);
  }
}

@media (max-width: 760px) {
  .footer-inner {
    width: calc(100% - 32px);
    padding-block: 18px;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px 20px;
  }

  .footer-title {
    flex-basis: 100%;
  }

  .footer-divider {
    display: none;
  }

  .footer-item {
    font-size: 13px;
  }
}

@media (max-width: 620px) {
  .scrap-hero {
    display: flex;
    flex-direction: column-reverse;
  }

  .hero-visual {
    min-height: 230px;
    clip-path: none;
  }

  .hero-visual img {
    min-height: 230px;
    max-height: 280px;
  }

  .hero-copy {
    padding: 25px 22px 30px;
  }

  .hero-copy h1 {
    font-size: clamp(20px, 6vw, 30px);
    white-space: nowrap;
  }

  .hero-copy h2 {
    font-size: 18px;
  }

  .hero-copy p {
    font-size: 14px;
  }

  .hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .scrap-button {
    width: 100%;
    min-height: 50px;
  }

  .scrap-categories,
  .service-benefits,
  .price-section {
    width: calc(100% - 24px);
  }

  .service-benefits {
    grid-template-columns: 1fr;
    padding: 8px 0;
  }

  .benefit-item {
    min-height: 68px;
    padding: 8px 12px;
  }

  .benefit-item + .benefit-item {
    border-right: 0;
    border-top: 1px solid #d4dbe0;
  }

  .price-panel {
    padding: 17px 14px;
  }

  .price-panel h2 {
    font-size: 20px;
  }

  .price-filters {
    grid-template-columns: repeat(2, 1fr);
  }

  .price-table th,
  .price-table td {
    padding: 10px 8px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    width: calc(100% - 20px);
    gap: 8px;
  }

  .brand {
    gap: 7px;
  }

  .brand-name {
    font-size: 19px;
    gap: 3px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .header-phone {
    height: 40px;
    padding-inline: 10px;
    gap: 7px;
    font-size: 12px;
  }

  .header-phone svg {
    width: 15px;
    height: 15px;
  }
}
