* {
  box-sizing: border-box;
}

:root {
  --bg: #fbfbfb;
  --text: #090909;
  --muted: #666666;
  --card: #ffffff;
  --line: #dddddd;
  --soft: #f3f3f3;
  --red: #ff0000;
  --red-dark: #cf0000;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
  --radius: 18px;
}

body.dark {
  --bg: #070707;
  --text: #f7f7f7;
  --muted: #c4c4c4;
  --card: #111111;
  --line: #333333;
  --soft: #1b1b1b;
  --shadow: 0 18px 45px rgba(255, 0, 0, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 82px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 251, 251, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

body.dark .site-header {
  background: rgba(7, 7, 7, 0.92);
}

.header-inner,
.footer-inner,
.section-title-row,
.gallery-controls,
.button-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-inner,
.footer-inner,
.section-title-row,
.gallery-controls {
  justify-content: space-between;
}

.header-inner {
  min-height: 76px;
}

.logo-button {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.logo-mark {
  width: 58px;
  height: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: #ffffff;
  border: 2px solid #111111;
  color: #111111;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -6px;
  padding-right: 6px;
}

.logo-mark:before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 2px solid #111111;
}

.logo-mark span:first-child,
.tiny-logo::first-letter {
  color: var(--red);
}

.logo-text strong {
  display: block;
  font-size: 22px;
  text-transform: uppercase;
  line-height: 1;
}

.logo-text small {
  color: var(--red);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 11px;
}

.desktop-nav {
  display: flex;
  gap: 8px;
}

.desktop-nav button,
.site-footer button,
.mobile-nav button,
.theme-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 10px;
}

.desktop-nav button:hover,
.site-footer button:hover,
.mobile-nav button:hover,
.theme-button:hover {
  background: var(--soft);
  color: var(--red);
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.primary-button,
.secondary-button {
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.primary-button {
  background: var(--red);
  color: #ffffff;
  box-shadow: 0 12px 25px rgba(255, 0, 0, 0.24);
}

.primary-button:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.secondary-button {
  background: var(--soft);
  color: var(--text);
  border: 1px solid var(--line);
}

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

.small-button {
  padding: 11px 16px;
}

.full-button {
  width: 100%;
}

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(255, 0, 0, 0.14), transparent 34%), linear-gradient(135deg, var(--bg), var(--soft));
}

.hero-grid,
.two-column,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
}

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

h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.94;
  margin-bottom: 22px;
  letter-spacing: -3px;
}

h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: -1.5px;
}

h3 {
  margin-bottom: 10px;
}

.hero-text,
.muted {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  font-size: 18px;
  max-width: 630px;
}

.stats-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 32px;
  box-shadow: var(--shadow);
}

.stats-card strong {
  display: block;
  font-size: 28px;
}

.stats-card span {
  color: var(--muted);
  font-size: 13px;
}

.hero-card {
  position: relative;
}

.image-frame {
  background: #050505;
  border-radius: 26px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.frame-top {
  display: flex;
  gap: 12px;
  color: #ffffff;
  align-items: center;
  margin-bottom: 14px;
}

.frame-top p {
  color: #bbbbbb;
  margin: 2px 0 0;
}

.tiny-logo {
  width: 58px;
  height: 42px;
  background: #ffffff;
  color: #111111;
  border: 2px solid #111111;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: -4px;
}

.image-frame img,
.contact-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
}

.note-card,
.contact-card,
.form-card,
.feature-card,
.service-card,
.gallery-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.note-card {
  position: absolute;
  left: 22px;
  bottom: 22px;
  max-width: 280px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
}

body.dark .note-card {
  background: rgba(17, 17, 17, 0.9);
}

.note-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.floating-circle {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 0, 0, 0.18);
  filter: blur(6px);
  animation: floatMove 7s ease-in-out infinite;
}

.circle-one {
  width: 120px;
  height: 120px;
  right: 6%;
  top: 13%;
}

.circle-two {
  width: 70px;
  height: 70px;
  left: 7%;
  bottom: 11%;
  animation-delay: 1.5s;
}

