/* ============================ */
/*          Base Reset         */
/* ============================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

@font-face {
  font-family: "Angelica Regular";
  src: url("../fonts/Angelica-Regular.woff2") format("woff2"),
       url("../fonts/Angelica-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --font-heading: "Playfair Display", Georgia, serif;
  --font-ui: "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --header-height: 88px;
  --container: 1120px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 18px 50px rgba(15, 23, 42, 0.14);
  --transition-fast: 0.25s ease;
  --transition-base: 0.4s ease;
  --transition-slow: 0.7s ease;

  --bg: #f7f4ef;
  --bg-elevated: rgba(255, 255, 255, 0.78);
  --bg-card: #ffffff;
  --bg-muted: #f1ece6;
  --bg-strong: #e9dfd4;
  --text: #2e2724;
  --text-soft: #625750;
  --text-muted: #7a6f67;
  --line: rgba(87, 71, 61, 0.12);
  --line-strong: rgba(87, 71, 61, 0.18);
  --accent: #8f6f58;
  --accent-2: #b48e73;
  --header-bg: rgba(247, 244, 239, 0.82);
  --overlay: rgba(244, 238, 232, 0.86);
  --hero-mask: linear-gradient(180deg, rgba(28, 23, 20, 0.08) 0%, rgba(28, 23, 20, 0.22) 100%);
  --button-text: #2e2724;
  --button-bg: rgba(255, 255, 255, 0.75);
  --button-hover: rgba(255, 255, 255, 0.95);
  --selection: rgba(180, 142, 115, 0.28);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111112;
  --bg-elevated: rgba(24, 24, 28, 0.75);
  --bg-card: #17171b;
  --bg-muted: #1d1d22;
  --bg-strong: #23232a;
  --text: #f3eee8;
  --text-soft: #cec3b7;
  --text-muted: #a99d92;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #d7b79a;
  --accent-2: #b58f72;
  --header-bg: rgba(17, 17, 18, 0.78);
  --overlay: rgba(12, 12, 14, 0.84);
  --hero-mask: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.4) 100%);
  --button-text: #f3eee8;
  --button-bg: rgba(255, 255, 255, 0.06);
  --button-hover: rgba(255, 255, 255, 0.12);
  --selection: rgba(215, 183, 154, 0.22);
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  scroll-padding-top: calc(var(--header-height) + 20px);
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-heading);
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(180, 142, 115, 0.08), transparent 38%),
    var(--bg);
  transition: background-color var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
}

body.menu-open,
body.overlay-open {
  overflow: hidden;
}

::selection {
  background: var(--selection);
}

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

a,
button,
input,
textarea,
select,
svg,
path {
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    opacity var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    filter var(--transition-fast);
}

button {
  font: inherit;
}

.container {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 0 1rem;
}

.main-content {
  flex: 1;
}

section {
  position: relative;
}

section:not(.hero) {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.section-title {
  margin: 0 0 2rem;
  font-size: clamp(1.9rem, 2.3vw, 2.6rem);
  line-height: 1.15;
  text-align: center;
  color: var(--text);
}

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

/* ============================ */
/*             Header          */
/* ============================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1005;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header__inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-left {
  margin-right: auto;
  min-width: 0;
}

.header-right {
  margin-left: auto;
}

.logo-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  gap: 0.05rem;
  min-width: max-content;
}

.logo {
  font-family: "Angelica Regular", "Segoe Script", "Brush Script MT", cursive;
  font-weight: 400;
  font-size: clamp(2.15rem, 2.9vw, 3rem);
  line-height: 0.92;
  color: var(--text);
  letter-spacing: 0.01em;
}

.logo-subtext {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 0.15rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.social-link {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--button-bg);
  box-shadow: var(--shadow-soft);
}

.social-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-link:hover {
  transform: translateY(-2px) scale(1.04);
  background: var(--button-hover);
  box-shadow: var(--shadow-hover);
}

.nav {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  position: relative;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.97rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.4rem;
  width: 0;
  height: 1px;
  background: currentColor;
  transform: translateX(-50%);
  transition: width var(--transition-fast);
}

.nav__list a:hover::after,
.nav__list a:focus-visible::after {
  width: 100%;
}

.theme-toggle,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-text);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.theme-toggle:hover,
.nav-toggle:hover {
  transform: translateY(-2px);
  background: var(--button-hover);
  box-shadow: var(--shadow-hover);
}

.theme-toggle__icon {
  font-size: 1.05rem;
  line-height: 1;
}

.nav-toggle {
  display: none;
  position: relative;
  padding: 0;
  background: transparent;
}

.nav-toggle .bar {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-toggle .bar:nth-child(1) { transform: translateY(-6px); }
.nav-toggle .bar:nth-child(2) { transform: translateY(0); }
.nav-toggle .bar:nth-child(3) { transform: translateY(6px); }

.nav-toggle.active .bar:nth-child(1) { transform: rotate(45deg); }
.nav-toggle.active .bar:nth-child(2) { opacity: 0; }
.nav-toggle.active .bar:nth-child(3) { transform: rotate(-45deg); }

/* ============================ */
/*              Hero           */
/* ============================ */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  overflow: clip;
}

