:root {
  --red: #e2231a;
  --red-hover: #eb5757;
  --slate: #333e48;
  --muted: rgba(51, 62, 72, 0.7);
  --line: #e6e8ea;
  --bg: #ffffff;
  --soft: #f7f8f9;
  --footer: #333e48;
  --radius: 12px;
  --font: "Roboto", "Segoe UI", sans-serif;
  --title: "Lato", "Roboto", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--slate);
  background: var(--bg);
  line-height: 1.45;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--red);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

.wrapper {
  overflow-x: hidden;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font: 700 14px/16px var(--font);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.button--rectangle {
  padding: 16px 32px;
  box-shadow: 0 0 40px rgba(226, 35, 26, 0.25);
}

.button--rectangle:hover {
  background: var(--red-hover);
  color: #fff;
}

.button--rectangle-light {
  border: 2px solid var(--slate);
  padding: 14px 30px;
  background: #fff;
  color: var(--slate);
  box-shadow: none;
}

.button--wide {
  min-width: 220px;
}

.section__title {
  font-family: var(--title);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 40px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header__container {
  width: min(1280px, calc(100% - 24px));
  margin-inline: auto;
}

.header__inner {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 96px;
}

.menu__icon {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.menu__icon span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--slate);
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.logo__img,
.logo-image {
  width: 160px;
  height: auto;
}

.logo__moto {
  max-width: 220px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.menu__body {
  justify-self: center;
}

.menu__list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.menu__link {
  color: var(--slate);
  font-size: 14px;
  font-weight: 700;
}

.menu__link:hover,
.menu__link._active {
  color: var(--red);
}

.header__aside {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__contacts {
  display: grid;
  gap: 2px;
}

.header__phone {
  font-size: 14px;
  font-weight: 700;
  color: var(--slate);
  white-space: nowrap;
}

.header__email {
  font-size: 12px;
  color: var(--muted);
}

/* Franchise */
.open-your-business {
  padding: 48px 0 24px;
  background:
    radial-gradient(circle at 20% 0%, rgba(226, 35, 26, 0.08), transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(51, 62, 72, 0.06), transparent 35%),
    #fff;
}

.open-your-business__card {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 40px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
  background: #fff;
  box-shadow: 0 12px 40px rgba(51, 62, 72, 0.06);
}

.open-your-business__title {
  margin-bottom: 28px;
}

.open-your-business__content {
  margin-top: 24px;
}

.open-your-business__text {
  font-size: 16px;
  font-weight: 700;
}

.open-your-business__text a {
  color: var(--red);
}

/* Functioning */
.functioning {
  padding: 24px 0 48px;
}

.functioning__scheme {
  width: 100%;
  margin: 0 auto 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.functioning__text {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* Map */
.about-company {
  padding: 24px 0 56px;
  background: var(--soft);
}

.about-company__inner {
  margin-bottom: 20px;
}

.about-company__image {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.about-company__hint {
  margin-bottom: 20px;
  font-size: 19px;
  font-weight: 700;
  text-align: center;
}

.about-company__hint a {
  color: var(--red);
  border-bottom: 1px solid var(--red);
}

.about-company .button {
  display: flex;
  width: fit-content;
  margin: 0 auto;
}

/* About / stats */
.about {
  padding: 56px 0;
}

.about__title {
  margin-bottom: 40px;
  font-family: var(--title);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.about__inner {
  display: grid;
  gap: 32px;
}

.about__today-title {
  margin-bottom: 16px;
  font-family: var(--title);
  font-size: 24px;
  font-weight: 800;
}

.about__today-text {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.about__numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.about__number {
  padding: 20px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.about__number-value {
  color: var(--red);
  font-family: var(--title);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.1;
}

.about__number-text {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.about__advantages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.advantage {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.advantage__label {
  margin-bottom: 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.advantage h3 {
  margin-bottom: 14px;
  font-family: var(--title);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.advantage ul {
  display: grid;
  gap: 8px;
}

.advantage li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 14px;
}

.advantage li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

/* News */
.news-preview {
  padding: 24px 0 56px;
  background: var(--soft);
}

.news-preview__list {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.news-preview__list li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.news-preview__list time {
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
}

.news-preview__list a {
  font-size: 15px;
  font-weight: 500;
}

.news-preview .button {
  display: flex;
  width: fit-content;
  margin: 0 auto;
}

/* Contact */
.contact-us {
  padding: 56px 0;
}

.contact-us__inner {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 32px;
  align-items: stretch;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(51, 62, 72, 0.05);
}

.contact-us__mask-img {
  width: 100%;
  max-width: 320px;
  margin: auto;
}

.contact-us__title {
  margin-bottom: 24px;
  font-family: var(--title);
  font-size: 32px;
  font-weight: 800;
}

.contact-us__titles-list {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.tabs-control {
  padding: 0 2px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font: 700 16px/1.2 var(--title);
  cursor: pointer;
}

.tabs-control._active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.contact-us__form {
  display: grid;
  gap: 16px;
}

.contact-us__form[hidden],
.open-your-business__content[hidden],
[hidden] {
  display: none !important;
}

.contact-us__form-name-phone-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-us__form-label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.required-star {
  color: var(--red);
}

.contact-us__form-input,
.contact-us__form-textarea,
.contact-us__form-file-input-label input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d7dce0;
  border-radius: 10px;
  background: var(--soft);
  font: 400 15px/1.4 var(--font);
  color: var(--slate);
  outline: none;
}

.contact-us__form-input:focus,
.contact-us__form-textarea:focus {
  border-color: var(--red);
  background: #fff;
}

.contact-us__form-file-input-label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.contact-us__file-hint,
.contact-us__form-law-hint {
  color: var(--muted);
  font-size: 13px;
}

.contact-us__form-law-hint a {
  color: var(--red);
  border-bottom: 1px solid rgba(226, 35, 26, 0.4);
}

/* Footer */
.footer {
  background: var(--footer);
  color: #fff;
  padding: 56px 0 28px;
}

.footer a {
  color: #fff;
}

.footer a:hover {
  color: #ffb4b0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.1fr;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__logo {
  margin-bottom: 20px;
}

.footer__advantage-text {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}

.footer__subtitle {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.footer__address,
.footer__phones {
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.footer__email {
  display: inline-block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.footer__call-btn-container {
  margin-top: 18px;
}

.footer__menu-list {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.footer__menu-list a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.footer__mailing p {
  margin-bottom: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.footer__subscribe {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.footer__mailing-input {
  flex: 1;
  min-width: 0;
  padding: 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: 400 14px/1 var(--font);
}

.footer__mailing-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

/* Responsive */
@media (max-width: 1100px) {
  .header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .menu__body {
    display: none;
    position: absolute;
    top: 96px;
    left: 0;
    right: 0;
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .menu__body--open {
    display: block;
  }

  .menu__list {
    flex-direction: column;
    gap: 12px;
  }

  .about__numbers,
  .about__advantages,
  .footer__inner,
  .contact-us__inner {
    grid-template-columns: 1fr;
  }

  .contact-us__mask-img {
    max-width: 220px;
  }
}

/* Tech works modal */
body.modal-open {
  overflow: hidden;
}

.tech-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.tech-modal[hidden] {
  display: none !important;
}

.tech-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(51, 62, 72, 0.55);
}

.tech-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 36px 28px 28px;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.tech-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.tech-modal__title {
  margin: 0 0 24px;
  font-family: var(--title);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--slate);
}

@media (max-width: 760px) {
  .header__aside .header__contacts {
    display: none;
  }

  .header__inner {
    grid-template-columns: auto 1fr auto;
    min-height: 78px;
  }

  .logo__moto {
    display: none;
  }

  .open-your-business__card {
    padding: 28px 18px;
  }

  .about__numbers {
    grid-template-columns: 1fr 1fr;
  }

  .contact-us__form-name-phone-inputs,
  .news-preview__list li {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
  }
}
