@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap");

:root {
  --blue: #2f63b8;
  --blue-deep: #204a92;
  --ink: #202020;
  --paper: #f7f5ef;
  --paper-2: #ece8de;
  --line: #d7d0c4;
  --muted: #6b6761;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(20, 20, 20, 0.12);
  --font-ui: "Archivo", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

body.is-gallery-open {
  position: fixed;
  inset: 0;
  width: 100%;
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 12px 14px;
  color: var(--white);
  background: var(--blue);
  border-radius: 999px;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(32, 32, 32, 0.1);
  background: rgba(247, 245, 239, 0.88);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  width: min(1280px, calc(100% - 36px));
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 0 auto;
}

.brand-link {
  flex: 0 0 auto;
}

.brand-link img {
  width: 172px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

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

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.social-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease;
}

.social-icon {
  width: 21px;
  height: 21px;
  display: block;
  fill: currentColor;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.social-button-facebook .social-icon {
  fill: currentColor;
  stroke: none;
}

.social-button-instagram .social-icon {
  fill: none;
}

.social-button:hover {
  transform: translateY(-2px);
  color: var(--blue);
  border-color: var(--blue);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.1;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.button-primary:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.button-call {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.button-call:hover {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.button-ghost {
  color: var(--ink);
  background: transparent;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: 24px 0 64px;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 30px;
  padding: 40px 0;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-kicker::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--blue);
}

.hero-title {
  margin: 0;
  max-width: 650px;
  font-size: 76px;
  line-height: 0.95;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
  justify-self: start;
  width: min(100%, 390px);
  aspect-ratio: 9 / 16;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.hero-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
  object-fit: cover;
}

.section {
  padding: 104px 0;
  scroll-margin-top: 82px;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 42px;
}

.section-heading-centered {
  max-width: 720px;
  grid-template-columns: 1fr;
  justify-items: center;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: 46px;
  line-height: 1.02;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.gallery-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
}

.folder-nav {
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
}

.gallery-search {
  display: grid;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(32, 32, 32, 0.1);
}

.gallery-search label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.gallery-search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.gallery-search-field svg {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  pointer-events: none;
}

.gallery-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px 0 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.gallery-search input::placeholder {
  color: rgba(107, 103, 97, 0.68);
  font-weight: 700;
}

.gallery-search input:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(47, 99, 184, 0.16);
}

.folder-filter {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  text-align: left;
}

.folder-filter.is-active,
.folder-filter:hover {
  color: var(--white);
  background: var(--blue);
}

.gallery-content {
  min-width: 0;
  scroll-margin-top: 104px;
}

.gallery-toolbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.gallery-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.gallery-back {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font-weight: 800;
}

.gallery-back:hover {
  border-color: rgba(47, 99, 184, 0.32);
  color: var(--blue);
}

.gallery-back[hidden],
.gallery-view[hidden] {
  display: none;
}

.gallery-stage {
  min-width: 0;
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-pagination {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.gallery-pagination[hidden] {
  display: none;
}

.gallery-pagination button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font-size: 14px;
  font-weight: 800;
}

.gallery-pagination button:hover:not(:disabled) {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.gallery-pagination button:disabled {
  cursor: default;
  opacity: 0.46;
}

.gallery-pagination span {
  min-width: 64px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.folder-card {
  min-height: 340px;
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--ink);
  text-align: left;
  cursor: pointer;
}

.folder-card[hidden] {
  display: none;
}

.folder-card img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 260ms ease, opacity 260ms ease;
}

.folder-card:hover img {
  transform: scale(1.04);
  opacity: 0.76;
}

.folder-card-album::after {
  content: "Fotky";
}

.folder-card::after {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(17, 17, 17, 0.56);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.folder-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  font-weight: 700;
  text-align: center;
}

.gallery-search-empty {
  grid-column: 1 / -1;
}

.reviews-section {
  background: var(--white);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.review-card {
  min-height: 300px;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(32, 32, 32, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 42px rgba(32, 32, 32, 0.09);
}

.review-top {
  display: grid;
  grid-template-columns: 54px 1fr 34px;
  gap: 14px;
  align-items: center;
}

.review-avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  font-size: 24px;
  font-weight: 800;
}

.review-top h3,
.review-top p,
.review-text {
  margin: 0;
}

.review-top h3 {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.review-top p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.review-source {
  justify-self: end;
  color: var(--blue);
  font-size: 24px;
  font-weight: 900;
}

.review-stars {
  color: #f4bf3a;
  font-size: 24px;
  letter-spacing: 1px;
}

.review-text {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.55;
}

.review-link {
  align-self: end;
  color: var(--muted);
  font-weight: 800;
}

.folder-label {
  position: absolute;
  inset: auto 14px 14px 14px;
  min-height: 108px;
  display: grid;
  align-content: end;
  padding: 16px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.18), rgba(17, 17, 17, 0.84));
}

.folder-label small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.folder-label strong {
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.12;
}

.folder-label span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.36;
}

.quote-section {
  background:
    linear-gradient(90deg, rgba(32, 32, 32, 0.04) 0 1px, transparent 1px 100%),
    var(--paper-2);
  background-size: 42px 42px;
}

.quote-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
}

.quote-copy {
  padding: 44px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--ink);
}

.quote-copy img {
  width: 210px;
  margin-bottom: 70px;
}

.quote-copy h2 {
  margin: 0;
  font-size: 44px;
  line-height: 1.02;
}

.quote-copy p {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.55;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.hidden-field {
  display: none;
}

.field {
  display: grid;
  gap: 8px;
}

.field[hidden] {
  display: none;
}

.field.full {
  grid-column: 1 / -1;
}

.field > label,
.field-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.field input:not(.file-upload-input),
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fbfaf6;
}

.field textarea {
  min-height: 126px;
  resize: vertical;
}

.field small {
  color: var(--muted);
  font-size: 13px;
}

.field input:not(.file-upload-input):focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(47, 99, 184, 0.2);
  border-color: var(--blue);
}