.hero .main-content {
  min-height: inherit;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  opacity: 1;
  will-change: opacity, transform;
  transition: opacity 1.2s ease, transform 6s ease;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-mask);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.scroll-arrow {
  position: absolute;
  left: 50%;
  bottom: clamp(1.25rem, 4vw, 2.25rem);
  transform: translateX(-50%);
  z-index: 2;
  animation: scroll-bounce 2.1s infinite;
  opacity: 0.9;
}

.scroll-arrow.hidden {
  opacity: 0;
  visibility: hidden;
}

.scroll-arrow svg {
  width: 34px;
  height: 34px;
  stroke: #ffffff;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

html[data-theme="dark"] .scroll-arrow svg {
  stroke: #f7efe7;
}

@keyframes scroll-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================ */
/*           Shared Cards      */
/* ============================ */
.about,
.services,
.contact,
.pricing,
.portfolio-section {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.about {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.18) 100%);
}

.about-inner,
.pricing-grid,
.portfolio-grid {
  position: relative;
  z-index: 1;
}

.about-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
}

.about-text {
  flex: 1 1 360px;
  color: var(--text-soft);
  text-align: justify;
}

.about-text .section-title {
  text-align: left;
  margin-bottom: 1rem;
}

.about-text p + p {
  margin-top: 0.85rem;
}

.about-text p {
  line-height: 1.72;
}

.about-image {
  flex: 0 1 380px;
}

.about-image img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 4px);
  object-fit: cover;
  box-shadow: var(--shadow-hover);
}

.services__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.services__list li {
  list-style: none;
}

.btn-service,
.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.7rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  background: var(--button-bg);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.btn-service {
  min-height: 62px;
  text-align: center;
}

.btn-service:hover,
.btn-social:hover {
  transform: translateY(-2px);
  background: var(--button-hover);
  box-shadow: var(--shadow-hover);
}

.contact .container {
  text-align: center;
}

.contact p {
  color: var(--text-soft);
  line-height: 1.7;
}

.contact p + p {
  margin-top: 1rem;
}

.contact-block + .contact-block {
  margin-top: 1.25rem;
}

.contact-block__title {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}

.social-buttons-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.btn-social {
  max-width: 420px;
}

.btn-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* glowing social buttons */
.btn-whatsapp { --social-glow: rgba(37, 211, 102, 0.34); }
.btn-telegram { --social-glow: rgba(0, 136, 204, 0.32); }
.btn-vk { --social-glow: rgba(0, 119, 255, 0.28); }
.btn-instagram { --social-glow: rgba(214, 36, 159, 0.26); }

.btn-whatsapp:hover,
.btn-telegram:hover,
.btn-vk:hover,
.btn-instagram:hover {
  box-shadow: 0 20px 36px var(--social-glow), var(--shadow-hover);
}

.price-card,
.portfolio-item {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.price-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--line-strong);
}

.price-card__header {
  padding: 1.25rem;
  text-align: center;
}

.price-card__header img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 4px);
  margin-bottom: 1rem;
}

.price-card__header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--text);
}

.price-card__details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 1.25rem;
  color: var(--text-soft);
  text-align: left;
  transition: max-height 0.5s ease, opacity var(--transition-base), padding var(--transition-base);
}

.price-card:hover .price-card__details,
.price-card:focus-within .price-card__details {
  max-height: 1200px;
  opacity: 1;
  padding: 0 1.25rem 1.3rem;
}

