﻿:root {
  --blue: #1284c5;
  --blue-dark: #006daa;
  --orange: #ed5a18;
  --text: #111111;
  --muted: #5f6368;
  --soft: #f3f3f3;
  --tip: #d4eaf8;
  --line: #d8d8d8;
  --overlay: rgba(43, 38, 38, 0.9);
  --container: 1700px;
}
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.35;
  background: #ffffff;
}


ul#modal-list li {
    border-bottom: dashed 1px #e45e1b;
}

.header-phones a {
    border: solid 1px #e35a16;
    padding: 15px;
    border-radius: 30px;
}





body.modal-open {
  overflow: hidden;
}

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

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

a:hover {
  color: var(--blue);
}

button {
  font: inherit;
}

.container {
  width: min(85vw, var(--container));
  margin: 0 auto;
}

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

.site-header {
  padding: 70px 0 36px;
  background: #ffffff;
}

.header-grid {
  display: grid;
  grid-template-columns: 260px 1fr minmax(300px, auto);
  align-items: center;
  gap: 24px;
}

.logo-link {
  width: 238px;
}

.logo {
  width: 238px;
  height: auto;
}

.header-phones,
.header-address {
  display: flex;
  color: #30343a;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
}

.header-phones {
  flex-direction: row;
  gap: 18px;
  justify-self: end;
  white-space: nowrap;
}

.header-address {
  flex-direction: column;
  justify-self: end;
}

.hero {
  padding-bottom: 88px;
}

