/*
  Josh's Custom CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

#root,
#__next {
  isolation: isolate;
}

a {
  text-decoration: none;
  color: var(--primary);
}

a:hover {
  text-decoration: underline;
}

/* FONTS */
@font-face {
  font-family: "Myriad Pro";
  font-style: normal;
  font-weight: normal;
  src: local("Myriad Pro"), url("/fonts/MYRIADPRO-REGULAR.woff") format("woff");
}

/* CUSTOM */
:root {
  --primary: #507f99;
  --hover: rgb(111, 175, 214);
}

body {
  font-family: "Inter", sans-serif;
  background-color: #fff;
  color: #000;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* HEADER */
.site-header {
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: white; /* или var(--bg) */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 32px;
}

.logo span {
  color: var(--primary);
  font-family: "Myriad Pro", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  text-shadow: -1px 1px 0.8px rgba(0, 0, 0, 0.25);
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: end;
  text-align: right;
}

.phone {
  color: var(--primary);
  font-weight: 600;
  font-size: 16px;
}

.callback {
  font-size: 12px;
  color: var(--primary);
}

.menu-toggle {
  color: black;
  display: none;
  background: none;
  border: none;
  cursor: pointer;

  font-size: 24px;
  font-family: inherit;
  line-height: 1;

  padding: 8px;
  -webkit-appearance: none;
  appearance: none;
}

/* Navigation */
.nav {
  padding-top: 22px;
  padding-bottom: 22px;
}

.nav-list {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
}

.nav-list a {
  color: black;
  font-size: 16px;
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
}

.nav-list a:hover:not(.active) {
  color: white;
  background-color: var(--hover);
}

.nav-list a.active {
  background-color: var(--primary);
  color: white;
}

@media (max-width: 768px) {
  .logo {
    margin-left: 40px;
  }

  .menu-toggle {
    position: absolute;
    display: inline-block;
  }

  .phone {
    font-size: 13px;
  }

  .nav {
    display: none;
    flex-direction: column;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .nav.open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 12px;
  }

  .header-top {
    flex-wrap: wrap;
  }
}
/* HEADER END */

/* MAIN */

section[id] {
  scroll-margin-top: 152px; /* при переходе в навигации не перекрывать заголовок шапкой, так как она прилипаемая */
}

.brands {
  border-bottom: 1px solid #e0e0e0;
  background: #f9f9f9;
  padding: 12px 0;
}

.brands-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: start;
  font-size: 14px;
  color: #555;
}

.install-info {
  padding: 40px 0;
}

.install-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: start;
}

.install-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.install-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.install-text h1 {
  font-size: 22px;
  margin-bottom: 1rem;
}

.install-text p {
  margin-bottom: 12px;
}

.install-text ul {
  list-style-type: disc;
  padding-left: 20px;
}

.install-text li {
  margin-bottom: 8px;
  color: var(--primary);
}

h2:has(+ .hint) {
  margin-bottom: 0.25rem !important;
}

.hint {
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  font-style: italic;
  opacity: 0.8;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-buttons .button {
  padding: 0.75rem 1.5rem;
  border: none;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 8px;
  color: white;
  transition: background-color 0.3s ease;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 150px;
  justify-content: center;
}

.contact-buttons .button.call {
  background-color: var(--primary, #2f70d8);
}

.contact-buttons .button.message {
  background-color: #25d366; /* WhatsApp green */
}

.contact-buttons .button:hover {
  filter: brightness(0.9);
}

.contact-buttons .icon {
  width: 20px;
  height: 20px;
  display: inline-block;
}

.pricing {
  padding: 60px 0;
  font-size: 18px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .install-grid {
    grid-template-columns: 1fr;
  }

  .brands-list {
    justify-content: flex-start;
    gap: 12px;
    overflow-x: auto;
  }

  .pricing {
    font-size: 16px;
    padding: 40px 0;
  }
}

/* Цены */
.price-list {
  padding: 40px 0;
}

.price-list h2 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #333;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  font-size: 16px;
}

.price-table thead {
  background-color: #f0f4f8;
}

.price-table th,
.price-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
}

.price-table th {
  font-weight: 600;
  color: #222;
}

.price-table td {
  color: #444;
}

@media (max-width: 600px) {
  .price-table,
  .price-table thead,
  .price-table tbody,
  .price-table th,
  .price-table td,
  .price-table tr {
    display: block;
    width: 100%;
  }

  .price-table thead {
    display: none;
  }

  .price-table tr {
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
  }

  .price-table td {
    position: relative;
    padding: 12px 16px 12px 140px;
    border-bottom: 1px solid #eee;
  }

  .price-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 16px;
    top: 12px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
  }

  .price-table td:last-child {
    border-bottom: none;
  }
}

.contacts {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.contacts .container {
  max-width: 1200px;
  margin: 0 auto;
}

.contacts h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--primary);
}

.contact-list {
  list-style: none;
  padding: 0;
  font-size: 18px;
  line-height: 1.6;
}

.contact-list li {
  margin-bottom: 12px;
}

.contact-list-wrapper {
  display: flex;
  flex-wrap: wrap;
  column-gap: 4rem;
  row-gap: 1rem;
  justify-content: space-between;
}

.contact-list-wrapper iframe {
  flex: 1 1 400px;
  height: 300px;
}
