﻿/* RAUM - landing styles */

:root {
  --color-bg: #13171a;
  --color-panel: #1e1f22;
  --color-panel-deep: #161819;
  --color-border: #3d3d3d;
  --color-divider: #302d2d;
  --color-muted: #666666;
  --color-text: #ffffff;
  --color-text-soft: #d6d6d6;
  --color-accent: #d89a3c;
  --font: "Inter", system-ui, sans-serif;
  --radius: 5px;
  --container: 1369px;
  --header-h: 97px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.35;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

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

.container {
  width: min(100% - 70px, var(--container));
  margin-inline: auto;
}

.text-accent {
  color: var(--color-accent);
}

.link-accent {
  color: var(--color-accent);
  font-size: 11px;
}

.icon {
  flex-shrink: 0;
  object-fit: contain;
}

.icon--16 { width: 16px; height: 16px; }
.icon--22 { width: 22px; height: 22px; }
.icon--24 { width: 24px; height: 24px; }
.icon--34 { width: 34px; height: 34px; }
.icon--42 { width: 42px; height: 42px; }
.icon--52 { width: 52px; height: 52px; }
.icon--69 { width: 69px; height: 69px; }
.icon--doc { width: 52px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-align: center;
}

.btn--outline {
  border-color: var(--color-accent);
  background: transparent;
  color: var(--color-text);
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 500;
}

.btn--outline.btn--sm {
  color: var(--color-accent);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  padding: 14px 18px;
  border-radius: 3px;
  border-width: 1px;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-text);
  border: none;
  padding: 9px 16px;
  font-size: 15px;
  font-weight: 500;
}

.btn--block {
  width: 100%;
}

.btn--outline:hover {
  background: rgba(216, 154, 60, 0.12);
}

.btn--primary:hover {
  filter: brightness(1.08);
}

/* Header — overlays hero; transparent until scroll */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(19, 23, 26, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
  padding: 12px 32px;
  width: min(100%, 1433px);
  margin-inline: auto;
  box-sizing: border-box;
}

.header__panel {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1 1 auto;
  min-width: 0;
}

.header__meta {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-shrink: 0;
}

.logo {
  display: block;
  width: 114px;
  height: 73px;
  overflow: hidden;
  flex-shrink: 0;
}

.logo img,
.logo .custom-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.logo .custom-logo-link {
  display: block;
  width: 100%;
  height: 100%;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.site-nav .menu,
.footer__nav .menu {
  display: flex;
  align-items: center;
  gap: 37px;
  white-space: nowrap;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav .menu li,
.footer__nav .menu li {
  margin: 0;
  padding: 0;
}

.site-nav .menu a,
.footer__nav .menu a {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
  transition: color 0.2s;
}

.site-nav a:hover,
.footer__nav a:hover {
  color: var(--color-accent);
}

.header__address {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex-shrink: 0;
}

.header__address p {
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
}

.header__address .link-accent {
  display: inline-block;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 400;
}

.header__contacts,
.footer__contacts {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.phone {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 15px;
  line-height: 1.2;
}

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

.messengers a {
  display: flex;
  line-height: 0;
}

.header__cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  cursor: pointer;
  z-index: 2;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero — starts under fixed header */
.hero {
  position: relative;
  overflow: hidden;
  max-width: 1433px;
  margin-inline: auto;
  min-height: 562px;
}

.hero__inner {
  position: relative;
  display: block;
  min-height: 562px;
  width: 100%;
  max-width: 1433px;
  padding: 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  max-width: 570px;
  min-height: 562px;
  padding: calc(var(--header-h) + 8px) 0 40px 59px;
  box-sizing: border-box;
}

.hero__cta {
  display: none;
}

.hero__title {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
}

.hero__subtitle {
  font-size: 18px;
  line-height: 1.35;
  max-width: 490px;
}

.hero__features {
  display: flex;
  gap: 54px;
  align-items: flex-start;
  margin-top: 8px;
}

.hero__features li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  max-width: 91px;
}

.hero__features span {
  font-size: 15px;
  line-height: 1.2;
}

.hero__media {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(58%, 783px);
  pointer-events: none;
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 45%;
  border-radius: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 100%);
}

/* Sections */
.section {
  padding-block: 16px;
}

.section-panel {
  background: var(--color-panel);
  border-radius: var(--radius);
  padding: 16px 32px 28px;
}

.packages .section-panel {
  padding-bottom: 32px;
}

.portfolio .section-panel {
  padding-bottom: 24px;
}

.section-title {
  font-size: 24px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 24px;
}

/* Advantages */
.advantages {
  padding-top: 0;
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
}

.advantage-card {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 10px 24px 10px 10px;
  border-right: 1px solid var(--color-divider);
  min-width: 0;
}

.advantage-card:last-child {
  border-right: none;
}

.advantage-card h3 {
  font-size: 18px;
  font-weight: 500;
}

.advantage-card p {
  font-size: 15px;
  line-height: 1.35;
  max-width: 200px;
}

/* Process */
.process {
  max-width: 1433px;
  margin-inline: auto;
  box-sizing: border-box;
}

.process .section-title {
  margin-bottom: 28px;
}

.process__steps {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  max-width: 1249px;
  margin-inline: auto;
}

.process__steps::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 22px;
  right: 22px;
  height: 1px;
  background: var(--color-accent);
  pointer-events: none;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 11px;
  position: relative;
  z-index: 1;
  padding: 10px 16px 10px 0;
  flex: 1 1 0;
  min-width: 0;
  max-width: 260px;
  box-sizing: border-box;
}