.ribbon-section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.moving-ribbon {
  overflow: hidden;
  border-radius: 18px;
  background: #050505;
  color: #ffffff;
}

.ribbon-track {
  display: flex;
  width: max-content;
  gap: 34px;
  padding: 15px 18px;
  animation: marquee 22s linear infinite;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 13px;
}

.ribbon-track span:before {
  content: "•";
  color: var(--red);
  margin-right: 18px;
}

.feature-grid,
.service-grid,
.gallery-grid {
  display: grid;
  gap: 22px;
}

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

.feature-card,
.service-card,
.gallery-card,
.contact-card,
.form-card {
  padding: 24px;
}

.feature-card,
.service-card,
.gallery-card {
  transition: transform 0.25s, border-color 0.25s;
}

.feature-card:hover,
.service-card:hover,
.gallery-card:hover {
  transform: translateY(-6px);
  border-color: var(--red);
}

.feature-card span,
.service-card span {
  color: var(--red);
  font-size: 28px;
  font-weight: 900;
}

.steps-list {
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.8;
}

.gallery-section {
  background: var(--bg);
}

.gallery-controls {
  margin: 30px 0 24px;
  align-items: flex-end;
}

.filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
}

.filter.active,
.filter:hover {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
}

.search-box span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.search-box input,
form input,
form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
}

.search-box input:focus,
form input:focus,
form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.13);
}

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

.gallery-card {
  padding: 0;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-body {
  padding: 22px;
}

.gallery-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.gallery-top small {
  color: var(--red);
  font-weight: 800;
}

.price {
  white-space: nowrap;
  font-weight: 800;
}

.status-box {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--card);
}

.status-box.hidden {
  display: none;
}

.services-section {
  background: var(--soft);
}

.service-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 28px;
}

.contact-grid {
  align-items: start;
}

.contact-card {
  margin-bottom: 20px;
}

.contact-list {
  padding: 0;
  margin: 22px 0;
  list-style: none;
  color: var(--muted);
  line-height: 1.8;
}

.contact-list strong {
  color: var(--text);
}

.contact-photo {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

textarea {
  resize: vertical;
}

.form-message {
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  line-height: 1.4;
}

.form-message.success {
  display: block;
  background: rgba(0, 140, 65, 0.12);
  color: #008c41;
  border: 1px solid rgba(0, 140, 65, 0.25);
}

.form-message.error {
  display: block;
  background: rgba(255, 0, 0, 0.1);
  color: var(--red);
  border: 1px solid rgba(255, 0, 0, 0.25);
}

button:disabled,
input:disabled,
textarea:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.site-footer {
  padding: 28px 0 90px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.mobile-nav {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
}

.modal-box {
  position: relative;
  width: min(480px, 100%);
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
  animation: popIn 0.25s ease-out both;
}

.close-button {
  position: absolute;
  right: 18px;
  top: 14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--text);
  cursor: pointer;
  font-size: 24px;
}

.toast-area {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 40;
  display: grid;
  gap: 10px;
}

.toast {
  width: min(340px, calc(100vw - 36px));
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: slideUp 0.25s ease-out both;
}

.toast.success {
  border-color: rgba(0, 140, 65, 0.4);
}

.toast.error {
  border-color: rgba(255, 0, 0, 0.45);
}

.reveal {
  animation: revealUp 0.7s ease-out both;
}

.delay-1 {
  animation-delay: 0.12s;
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatMove {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(22px) scale(1.08); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 920px) {
  .desktop-nav,
  .header-actions .primary-button {
    display: none;
  }

  .hero-grid,
  .two-column,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .gallery-grid,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-controls,
  .section-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 8px;
    background: var(--card);
    border-top: 1px solid var(--line);
  }
}

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

  .logo-text {
    display: none;
  }

  .button-row,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .stats-card,
  .feature-grid,
  .gallery-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .note-card {
    position: static;
    margin-top: 14px;
    max-width: none;
  }

  .image-frame {
    border-radius: 20px;
  }

  h1 {
    letter-spacing: -2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
