/* ===== Base ===== */

:root {
  --color-bg: #f4f3f1;
  --color-surface: #ffffff;
  --color-text: #17171a;
  --color-text-muted: #63636b;
  --color-dark: #17171a;
  --color-accent: #d91e2a;
  --color-accent-bright: #ff5a63;
  --color-accent-hover: #a81620;
  --color-border: #e3e1dd;

  --font-heading: "Oswald", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container-width: 1120px;
  --radius: 4px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 48px;
  font-size: 1rem;
}

/* ===== Header / Hero ===== */

.header {
  background: var(--color-dark);
  color: #fff;
  border-bottom: 3px solid var(--color-accent);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.brand__icon {
  display: block;
  flex-shrink: 0;
  height: 42px;
  width: auto;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand__tag {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.nav {
  display: flex;
  gap: 32px;
  flex-shrink: 0;
}

.nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.nav a:hover {
  color: #fff;
}

.header__end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex: 1;
}

.header__phone {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.header__phone:hover {
  color: var(--color-accent-bright);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding-top: 96px;
  padding-bottom: 112px;
}

.hero__content {
  max-width: 700px;
}

.hero__logo {
  flex-shrink: 0;
  width: 300px;
  height: auto;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(255, 255, 255, 0.72);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  list-style: none;
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

.hero__badge svg {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  color: var(--color-accent-bright);
}

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 2px solid var(--color-accent);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn--primary {
  box-shadow: 0 10px 26px rgba(217, 30, 42, 0.35);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

.btn--large {
  padding: 16px 36px;
  font-size: 1.02rem;
}

.btn--ghost-dark {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--ghost-dark:hover {
  background: var(--color-surface);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--small {
  padding: 12px 20px;
  font-size: 0.88rem;
}

/* ===== About ===== */

.about {
  padding: 96px 0;
}

.about__inner {
  max-width: 760px;
}

.about__text {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===== Pricing ===== */

.pricing {
  padding: 96px 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pricing__note {
  margin-top: 24px;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.price-card {
  position: relative;
  display: block;
  border: 2px solid var(--color-border);
  background: var(--color-bg);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.price-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(217, 30, 42, 0.18);
}

.price-card:active {
  transform: translateY(-2px);
}

.price-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-dark);
}

.price-card__image svg {
  width: 38%;
  height: 38%;
  color: var(--color-accent);
  transition: transform 0.35s ease;
}

.price-card:hover .price-card__image svg {
  transform: scale(1.1);
}

.price-card__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 1.02rem;
}

.price-card__label::after {
  content: "→";
  color: var(--color-accent);
  font-weight: 400;
  transition: transform 0.2s ease;
}

.price-card:hover .price-card__label::after {
  transform: translateX(4px);
}

/* ===== Request form ===== */

.request {
  padding: 96px 0;
  background: radial-gradient(ellipse 900px 500px at 10% 0%, rgba(217, 30, 42, 0.25), transparent 60%), var(--color-dark);
  color: #fff;
}

.request .section-title {
  color: #fff;
}

.request .section-subtitle {
  color: rgba(255, 255, 255, 0.65);
}

.request-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 90, 99, 0.14);
  border: 1px solid rgba(255, 90, 99, 0.4);
  color: var(--color-accent-bright);
  font-size: 0.88rem;
  font-weight: 600;
}

.request-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.request-form {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.request-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.request-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.request-form__field input,
.request-form__field textarea {
  font: inherit;
  color: var(--color-text);
  background: #fff;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 12px 14px;
  resize: vertical;
}

.request-form__field input:focus,
.request-form__field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(217, 30, 42, 0.25);
}

.request-form .btn {
  align-self: flex-start;
}

.request-form .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.request-form__status {
  font-size: 0.92rem;
  min-height: 1.4em;
}

.request-form__status.is-success {
  color: #4ade80;
}

.request-form__status.is-error {
  color: var(--color-accent-bright);
}

/* ===== Contacts ===== */

.contacts {
  padding: 96px 0;
}

.contacts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 8px;
}

.contacts__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contacts__label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.contacts__value {
  font-size: 1.1rem;
  font-weight: 500;
}

.contacts__value a {
  text-decoration: none;
}

.contacts__value a:hover {
  color: var(--color-accent);
}

.contacts__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.contacts__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contacts__map {
  margin-top: 40px;
}

.contacts__map iframe {
  display: block;
  width: 100%;
  height: 400px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.contacts__map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* ===== Footer ===== */

.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 48px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col a,
.footer__muted {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer__col a:hover {
  color: #fff;
}

.footer__col-title {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-accent-bright);
  font-weight: 700;
  font-size: 1.15rem;
  font-family: var(--font-heading);
}

.footer__logo img {
  display: block;
  height: 32px;
  width: auto;
}

.footer__logo span {
  color: #fff;
}

.footer__slogan {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom-inner {
  padding: 20px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ===== Modal ===== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

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

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 20, 0.55);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  background: var(--color-surface);
  max-width: 560px;
  width: calc(100% - 32px);
  margin: 8vh auto 0;
  border-radius: var(--radius);
  padding: 40px 32px 32px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal__close {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
}

.modal__close:hover {
  color: var(--color-text);
}

.modal__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-right: 36px;
}

.modal__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.modal__table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.98rem;
  overflow-wrap: break-word;
}

.modal__table td:last-child {
  width: 115px;
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
  padding-left: 16px;
}

.modal__table tr:last-child td {
  border-bottom: none;
}

/* ===== Scroll reveal ===== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */

@media (max-width: 860px) {
  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacts__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .request-form__row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__logo {
    order: -1;
    align-self: center;
    width: 140px;
    margin-bottom: 8px;
  }
}

@media (max-width: 640px) {
  .header__inner {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .header__phone {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    z-index: 50;
  }

  .nav.is-open {
    max-height: 320px;
  }

  .nav a {
    padding: 14px 24px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    text-align: center;
  }

  .about,
  .pricing,
  .request,
  .contacts {
    padding: 56px 0;
  }

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

  .contacts__map iframe {
    height: 300px;
  }

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

  .contacts__map-actions .btn {
    text-align: center;
  }

  .contacts__value a {
    display: inline-block;
    padding: 11px 0;
  }

  .contacts__social {
    padding: 9px 0;
  }

  .footer__col a {
    display: inline-block;
    padding: 11px 0;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    padding: 48px 0 32px;
    gap: 32px;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__slogan {
    max-width: none;
  }

  .modal__dialog {
    margin-top: 0;
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 16px;
  }

  .brand__tag {
    display: none;
  }
}