.process-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.process-step h3 {
  font-size: 18px;
  font-weight: 500;
}

.process-step p {
  font-size: 15px;
  line-height: 1.35;
  max-width: 100%;
}

/* Packages */
.packages__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 33px;
  justify-items: stretch;
  max-width: 1182px;
  margin-inline: auto;
}

.package-card {
  width: 100%;
  max-width: 372px;
  margin-inline: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-panel-deep);
  display: flex;
  flex-direction: column;
  min-height: 378px;
  height: 100%;
}

.package-card__image {
  height: 135px;
  overflow: hidden;
  background: #4d4b4b;
  flex-shrink: 0;
}

.package-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.package-card__body {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 14px 12px 18px;
  flex: 1;
  min-height: 243px;
}

.package-card__body h3 {
  font-size: 18px;
  font-weight: 500;
}

.package-card__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.package-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 12px;
  line-height: 1.3;
}

.package-card__list img {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  flex-shrink: 0;
}

.package-card__from {
  text-align: center;
  font-size: 12px;
  margin-top: auto;
  margin-bottom: 4px;
}

.package-card__price {
  align-self: center;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 10px 16px;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

/* Portfolio */
.portfolio__heading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-bottom: 24px;
}

.portfolio__heading .section-title {
  margin-bottom: 0;
}

.portfolio__controls {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.portfolio__controls[hidden] {
  display: none;
}

.portfolio__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-accent);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.portfolio__arrow:hover:not(:disabled) {
  background: var(--color-accent);
  color: var(--color-bg);
}

.portfolio__arrow:disabled {
  cursor: default;
  opacity: 0.35;
}

.portfolio__carousel {
  overflow: hidden;
}

.portfolio__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.portfolio__track::-webkit-scrollbar {
  display: none;
}

.portfolio-card {
  position: relative;
  flex: 0 0 calc((100% - 80px) / 6);
  min-width: 0;
  height: 189px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #3d3d3d;
  scroll-snap-align: start;
}

.portfolio-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(102, 102, 102, 0.5) 0%,
    rgba(51, 51, 51, 0.5) 38.5%,
    rgba(26, 26, 26, 0.5) 49%,
    rgba(13, 13, 13, 0.5) 58.5%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.portfolio-card__info {
  position: absolute;
  left: 14px;
  right: 10px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}

.portfolio-card__info h3 {
  font-size: 15px;
  font-weight: 500;
}

.portfolio-card__info p {
  font-size: 12px;
  font-weight: 500;
}

.portfolio__empty {
  padding: 24px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-soft);
  text-align: center;
}

@media (max-width: 1200px) {
  .portfolio-card {
    flex-basis: calc((100% - 32px) / 3);
    height: 220px;
  }
}

@media (max-width: 767px) {
  .portfolio__heading {
    justify-content: space-between;
  }

  .portfolio__heading .section-title {
    text-align: left;
  }

  .portfolio__controls {
    position: static;
  }

  .portfolio-card {
    flex-basis: min(82vw, 280px);
    height: 240px;
  }
}