.price-card__details p,
.price-card__details li {
  line-height: 1.68;
}

.price-card__details ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.price-bottom-text {
  max-width: 760px;
  margin: 2.5rem auto 0;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text-soft);
  box-shadow: var(--shadow-soft);
  text-align: justify;
}

.price-bottom-text ul {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  color: var(--text);
}

.price-bottom-text p + p {
  margin-top: 0.7rem;
}

/* ============================ */
/*            Portfolio        */
/* ============================ */
.portfolio-section + .portfolio-section {
  padding-top: 0;
}

.portfolio-section-title {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: clamp(1.6rem, 2.1vw, 2rem);
  color: var(--text);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.portfolio-item {
  position: relative;
  padding-top: 132%;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--line-strong);
}

.portfolio-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0.9rem;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 4px);
  transition: transform 0.65s ease, filter 0.65s ease;
}

.portfolio-item:hover img {
  transform: scale(1.03);
  filter: saturate(1.04);
}

.portfolio-title {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding: 1rem 1rem 1.05rem;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.55) 100%);
  color: #ffffff;
  text-align: center;
  line-height: 1.3;
  font-size: 1rem;
  font-weight: 600;
  pointer-events: none;
}

.portfolio-caption {
  display: none;
}

/* ============================ */
/*             Overlay         */
/* ============================ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  overflow-y: auto;
  padding: 1rem;
  background: var(--overlay);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.overlay.active {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
}

.overlay-controls {
  position: relative;
  width: 100%;
}

.overlay-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  margin: 0 auto;
  padding-top: 0.25rem;
}

.overlay .overlay-content img {
  width: min(100%, 760px);
  margin: 0 auto;
  border-radius: var(--radius-md);
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.close-btn,
.scroll-top-btn {
  position: sticky;
  top: 12px;
  float: right;
  margin-left: 8px;
  z-index: 3;

  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  color: var(--button-text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08), 0 0.5px 1.5px rgba(0,0,0,0.05);
  transition: background 0.2s, color 0.2s, box-shadow 0.3s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.close-btn {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  font-size: 1.9rem;
}

.scroll-top-btn {
  top: auto;
  bottom: 12px;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  margin: 1rem 0 0 8px;
}

.close-btn:hover,
.scroll-top-btn:hover {
  background: var(--button-hover);
  color: var(--button-text);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.14),
    0 0 26px rgba(180, 142, 115, 0.34);
  transform: scale(1.07);
}

.close-btn::before,
.scroll-top-btn::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  background: rgba(180, 142, 115, 0.28);
  filter: blur(18px);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
  pointer-events: none;
}

.close-btn:hover::before,
.scroll-top-btn:hover::before {
  opacity: 1;
}

html[data-theme="dark"] .close-btn::before,
html[data-theme="dark"] .scroll-top-btn::before {
  background: rgba(215, 183, 154, 0.20);
}

html[data-theme="dark"] .close-btn:hover,
html[data-theme="dark"] .scroll-top-btn:hover {
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(215, 183, 154, 0.26);
}


/* ============================ */
/*             Footer          */
/* ============================ */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 82px;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.footer-left,
.footer-right {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-link:hover {
  color: var(--text);
  border-color: currentColor;
}

/* ============================ */
/*             Reveal          */
/* ============================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================ */
/*         Responsive          */
/* ============================ */
@media (max-width: 1080px) {
  .pricing-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  :root {
    --header-height: 82px;
  }

  .header__inner {
    gap: 0.75rem;
  }

  .social-links {
    gap: 0.55rem;
  }

  .social-link {
    width: 2.15rem;
    height: 2.15rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: calc(var(--header-height) + 8px) 1rem auto 1rem;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  }

  .nav.nav--active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    min-width: min(100%, 340px);
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--bg-elevated);
    box-shadow: var(--shadow-hover);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .nav__list li {
    width: 100%;
  }

  .nav__list a {
    display: block;
    padding: 0.9rem 1rem;
    border-radius: 14px;
  }

  .nav__list a:hover,
  .nav__list a:focus-visible {
    background: var(--button-bg);
  }

  .nav__list a::after {
    display: none;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: calc(var(--header-height) + 16px);
  }

  .container {
    padding: 0 0.85rem;
  }

  .header-left {
    gap: 0.65rem;
  }

  .logo {
    font-size: 2rem;
  }

  .logo-subtext {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }

  .hero {
    min-height: calc(100svh - var(--header-height));
  }

  .hero-bg {
    background-position: 50% 42%;
  }

  .about,
  .services,
  .contact,
  .portfolio-section {
    padding: 3.4rem 0;
  }

  .about-inner {
    flex-direction: column;
    padding: 1.2rem;
  }

  .about-text {
    text-align: left;
  }

  .about-text .section-title {
    text-align: center;
  }

  .pricing-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .price-card__details {
    max-height: 1200px;
    opacity: 1;
    padding: 0 1.25rem 1.3rem;
  }

  .portfolio-item {
    padding-top: 118%;
  }

  .overlay {
    padding: 0.75rem;
  }

  .overlay .overlay-content img {
    width: 100%;
    max-height: none;
  }

  .close-btn,
  .scroll-top-btn {
    width: 3rem;
    height: 3rem;
  }

  .footer .container {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 560px) {
  :root {
    --header-height: 78px;
  }

  .header__inner {
    padding: 0.75rem 0;
  }

  .social-links {
    display: none;
  }

  .theme-toggle,
  .nav-toggle {
    width: 2.65rem;
    height: 2.65rem;
  }

  .section-title {
    margin-bottom: 1.5rem;
  }

  .btn-service,
  .btn-social {
    padding: 0.95rem 1rem;
  }

  .price-card__header,
  .price-bottom-text {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .price-card__details {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


@media (max-width: 560px) {
  .logo {
    font-size: clamp(1.85rem, 8.2vw, 2.4rem);
  }

  .logo-subtext {
    font-size: 0.66rem;
    letter-spacing: 0.18em;
  }
}


/* ============================ */
/*   Header mobile fixes + new theme slider */
/* ============================ */

.theme-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  min-width: 52px;
  padding: 0;
  border: 1px solid #111111;
  border-radius: 999px;
  background: #ffffff;
  color: transparent;
  box-shadow: none;
  overflow: hidden;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: none;
  box-shadow: none;
}

.theme-toggle:focus-visible {
  outline: 2px solid rgba(17, 17, 17, 0.25);
  outline-offset: 3px;
}

.theme-toggle__icon {
  opacity: 0;
  width: 0;
  height: 0;
  font-size: 0;
}

.theme-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #ffffff;
}

.theme-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #111111;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

html[data-theme="dark"] .theme-toggle {
  background: #111111;
  border-color: #ffffff;
}

html[data-theme="dark"] .theme-toggle::before {
  background: #111111;
}

html[data-theme="dark"] .theme-toggle::after {
  background: #ffffff;
  transform: translateX(24px);
}

@media (max-width: 860px) {
  .container {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }

  .header__inner {
    gap: 0.75rem;
  }

  .header-left {
    gap: 0.6rem;
    flex: 1 1 auto;
    min-width: 0;
  }

  .header-right {
    gap: 0.55rem;
    flex: 0 0 auto;
  }

  .logo-wrapper {
    margin-left: 0.12rem;
  }

  .social-links {
    gap: 0.45rem;
  }

  .social-link {
    width: 1.95rem;
    height: 1.95rem;
  }

  .theme-toggle {
    width: 48px;
    height: 26px;
    min-width: 48px;
  }

  .theme-toggle::after {
    width: 18px;
    height: 18px;
  }

  html[data-theme="dark"] .theme-toggle::after {
    transform: translateX(22px);
  }

  .nav-toggle {
    margin-right: 0.12rem;
  }
}

@media (max-width: 560px) {
  .container {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .header__inner {
    min-height: 78px;
    padding: 0.75rem 0;
    gap: 0.65rem;
  }

  .header-left {
    gap: 0.5rem;
  }

  .header-right {
    gap: 0.42rem;
  }

  .logo-wrapper {
    margin-left: 0.12rem;
  }

  .logo {
    font-size: clamp(1.8rem, 7.8vw, 2.25rem);
  }

  .logo-subtext {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
  }

  .social-links {
    display: flex !important;
    gap: 0.38rem;
  }

  .social-link {
    width: 1.7rem;
    height: 1.7rem;
  }

  .theme-toggle {
    width: 42px;
    height: 24px;
    min-width: 42px;
  }

  .theme-toggle::after {
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
  }

  html[data-theme="dark"] .theme-toggle::after {
    transform: translateX(18px);
  }

  .nav-toggle {
    width: 2.45rem;
    height: 2.45rem;
    margin-right: 0.12rem;
  }

  .nav-toggle .bar {
    width: 16px;
  }
}


/* ============================ */
/*        Menu-only fixes      */
/* ============================ */

/* Blur layer under opened mobile menu */
@media (max-width: 860px) {
  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1002;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
  }

  html[data-theme="dark"] body.menu-open::before {
    background: rgba(0, 0, 0, 0.24);
  }

  .nav {
    z-index: 1004;
  }

  .nav__list {
    align-items: center;
    text-align: center;
    gap: 0.45rem;
    padding: 0.75rem;
  }

  .nav__list li {
    display: flex;
    justify-content: center;
  }

  .nav__list a {
    width: 100%;
    text-align: center;
    font-size: 1.08rem;
    font-weight: 500;
    padding: 1rem 1.2rem;
  }
}

@media (max-width: 560px) {
  .nav__list {
    gap: 0.4rem;
    padding: 0.7rem;
  }

  .nav__list a {
    font-size: 1.12rem;
    padding: 0.95rem 1rem;
  }
}

/* ============================ */
/*   About photo width fix     */
/* ============================ */
.about-image {
  display: inline-block !important;
  flex: 0 0 auto !important;
  width: min(100%, 360px) !important;
  max-width: 360px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0px !important;
  overflow: hidden !important;
  background: transparent !important;
}

.about-image img {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 0px !important;
  object-fit: cover;
  object-position: center;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  .about-image {
    width: 100% !important;
    max-width: 100% !important;
  }

  .about-image img {
    width: 100% !important;
  }
}


/* ============================ */
/*     Services buttons glow   */
/* ============================ */
.btn-service {
  position: relative;
  overflow: visible;
}

.btn-service::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  background: rgba(180, 142, 115, 0.28);
  filter: blur(18px);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
  pointer-events: none;
}

.btn-service:hover::before {
  opacity: 1;
}

.btn-service:hover {
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.14),
    0 0 26px rgba(180, 142, 115, 0.34);
}