.hero-inner {
  position: relative;
  min-height: 506px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  overflow: hidden;
  background: var(--soft);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 850px;
  padding: 76px 0 70px 76px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-city {
  margin: 4px 0 0;
  color: var(--blue);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.05;
}

.hero-badge {
  width: max-content;
  max-width: 100%;
  margin: 10px 0 34px -22px;
  padding: 5px 28px 8px;
  color: #ffffff;
  background: var(--orange);
  border-radius: 999px;
  font-size: clamp(24px, 2.9vw, 36px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.hero-note {
  max-width: 570px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.58;
}

.hero-note strong {
  font-weight: 800;
}

.hero-media {
  position: relative;
  align-self: stretch;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  right: -64px;
  top: -36px;
  width: min(665px, 62vw);
  height: auto;
  opacity: 0;
  object-fit: contain;
  object-position: right top;
  transition: opacity 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.catalog-section {
  padding: 0 0 116px;
}

.section-head {
  max-width: 860px;
  margin-left: 50px;
  margin-bottom: 82px;
}

.section-head h2 {
  margin: 0 0 25px;
  font-size: clamp(32px, 4vw, 43px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
}

.section-head p {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.catalog-tip {
  display: inline-flex;
  flex-direction: column;
  min-width: min(540px, 100%);
  padding: 13px 30px 15px;
  color: #222222;
  background: var(--tip);
  border-radius: 24px;
  font-size: 16px;
  line-height: 1.25;
}

.catalog-tip strong {
  font-weight: 800;
}

.catalog-groups {
  display: flex;
  flex-direction: column;
  gap: 92px;
}

.catalog-group h3 {
  margin: 0 0 30px 50px;
  font-size: 27px;
  font-weight: 900;
  line-height: 1.1;
}

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

.catalog-card {
  position: relative;
  min-height: 112px;
  aspect-ratio: 2.3 / 1;
  display: block;
  overflow: hidden;
  padding: 15px 120px 16px 12px;
  text-align: left;
  color: var(--text);
  background: #f2f2f2;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.catalog-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  pointer-events: none;
  transition: border-color 0.2s ease;
}

.catalog-card:hover::after,
.catalog-card:focus-visible::after {
  border-color: var(--blue);
}

.catalog-card:focus-visible {
  outline: 3px solid rgba(18, 132, 197, 0.25);
  outline-offset: 2px;
}

.catalog-card-title {
  position: absolute;
  top: 15px;
  left: 12px;
  z-index: 2;
  display: block;
  max-width: 175px;
  font-size: clamp(14px, 0.9vw, 22px);
  font-weight: 600;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.catalog-card-image {
  position: absolute;
  right: 0;
  top: 0;
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.catalog-card-more {
  position: absolute;
  left: 12px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 83px;
  height: 30px;
  padding: 0 14px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.catalog-card:hover .catalog-card-more,
.catalog-card:focus-visible .catalog-card-more {
  background: var(--blue-dark);
}

.contacts-section {
  padding: 30px 0 132px;
}

.contacts-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 96px;
}

.contacts-logo img {
  width: min(330px, 72vw);
}

.map-wrap {
  width: min(1400px, calc(100% - 86px));
  margin: 0 auto 54px;
  overflow: hidden;
  background: #eef2f4;
}

.map-wrap iframe {
  width: 100%;
  height: 370px;
}

.contacts-grid {
  width: min(910px, calc(100% - 120px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  margin: 0 auto;
}

.contact-phones,
.contact-details {
  display: flex;
  flex-direction: column;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.52;
}

.contact-details p {
  margin: 0 0 22px;
}

.contact-details a {
  width: max-content;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  padding: 30px 24px;
}

.modal.is-open {
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100vw - 88px));
  height: min(740px, calc(100dvh - 60px));
  max-height: calc(100dvh - 60px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(330px, 1.08fr);
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  overflow: visible;
}

.modal-close {
  position: absolute;
  top: -22px;
  left: -22px;
  z-index: 4;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--orange);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.modal-close span {
  display: block;
  margin-top: -5px;
  font-size: 40px;
  font-weight: 800;
  line-height: 0.8;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: #d64a0c;
  transform: scale(1.04);
}

.modal-close:focus-visible {
  outline: 4px solid rgba(237, 90, 24, 0.25);
  outline-offset: 4px;
}

.modal-product {
  min-height: 0;
  display: grid;
  grid-template-rows: 240px minmax(0, 1fr);
  background: #f5f5f5;
}

.modal-product-image {
  min-height: 0;
  overflow: hidden;
  background: #f4f4f4;
}

.modal-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right top;
 /* mix-blend-mode: multiply; */
}

.modal-product-content {
  min-height: 0;
  padding: 42px 44px 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-product-content h3 {
  margin: 0 0 26px;
  font-size: clamp(28px, 2vw, 32px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
}

.product-list {
  flex: 1;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 0 10px 0 0;
  list-style: none;
  overflow: auto;
  color: #202020;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.72;
}

.product-list li {
  overflow-wrap: anywhere;
}

.modal-info {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 44px 52px 28px;
  border-left: 1px solid #a9a9a9;
  overflow: hidden;
}

.modal-info h3 {
  margin: 0 0 24px;
  font-size: clamp(26px, 2vw, 34px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.modal-info p {
  margin: 0 0 14px;
  color: #222222;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

.modal-info strong {
  font-weight: 800;
}

.modal-callout {
  margin: 10px 0 28px;
  padding: 16px 24px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 60px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.24;
}

.modal-phones {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
  font-size: clamp(28px, 2.5vw, 26px);
  font-weight: 400;
  line-height: 1.12;
}

.modal-address {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.modal-address p {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.modal-logo {
  width: 170px;
  margin: auto auto 0;
}

@media (min-width: 861px) and (max-height: 700px) {
  .modal-dialog {
    height: calc(100dvh - 60px);
  }

  .modal-product {
    grid-template-rows: 250px minmax(0, 1fr);
  }

  .modal-product-content {
    padding: 34px 36px 28px;
  }

  .modal-product-content h3 {
    margin-bottom: 24px;
    font-size: clamp(24px, 1.85vw, 29px);
  }

  .product-list {
    font-size: 13px;
    line-height: 1.7;
  }

  .modal-info {
    padding: 34px 42px 20px;
  }

  .modal-info h3 {
    margin-bottom: 24px;
    font-size: clamp(21px, 1.75vw, 24px);
  }

  .modal-info p {
    margin-bottom: 12px;
    font-size: 10px;
    line-height: 1.42;
  }

  .modal-callout {
    margin: 10px 0 24px;
    padding: 15px 24px;
    font-size: 11px;
  }

  .modal-phones {
    margin-bottom: 20px;
    font-size: clamp(22px, 2.05vw, 26px);
  }

  .modal-address {
    gap: 8px;
    margin-bottom: 8px;
  }

  .modal-address p {
    font-size: 13px;
  }

  .modal-logo {
    width: 135px;
  }
}
@media (max-width: 1100px) {
  .site-header {
    padding-top: 42px;
  }

  .header-grid {
    grid-template-columns: 220px 1fr;
  }

  .header-address {
    grid-column: 2;
    justify-self: start;
  }

  .hero-copy {
    padding-left: 50px;
  }

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

  .modal-dialog {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.8fr);
  }

  .modal-product-content,
  .modal-info {
    padding-left: 46px;
    padding-right: 46px;
  }
}

@media (max-width: 860px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    padding: 28px 0 22px;
  }

  .header-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .logo-link {
    justify-self: center;
  }

  .header-address {
    grid-column: auto;
    justify-self: center;
  }

  .header-phones,
  .header-address {
    align-items: center;
    justify-self: center;
    font-size: 14px;
  }

  .header-phones {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
  }

  .hero {
    padding-bottom: 64px;
  }

  .hero-inner {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 38px 28px 24px;
  }

  .hero h1 {
    font-size: clamp(36px, 9vw, 54px);
  }

  .hero-badge {
    margin-left: 0;
    padding-inline: 18px;
  }

  .hero-note {
    font-size: 14px;
  }

  .hero-media {
    min-height: 210px;
  }

  .hero-slide {
    right: -34px;
    top: -18px;
    width: min(390px, 82vw);
  }

  .section-head,
  .catalog-group h3 {
    margin-left: 0;
  }

  .section-head {
    margin-bottom: 54px;
  }

  .catalog-groups {
    gap: 66px;
  }

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

  .catalog-card {
    min-height: 118px;
    padding-right: 102px;
  }

  .contacts-section {
    padding-bottom: 82px;
  }

  .contacts-logo {
    margin-bottom: 50px;
  }

  .map-wrap,
  .contacts-grid {
    width: 100%;
  }

  .map-wrap iframe {
    height: 360px;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .contact-phones,
  .contact-details {
    align-items: center;
  }

  .modal {
    padding: 18px 12px;
    overflow-y: auto;
  }

  .modal.is-open {
    display: block;
  }

  .modal-dialog {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
    overflow: visible;
  }

  .modal-close {
    position: sticky;
    top: 10px;
    left: auto;
    float: right;
    width: 58px;
    height: 58px;
    margin: -12px -8px -46px 0;
  }

  .modal-close span {
    font-size: 49px;
  }

  .modal-product {
    display: block;
  }

  .modal-product-image {
    height: 230px;
  }

  .modal-product-content {
    padding: 34px 28px 40px;
    overflow: visible;
    display: block;
  }

  .modal-product-content h3 {
    margin-bottom: 26px;
    font-size: 32px;
  }

  .product-list {
    max-height: none;
    overflow: visible;
    font-size: 16px;
    line-height: 1.48;
  }

  .modal-info {
    padding: 42px 28px 44px;
    border-left: 0;
    border-top: 1px solid var(--line);
    overflow: visible;
  }

  .modal-info h3 {
    margin-bottom: 28px;
    font-size: 32px;
  }

  .modal-info p {
    font-size: 15px;
  }

  .modal-callout {
    margin: 12px 0 38px;
    padding: 24px 26px;
    border-radius: 38px;
    font-size: 16px;
  }

  .modal-phones {
    margin-bottom: 38px;
    font-size: 30px;
  }

  .modal-address p {
    font-size: 15px;
  }

  .modal-logo {
    width: min(245px, 80vw);
  }
}

@media (max-width: 520px) {
  .logo,
  .logo-link {
    width: 170px;
  }

  .hero h1 {
   /* font-size: 28px; */
            font-size: 1.6em;
  }

  .hero-city {
   /* font-size: 28px; */
   font-size: 1.4em;
  }

  .hero-badge {
   /* font-size: 21px; */
      font-size: 0.9em;
    line-height: 1.05;
    white-space: normal;
  }

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

  .catalog-card {
    min-height: 112px;
    aspect-ratio: auto;
    padding-right: 132px;
  }

  .catalog-card-title {
    font-size: 14px;
  }

  .map-wrap iframe {
    height: 300px;
  }

  .contact-phones,
  .contact-details {
    font-size: 15px;
  }

  .modal {
    padding: 12px;
  }

  .modal-product-image {
    height: 200px;
  }

  .modal-product-content,
  .modal-info {
    padding-left: 22px;
    padding-right: 22px;
  }

  .modal-product-content h3,
  .modal-info h3 {
    font-size: 28px;
  }

  .modal-phones {
    font-size: 26px;
  }
}