/* About + Order */
.order {
  max-width: 1436px;
  margin-inline: auto;
}

.order__grid {
  display: grid;
  grid-template-columns: minmax(0, 558px) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  width: min(100% - 70px, 1436px);
  margin-inline: auto;
}

.about-card,
.order-form-card {
  background: var(--color-panel);
  border-radius: var(--radius);
  padding: 18px;
}

.about-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 558px;
}

.about-card h2,
.order-form h2 {
  font-size: 24px;
  font-weight: 500;
}

.about-card p {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.about-card .btn {
  align-self: flex-start;
  width: 248px;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-form__lead {
  font-size: 15px;
  font-weight: 500;
}

.file-field {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--color-muted);
  border-radius: var(--radius);
  padding: 4px;
  cursor: pointer;
  background: transparent;
}

.file-field__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.file-field__title {
  font-size: 15px;
  font-weight: 500;
}

.file-field__hint {
  font-size: 11px;
  color: var(--color-text-soft);
}

.order-form-card,
.order-form,
.order__grid,
.section.order {
  overflow: visible;
}

/* Custom select — dark theme matching site */
.custom-select {
  position: relative;
  z-index: 1;
  width: 100%;
}

.custom-select.is-open {
  z-index: 80;
}

.custom-select.is-invalid .custom-select__trigger,
.field.is-invalid {
  border-color: #c45c5c;
}

.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--color-muted);
  border-radius: var(--radius);
  background: var(--color-panel-deep);
  color: var(--color-text);
  font-size: 15px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.custom-select__label.is-placeholder {
  color: var(--color-text-soft);
}

.custom-select__trigger:hover {
  border-color: #555;
}

.custom-select.is-open .custom-select__trigger {
  border-color: var(--color-accent);
  border-bottom-color: transparent;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.custom-select__arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
  filter: none;
}

.custom-select.is-open .custom-select__arrow {
  transform: rotate(180deg);
}

.custom-select__list {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 1px);
  z-index: 90;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: var(--color-panel-deep);
  border: 1px solid var(--color-accent);
  border-top: 1px solid var(--color-border);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  max-height: 240px;
  overflow-y: auto;
}

.custom-select.is-open .custom-select__list,
.custom-select__list:not([hidden]) {
  display: block;
}

.custom-select__list[hidden] {
  display: none !important;
}

.custom-select__option {
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text);
  cursor: pointer;
  background: transparent;
  transition: background 0.15s, color 0.15s;
}

.custom-select__option.is-placeholder {
  color: var(--color-text-soft);
}

.custom-select__option:hover,
.custom-select__option.is-active:not(.is-placeholder) {
  background: rgba(216, 154, 60, 0.18);
  color: var(--color-accent);
}

.custom-select__option.is-placeholder:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-soft);
}

.field {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--color-muted);
  border-radius: var(--radius);
  padding: 4px 12px;
  background: var(--color-panel-deep);
  transition: border-color 0.2s;
}

.field:focus-within {
  border-color: var(--color-accent);
}

.field select,
.field input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  padding: 4px 0;
  color: var(--color-text);
  font-size: 15px;
}

.field input::placeholder {
  color: var(--color-text-soft);
  opacity: 1;
}

.field--phone {
  gap: 10px;
}

.field__prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-text);
  font-size: 15px;
  white-space: nowrap;
}

.field__prefix .flag {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}

.field__code {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.order-form__error {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: #e08a8a;
}

.order-form__error[hidden] {
  display: none;
}

.file-field {
  background: var(--color-panel-deep);
  transition: border-color 0.2s;
}

.file-field:hover {
  border-color: #555;
}

.order-form__privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-size: 13px;
  font-weight: 500;
}

/* Success popup */
.popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.popup[hidden] {
  display: none;
}

.popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 23, 26, 0.92);
}

.popup__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 993px);
  min-height: min(617px, 90vh);
  background: var(--color-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.popup__close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.popup__close img {
  width: 24px;
  height: 24px;
}

.popup__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 31px;
  width: min(100%, 522px);
  text-align: center;
}

.popup__content h2 {
  font-size: 36px;
  font-weight: 500;
}

.popup__content p {
  font-size: 20px;
  font-weight: 500;
}

.popup__content .btn {
  width: 248px;
}

/* Lightbox */
.popup--lightbox {
  padding: 2.5dvh 16px;
  align-items: center;
}