html[data-theme="dark"] .btn-service::before {
  background: rgba(215, 183, 154, 0.20);
}

html[data-theme="dark"] .btn-service:hover {
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(215, 183, 154, 0.26);
}

/* ============================ */
/*      Price cards hover glow  */
/* ============================ */
#individual:hover {
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.16),
    0 0 28px rgba(16, 35, 92, 0.30),
    0 0 52px rgba(21, 42, 110, 0.22);
}

#lovestory:hover {
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.14),
    0 0 28px rgba(230, 188, 196, 0.30),
    0 0 52px rgba(193, 163, 138, 0.24);
}

#event:hover {
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.16),
    0 0 28px rgba(28, 76, 54, 0.28),
    0 0 52px rgba(23, 92, 57, 0.22);
}

html[data-theme="dark"] #individual:hover {
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.28),
    0 0 30px rgba(39, 68, 155, 0.34),
    0 0 58px rgba(26, 52, 128, 0.28);
}

html[data-theme="dark"] #lovestory:hover {
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.26),
    0 0 30px rgba(223, 180, 191, 0.28),
    0 0 58px rgba(184, 151, 126, 0.24);
}

html[data-theme="dark"] #event:hover {
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.28),
    0 0 30px rgba(34, 98, 68, 0.30),
    0 0 58px rgba(24, 116, 72, 0.24);
}


/* ============================ */
/*   Header social links v1    */
/* ============================ */
.header .social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header .social-link {
  display: block;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  cursor: pointer;
}

.header .social-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header .social-link:hover {
  transform: scale(1.3);
  background: transparent;
  box-shadow: none;
}

@media (max-width: 860px) {
  .header .social-links {
    display: flex;
    gap: 0.75rem;
  }

  .header .social-link {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 560px) {
  .header .social-links {
    display: flex !important;
    gap: 0.6rem;
  }

  .header .social-link {
    width: 20px;
    height: 20px;
  }
}


/* ============================ */
/*   Price info footer spacing */
/* ============================ */
.price-bottom-text {
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