.file-upload {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 14px;
  border: 1px dashed rgba(47, 99, 184, 0.44);
  border-radius: 8px;
  color: var(--ink);
  background: linear-gradient(135deg, #fbfaf6 0%, #f4f7fb 100%);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.file-upload:hover,
.file-upload:focus-within {
  border-color: var(--blue);
  box-shadow: 0 16px 34px rgba(47, 99, 184, 0.14);
  transform: translateY(-1px);
}

.file-upload-list {
  display: grid;
  gap: 10px;
}

.file-upload-item {
  display: grid;
  gap: 6px;
}

.file-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  background: transparent;
  border: 0;
}

.file-upload-icon {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(47, 99, 184, 0.11);
}

.file-upload-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.file-upload-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.file-upload-text strong {
  font-size: 16px;
  line-height: 1.2;
}

.file-upload-text span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.file-upload-action {
  margin-left: auto;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.file-upload-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.checkbox-field {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}

.form-actions {
  grid-column: 1 / -1;
}

.footer {
  padding: 54px 0;
  color: var(--white);
  background: var(--ink);
  scroll-margin-top: 82px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(32px, 7vw, 104px);
}

.footer img {
  width: 220px;
}

.footer-details {
  width: min(100%, 760px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  justify-self: end;
}

.footer-block {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-block h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.footer-kicker {
  margin: 0;
  color: #9fb8e8;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-data {
  display: grid;
  gap: 5px;
}

.footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.footer a {
  color: var(--white);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.footer-socials a {
  color: var(--white);
  font-weight: 800;
}

.footer-socials a:hover {
  color: #9fb8e8;
}

.gallery-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  overflow: hidden;
  padding: clamp(18px, 3vw, 34px);
  margin: 0;
  border: 0;
  border-radius: 0;
  color: var(--white);
  background: rgba(9, 9, 9, 0.9);
  box-shadow: none;
}

.gallery-dialog[open] {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
}

.gallery-dialog::backdrop {
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(2px);
}

.dialog-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 3vw, 34px);
  border-bottom: 0;
  pointer-events: none;
}

.dialog-head > div {
  max-width: min(520px, calc(100vw - 120px));
  padding: 11px 13px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(14, 14, 14, 0.66), rgba(14, 14, 14, 0.34));
  backdrop-filter: blur(10px);
}

.dialog-head h2,
.dialog-head p {
  margin: 0;
}

.dialog-kicker {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.dialog-head h2 {
  margin-top: 4px;
  color: var(--white);
  font-size: 18px;
}

.dialog-head p:last-child {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.4;
}

.dialog-close {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  font-size: 32px;
  line-height: 1;
  pointer-events: auto;
  backdrop-filter: blur(10px);
}

.dialog-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.dialog-grid {
  width: min(1320px, 100%);
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0;
}

.dialog-viewer {
  display: grid;
  grid-template-columns: 88px auto;
  gap: clamp(14px, 2vw, 26px);
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  height: 100%;
  margin-inline: auto;
}

.dialog-sidebar {
  min-height: 0;
  max-height: min(76vh, 760px);
  display: flex;
  justify-content: center;
}

.dialog-stage {
  --frame-height: calc(100dvh - clamp(90px, 12dvh, 132px));
  --image-ratio: 1.333;
  position: relative;
  width: min(calc(100vw - 180px), calc(var(--frame-height) * var(--image-ratio)));
  max-width: 100%;
  height: var(--frame-height);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  place-items: stretch;
  justify-self: center;
  margin: 0;
}

.dialog-image-frame {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
}

.dialog-main-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: contain;
  object-position: center center;
  border-radius: 3px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
}

.dialog-caption {
  width: 100%;
  max-width: none;
  min-height: 0;
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(12, 12, 12, 0.54);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.34;
  backdrop-filter: blur(8px);
}

.dialog-caption[hidden] {
  display: none;
}

.dialog-caption strong {
  color: var(--white);
  font-size: 13px;
  line-height: 1.25;
}

.dialog-caption span {
  color: rgba(255, 255, 255, 0.78);
}

.dialog-caption span[hidden] {
  display: none;
}

.dialog-caption-meta {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
}

.dialog-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: var(--white);
  background: rgba(17, 17, 17, 0.58);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.dialog-arrow:hover {
  background: rgba(47, 99, 184, 0.92);
}

.dialog-arrow-prev {
  left: -24px;
}

.dialog-arrow-next {
  right: -24px;
}

.dialog-counter {
  position: absolute;
  right: 14px;
  bottom: 14px;
  min-width: 54px;
  padding: 7px 10px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(12, 12, 12, 0.54);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  backdrop-filter: blur(8px);
}

.dialog-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px;
  scrollbar-width: thin;
}