.popup__dialog--media {
  width: auto;
  max-width: min(100%, 1370px);
  min-height: 0;
  max-height: 95dvh;
  background: transparent;
  padding: 44px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.popup--lightbox .popup__close {
  top: 4px;
  right: 0;
}

.lightbox {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  min-height: 0;
  flex: 1 1 auto;
  height: 90vh;
  width: 90vw;
  max-width: 1370px;
}

.lightbox__media {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  width: 100%;
}

.lightbox__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  flex: 1 1 auto;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  background: rgba(19, 23, 26, 0.72);
  color: var(--color-accent);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lightbox__nav:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

.lightbox__nav[hidden] {
  display: none;
}

.lightbox__nav--prev {
  left: 12px;
}

.lightbox__nav--next {
  right: 12px;
}


.lightbox__image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--color-panel-deep);
}

.lightbox__info {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.lightbox__title {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text);
}

.lightbox__meta {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-soft);
}

.lightbox__meta[hidden] {
  display: none;
}

@media (max-width: 767px) {
  .lightbox__nav {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }

  .lightbox__nav--prev {
    left: 6px;
  }

  .lightbox__nav--next {
    right: 6px;
  }
}

.portfolio-card__zoom {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}

.portfolio-card__zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-card__zoom img {
  transform: scale(1.04);
}

.portfolio-card__zoom:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

body.popup-open {
  overflow: hidden;
}

/* Footer */
.site-footer {
  margin-top: 24px;
  background: rgba(30, 31, 34, 0.85);
  backdrop-filter: blur(2px);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 97px;
  max-width: 1437px;
}

.footer__logo {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}

.footer__nav .menu {
  display: flex;
  gap: 37px;
  white-space: nowrap;
}

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

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

@media (max-width: 1360px) {
  .header__inner {
    gap: 20px;
    padding: 12px 24px;
  }

  .header__panel,
  .header__meta {
    gap: 20px;
  }

  .site-nav .menu {
    gap: 22px;
  }
}

/* Tablet: stacked contact column + full-bleed hero */
@media (max-width: 1200px) and (min-width: 768px) {
  .header__inner {
    align-items: flex-start;
    gap: 16px;
    min-height: 0;
    padding: 16px 28px 12px;
  }

  .logo {
    width: 96px;
    height: 62px;
    margin-top: 4px;
  }

  .header__panel {
    align-items: flex-start;
    gap: 20px;
  }

  .site-nav {
    flex: 1 1 auto;
    padding-top: 18px;
  }

  .site-nav .menu {
    gap: 18px;
    flex-wrap: wrap;
  }

  .site-nav .menu a {
    font-size: 14px;
  }

  .header__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
  }

  .header__contacts {
    order: 1;
    gap: 10px;
  }

  .header__cta {
    order: 2;
    width: auto;
    min-width: 168px;
    padding: 12px 16px;
  }

  .header__address {
    order: 3;
    display: flex;
  }

  .header__contacts .phone span {
    display: inline;
  }

  .messengers .icon--34,
  .messengers img {
    width: 30px;
    height: 30px;
  }

  .hero {
    max-width: none;
    min-height: 720px;
  }

  .hero__inner {
    max-width: none;
    min-height: 720px;
  }

  .hero__media {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
  }

  .hero__media img {
    object-position: 70% center;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg,
      rgba(19, 23, 26, 0.88) 0%,
      rgba(19, 23, 26, 0.55) 42%,
      rgba(19, 23, 26, 0.2) 70%,
      transparent 100%
    );
    pointer-events: none;
  }

  .hero__content {
    max-width: 640px;
    min-height: 720px;
    justify-content: flex-start;
    gap: 24px;
    padding: 140px 28px 48px;
  }

  .hero__title {
    font-size: 36px;
  }

  .hero__subtitle {
    font-size: 16px;
    max-width: 460px;
  }

  .hero__features {
    gap: 36px;
    margin-top: auto;
  }

  .packages__grid {
    gap: 20px;
  }

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

  .advantage-card {
    padding-right: 20px;
  }

  /* Footer — logo | nav | contacts column */
  .site-footer {
    background: #141518;
  }

  .footer__inner {
    align-items: center;
    gap: 20px;
    min-height: 110px;
    padding-block: 20px;
    flex-wrap: nowrap;
  }

  .footer__logo {
    font-size: 28px;
    flex-shrink: 0;
  }

  .footer__nav {
    flex: 1 1 auto;
    min-width: 0;
  }

  .footer__nav .menu {
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
  }

  .footer__nav .menu a {
    font-size: 14px;
  }

  .footer__contacts {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
  }

  .footer__contacts .phone {
    font-size: 15px;
  }

  .footer__contacts .messengers {
    gap: 8px;
  }
}