.dialog-thumb {
  width: 76px;
  height: 96px;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0.58;
}

.dialog-thumb.is-active {
  border-color: var(--white);
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(47, 99, 184, 0.48);
}

.dialog-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.dialog-empty {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.folder-location {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.realization-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 800;
}

.realization-location::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.thanks-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.thanks-shell {
  width: min(620px, calc(100% - 32px));
  display: grid;
  gap: 20px;
  justify-items: start;
}

.thanks-shell img {
  width: 240px;
}

.thanks-shell h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.02;
}

.thanks-shell p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .section {
    padding: 76px 0;
  }

  .hero,
  .section-heading,
  .quote-layout {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 52px;
  }

  .section-heading h2,
  .quote-copy h2 {
    font-size: 38px;
  }

  .hero-visual {
    justify-self: center;
    width: min(100%, 430px);
    aspect-ratio: 9 / 16;
    min-height: 0;
  }

  .hero-video {
    width: 100%;
    height: 100%;
  }

  .gallery-layout {
    grid-template-columns: 1fr;
  }

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

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

  .gallery-search {
    grid-column: 1 / -1;
  }

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

  .nav {
    display: none;
  }

  .topbar-actions {
    margin-left: auto;
  }
}

@media (max-width: 680px) {
  .shell,
  .topbar-inner {
    width: min(100% - 28px, 1220px);
  }

  .brand-link img {
    width: 116px;
  }

  .topbar-inner {
    gap: 10px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .topbar-actions .button {
    min-height: 38px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .topbar-actions .button-primary {
    display: none;
  }

  .social-button {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }

  .hero {
    min-height: 0;
    gap: 24px;
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-copy {
    gap: 22px;
    padding: 24px 0;
  }

  .hero-actions,
  .form-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-visual {
    width: 100%;
  }

  .file-upload {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .file-upload-action {
    margin-left: 60px;
  }

  .gallery-section {
    padding-top: 56px;
  }

  .folder-nav,
  .folder-grid,
  .quote-form {
    grid-template-columns: 1fr;
  }

  .gallery-pagination {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
  }

  .gallery-pagination button {
    min-height: 44px;
    padding: 0 10px;
    font-size: 13px;
  }

  .gallery-dialog {
    width: 100vw;
    max-width: 100vw;
    padding: 0;
  }

  .dialog-head {
    justify-content: flex-end;
    padding: calc(env(safe-area-inset-top) + 10px) 10px 0;
  }

  .dialog-head > div {
    display: none;
  }

  .dialog-close {
    width: 42px;
    height: 42px;
    background: rgba(15, 15, 15, 0.58);
  }

  .dialog-grid {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    overflow: hidden;
    padding: 0;
  }

  .dialog-viewer {
    --mobile-top-space: calc(env(safe-area-inset-top) + 62px);
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    gap: 10px;
    align-content: stretch;
    align-items: stretch;
    justify-items: center;
    padding-top: var(--mobile-top-space);
  }

  .dialog-sidebar {
    order: 2;
    width: 100vw;
    max-width: 100vw;
    max-height: none;
    justify-content: flex-start;
  }

  .dialog-stage {
    --mobile-thumb-strip: 112px;
    --mobile-available-height: calc(100dvh - var(--mobile-thumb-strip) - var(--mobile-top-space) - 10px - env(safe-area-inset-bottom));
    --frame-height: var(--mobile-available-height);
    width: 100vw;
    max-width: 100vw;
    height: var(--mobile-available-height);
  }

  .dialog-main-image {
    max-height: 100%;
  }

  .dialog-arrow {
    width: 40px;
    height: 40px;
  }

  .dialog-arrow-prev {
    left: 8px;
  }

  .dialog-arrow-next {
    right: 8px;
  }

  .dialog-thumbs {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 8px;
  }

  .dialog-thumb {
    width: 66px;
    height: 84px;
  }

  .dialog-caption {
    width: calc(100% - 20px);
    justify-self: center;
    font-size: 12px;
  }

  .dialog-counter {
    right: 10px;
    bottom: 10px;
  }

  .quote-copy,
  .quote-form {
    padding: 24px;
  }

  .quote-copy img {
    margin-bottom: 44px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .footer-details {
    width: 100%;
    grid-template-columns: 1fr;
    justify-self: stretch;
  }

  .footer-socials {
    justify-content: flex-start;
  }
}