@media (max-width: 992px) and (min-width: 768px) {
  .site-nav .menu {
    gap: 12px;
  }

  .site-nav .menu a {
    font-size: 13px;
  }

  .hero__content {
    padding: 150px 24px 40px;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__features {
    gap: 24px;
  }

  .hero__features .icon--52 {
    width: 44px;
    height: 44px;
  }

  .advantages__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .advantage-card {
    border-right: none;
    border-bottom: 1px solid var(--color-divider);
    padding: 16px 10px;
    max-width: none;
  }

  .process__steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    justify-content: initial;
  }

  .process-step {
    max-width: none;
    padding: 10px;
  }

  .process__steps::before {
    display: none;
  }

  .packages__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }

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

  .footer__nav .menu {
    gap: 12px;
  }

  .footer__nav .menu a {
    font-size: 13px;
  }

  .footer__logo {
    font-size: 24px;
  }
}

@media (max-width: 767px) {
  body.menu-open {
    overflow: hidden;
  }

  .nav-toggle {
    display: flex;
    order: 3;
    width: 36px;
    height: 36px;
    margin-left: 0;
    padding: 6px;
    border: none;
    border-radius: 0;
    gap: 6px;
    z-index: 120;
  }

  .nav-toggle span {
    height: 2px;
    width: 100%;
  }

  .nav-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 10px;
    min-height: 0;
    padding: 10px 12px 12px;
  }

  .logo {
    order: 1;
    width: 64px;
    height: 42px;
    flex-shrink: 0;
  }

  /* Closed: address/contacts in top bar */
  .header__panel {
    display: contents;
  }

  .header__meta {
    order: 2;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .header__address {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .header__address .icon--22 {
    width: 18px;
    height: 18px;
  }

  .header__address p {
    font-size: 12px;
    white-space: normal;
    line-height: 1.2;
  }

  .header__address .link-accent {
    font-size: 10px;
  }

  .header__contacts {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    flex-shrink: 0;
  }

  .header__contacts .phone {
    gap: 0;
    font-size: 12px;
  }

  .header__contacts .phone .icon--24 {
    width: 22px;
    height: 22px;
  }

  .header__contacts .phone span {
    display: none;
  }

  .messengers {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }

  .messengers .icon--34,
  .messengers img {
    width: 26px;
    height: 26px;
  }

  @media (max-width: 360px) {
    .header__contacts {
      flex-direction: column;
      align-items: flex-start;
      gap: 6px;
    }
  }

  .header__cta {
    display: none;
  }

  .site-nav {
    display: none;
    order: 4;
    width: 100%;
    flex: 1 0 100%;
    padding: 16px 4px 8px;
    background: transparent;
    border-top: none;
  }

  .header__panel.is-open .site-nav {
    display: block;
  }

  .site-nav .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    white-space: normal;
  }

  .site-nav .menu a {
    font-size: 16px;
  }

  /* ===== Open burger menu (fullscreen) ===== */
  .site-header.is-menu-open {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #0f1214;
    overflow: auto;
  }

  .site-header.is-menu-open.is-scrolled {
    background: #0f1214;
    backdrop-filter: none;
    box-shadow: none;
  }

  .site-header.is-menu-open .header__inner {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    min-height: 100%;
    min-height: 100svh;
    padding: 16px 24px 40px;
    gap: 0;
    width: 100%;
    max-width: none;
  }

  .site-header.is-menu-open .logo {
    display: none;
  }

  .site-header.is-menu-open .nav-toggle {
    order: 1;
    align-self: flex-end;
    margin-bottom: 8px;
  }

  .site-header.is-menu-open .header__panel {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    order: 2;
    width: 100%;
    min-height: 0;
    gap: 0;
  }

  .site-header.is-menu-open .site-nav {
    display: block;
    order: 1;
    flex: 1 1 auto;
    width: 100%;
    padding: 24px 0 48px;
    border: none;
    background: transparent;
  }

  .site-header.is-menu-open .site-nav .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .site-header.is-menu-open .site-nav .menu a {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
  }

  .site-header.is-menu-open .header__meta {
    order: 2;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    flex: 0 0 auto;
    margin-top: auto;
    padding-top: 24px;
  }

  .site-header.is-menu-open .header__contacts {
    order: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-header.is-menu-open .header__contacts .phone {
    gap: 8px;
    font-size: 15px;
  }

  .site-header.is-menu-open .header__contacts .phone .icon--24 {
    width: 24px;
    height: 24px;
  }

  .site-header.is-menu-open .header__contacts .phone span {
    display: inline;
  }

  .site-header.is-menu-open .messengers {
    gap: 10px;
    padding-left: 2px;
  }

  .site-header.is-menu-open .messengers .icon--34,
  .site-header.is-menu-open .messengers img {
    width: 34px;
    height: 34px;
  }

  .site-header.is-menu-open .header__address {
    order: 2;
    flex: 0 1 auto;
    gap: 8px;
    max-width: 48%;
  }

  .site-header.is-menu-open .header__address .icon--22 {
    width: 22px;
    height: 22px;
  }

  .site-header.is-menu-open .header__address p {
    font-size: 15px;
  }

  .site-header.is-menu-open .header__address .link-accent {
    font-size: 12px;
    margin-top: 4px;
  }

  .site-header.is-menu-open .header__cta {
    display: none;
  }

  /* Hero — full-bleed background like design */
  .hero {
    max-width: none;
    min-height: 65svh;
    min-height: 65vh;
  }

  .hero__inner {
    display: block;
    max-width: none;
    min-height: 65svh;
    min-height: 65vh;
  }

  .hero__media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    order: initial;
  }

  .hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% center;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(19, 23, 26, 0.55) 0%,
      rgba(19, 23, 26, 0.35) 35%,
      rgba(19, 23, 26, 0.75) 100%
    );
    pointer-events: none;
  }

  .hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 18px;
    min-height: 65svh;
    min-height: 65vh;
    max-width: none;
    padding: 88px 16px 28px;
    box-sizing: border-box;
  }

  .hero__cta {
    display: inline-flex;
    align-self: center;
    margin-bottom: 8px;
    padding: 12px 20px;
    font-size: 12px;
  }

  .hero__title {
    font-size: 28px;
    line-height: 1.2;
  }

  .hero__subtitle {
    font-size: 14px;
    max-width: none;
  }

  .hero__features {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
  }

  .hero__features li {
    flex: 1 1 0;
    max-width: none;
    gap: 6px;
  }

  .hero__features .icon--52 {
    width: 36px;
    height: 36px;
  }

  .hero__features span {
    font-size: 11px;
    line-height: 1.15;
  }

  .advantages__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .advantage-card {
    border-right: none;
    border-bottom: 1px solid var(--color-divider);
    padding: 16px 10px;
    max-width: none;
  }

  .advantage-card p {
    max-width: none;
  }

  .process__steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    justify-content: initial;
  }

  .process-step {
    max-width: none;
    padding: 10px;
  }

  .process-step h3 {
    font-size: 16px;
  }

  .process-step p {
    font-size: 14px;
  }

  .process__steps::before {
    display: none;
  }

  .packages__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }

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

  .about-card {
    max-width: none;
  }

  .footer__inner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding-block: 24px;
    gap: 20px;
  }

  .footer__nav {
    flex: 1 1 100%;
    order: 3;
  }

  .footer__nav .menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
  }

  .footer__contacts {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

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

  .hero__title {
    font-size: 28px;
  }

  .hero__subtitle {
    font-size: 15px;
  }

  .hero__features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
  }

  .advantages__grid,
  .process__steps,
  .portfolio__grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 20px;
  }

  .about-card .btn {
    width: 100%;
  }

  .file-field__title {
    font-size: 13px;
  }

  .footer__nav .menu {
    gap: 12px 16px;
    font-size: 13px;
  }

  .popup__dialog {
    min-height: auto;
    padding: 64px 20px 40px;
  }

  .popup__content h2 {
    font-size: 28px;
  }

  .popup__content p {
    font-size: 16px;
  }

  .popup__content .btn {
    width: 100%;
  }
}
