/*
Theme Name: by Ann Art
Theme URI: https://beautyagent.ru/by_ann_art
Author: Codex
Description: Custom one-page WordPress theme for by_ann_art beauty studio.
Version: 1.0.0
Text Domain: by-ann-art
*/

:root {
  --ink: #1f2420;
  --muted: #6c7169;
  --cream: #fffaf2;
  --paper: #f7f0e6;
  --card: rgba(255, 252, 246, 0.86);
  --green: #254833;
  --green-2: #386548;
  --gold: #b99a57;
  --gold-soft: #e7d6ad;
  --line: rgba(70, 77, 66, 0.18);
  --white: #ffffff;
  --shadow: 0 26px 70px rgba(35, 50, 38, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(231, 214, 173, 0.35), transparent 30%),
    linear-gradient(180deg, #fffdfa 0%, var(--paper) 100%);
  font-family: Manrope, Arial, sans-serif;
  overflow-x: hidden;
}

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

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

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

.site-shell {
  overflow: visible;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 58px);
  background: rgba(255, 250, 242, 0.94);
  border-bottom: 1px solid rgba(185, 154, 87, 0.22);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  background: transparent;
}

.brand span {
  color: var(--green);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2.4vw, 32px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

.mobile-menu-toggle {
  position: relative;
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(37, 72, 51, 0.24);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.82);
  cursor: pointer;
}

.mobile-menu-toggle span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--green);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.mobile-menu-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.mobile-menu-toggle.is-open span:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-open span:nth-child(3) {
  transform: rotate(-45deg);
}

.mobile-nav {
  position: absolute;
  top: calc(100% + 8px);
  right: clamp(16px, 4vw, 58px);
  z-index: 110;
  display: grid;
  min-width: 220px;
  overflow: hidden;
  border: 1px solid rgba(185, 154, 87, 0.22);
  border-radius: 14px;
  background: rgba(255, 250, 242, 0.98);
  box-shadow: 0 24px 54px rgba(31, 36, 32, 0.14);
  backdrop-filter: blur(16px);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 16px 18px;
  color: var(--green);
  font-size: 15px;
  font-weight: 800;
}

.mobile-nav a + a {
  border-top: 1px solid rgba(185, 154, 87, 0.16);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--green-2));
  border-color: transparent;
}

.button-ghost {
  color: var(--green);
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(37, 72, 51, 0.28);
}

.button-gold {
  color: var(--ink);
  background: linear-gradient(135deg, #f4e7bf, #c7a85d);
  border-color: transparent;
}

.section,
.hero {
  padding-right: clamp(16px, 5vw, 72px);
  padding-left: clamp(16px, 5vw, 72px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(30px, 5vw, 78px);
  align-items: center;
  min-height: calc(100vh - 87px);
  padding-top: clamp(24px, 5vw, 72px);
  padding-bottom: clamp(34px, 6vw, 82px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.96;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(52px, 8vw, 108px);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 5vw, 72px);
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.lead {
  max-width: 610px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions,
.socials,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.trust-item {
  min-width: 0;
  min-height: 122px;
  padding: 16px;
  border: 1px solid rgba(185, 154, 87, 0.25);
  border-radius: var(--radius);
  background: rgba(255, 252, 246, 0.68);
  overflow-wrap: anywhere;
}

.trust-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  line-height: 1.2;
}

.trust-item span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.hero-media {
  position: relative;
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  border: 1px solid rgba(185, 154, 87, 0.3);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero-image,
.hero-card img {
  width: 100%;
  height: 680px;
}

.hero-image {
  background-position: center;
  background-size: cover;
}

.hero-card img {
  object-fit: cover;
}

.hero-logo {
  position: absolute;
  right: 26px;
  bottom: 26px;
  width: 168px;
  height: 168px;
  overflow: hidden;
  border-radius: 50%;
  background: url("assets/icons/hero-logo-badge.png") center / contain no-repeat;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
}

.hero-logo img {
  display: none;
}

.promo-hero {
  position: relative;
  overflow: hidden;
  width: min(100%, 1480px);
  margin-right: auto;
  margin-left: auto;
  grid-template-columns: minmax(0, 600px) minmax(560px, 680px);
  gap: clamp(22px, 2.4vw, 42px);
  justify-content: center;
  min-height: auto;
  padding-top: clamp(34px, 5vw, 64px);
  padding-bottom: clamp(34px, 5vw, 64px);
  background:
    radial-gradient(circle at 16% 28%, rgba(231, 214, 173, 0.28), transparent 34%),
    radial-gradient(circle at 68% 48%, rgba(244, 229, 204, 0.52), transparent 42%),
    linear-gradient(112deg, #fffaf2 0%, #faf3e8 42%, #fffaf2 100%);
}

.promo-hero::before {
  position: absolute;
  inset: clamp(18px, 3vw, 42px) clamp(14px, 4vw, 62px);
  border: 1px solid rgba(185, 154, 87, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 84%, rgba(37, 72, 51, 0.055), transparent 28%),
    radial-gradient(circle at 78% 14%, rgba(185, 154, 87, 0.1), transparent 34%);
  content: "";
  pointer-events: none;
}

.promo-hero::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 242, 0.82) 0%, transparent 18%, transparent 82%, rgba(255, 250, 242, 0.7) 100%),
    linear-gradient(180deg, rgba(255, 250, 242, 0.88) 0%, transparent 18%, transparent 80%, rgba(255, 250, 242, 0.88) 100%);
  content: "";
  pointer-events: none;
}

.promo-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 24px;
  align-content: center;
  width: 100%;
  max-width: 620px;
}

.promo-services {
  display: flex;
  flex-wrap: nowrap;
  gap: 0 clamp(14px, 1.8vw, 22px);
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid rgba(185, 154, 87, 0.34);
  border-bottom: 1px solid rgba(185, 154, 87, 0.34);
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 2.45vw, 38px);
  line-height: 1.15;
  white-space: nowrap;
}

.promo-services span {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 22px);
}

.promo-services span:not(:last-child)::after {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

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

.promo-actions .button {
  min-height: 66px;
  border-color: rgba(37, 72, 51, 0.45);
  font-size: 18px;
}

.promo-offer {
  width: min(108%, 680px);
  max-width: none;
  margin: -4px 0 0 -18px;
  height: auto;
  border-radius: 0;
  filter: drop-shadow(0 20px 34px rgba(35, 50, 38, 0.075));
}

.promo-photo {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: flex;
  min-height: clamp(620px, 54vw, 820px);
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin-right: 0;
  overflow: visible;
  --promo-photo-radius: 14px;
}

.promo-photo::before {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: clamp(120px, 13vw, 220px);
  background: linear-gradient(90deg, var(--paper) 0%, rgba(255, 250, 242, 0.66) 28%, rgba(255, 250, 242, 0.18) 62%, transparent 100%);
  content: "";
  pointer-events: none;
}

.promo-photo img {
  position: relative;
  z-index: 0;
  width: min(100%, 760px);
  height: auto;
  max-height: clamp(620px, 54vw, 820px);
  min-height: 0;
  display: block;
  border-radius: var(--promo-photo-radius);
  clip-path: inset(0 round var(--promo-photo-radius));
  object-fit: contain;
  object-position: center;
  filter: saturate(0.98) drop-shadow(0 18px 44px rgba(35, 50, 38, 0.045));
  -webkit-mask-image: none;
  mask-image: none;
}

.section {
  padding-top: clamp(58px, 8vw, 112px);
  padding-bottom: clamp(58px, 8vw, 112px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-note {
  max-width: 500px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.about {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(18px, 3vw, 46px);
  align-items: center;
  min-height: calc(100vh - 87px);
  overflow: hidden;
  padding-top: clamp(58px, 7vw, 108px);
  padding-bottom: clamp(58px, 7vw, 108px);
}

.about-photo {
  position: relative;
  order: 2;
  display: block;
  width: 100%;
  height: min(76vh, 760px);
  min-height: 560px;
  margin-right: calc(clamp(16px, 5vw, 72px) * -1);
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: 0;
  background-position: center right;
  background-size: cover;
  box-shadow: none;
  cursor: zoom-in;
  -webkit-mask-image: radial-gradient(ellipse at 58% 50%, #000 0 56%, rgba(0, 0, 0, 0.78) 66%, transparent 84%);
  mask-image: radial-gradient(ellipse at 58% 50%, #000 0 56%, rgba(0, 0, 0, 0.78) 66%, transparent 84%);
}

.about-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, var(--paper) 0%, rgba(247, 240, 230, 0.72) 14%, transparent 34%),
    linear-gradient(180deg, var(--paper) 0%, transparent 16%, transparent 78%, var(--paper) 100%);
  pointer-events: none;
}

.about-photo img {
  width: 100%;
  height: 620px;
  object-fit: cover;
}

.about-text p {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.about-text h2 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(48px, 6.4vw, 86px);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.service-card,
.price-group,
.contact-card {
  border: 1px solid rgba(185, 154, 87, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 252, 246, 0.78);
  box-shadow: 0 14px 42px rgba(35, 50, 38, 0.07);
}

.service-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
}

.service-card span {
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 46px;
  line-height: 1;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.gallery {
  background: linear-gradient(180deg, rgba(37, 72, 51, 0.07), rgba(255, 250, 242, 0.1));
}

.portfolio {
  position: relative;
  overflow-x: hidden;
}

.anchor-target {
  position: absolute;
  top: -92px;
}

.portfolio-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 64px);
  align-items: end;
  margin-bottom: 30px;
}

.portfolio-tab {
  display: grid;
  gap: 8px;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid rgba(37, 72, 51, 0.18);
  background: transparent;
  color: rgba(31, 36, 32, 0.48);
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}

.portfolio-tab span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 700;
  line-height: 0.94;
}

.portfolio-tab small {
  color: var(--muted);
  font-size: clamp(20px, 2.5vw, 32px);
  line-height: 1.2;
}

.portfolio-tab.is-active {
  color: var(--ink);
  border-color: var(--green);
}

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

.work-gallery {
  display: grid;
  min-width: 0;
  gap: 26px;
}

.work-category-tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.work-category-tab {
  position: relative;
  display: grid;
  width: 138px;
  height: 138px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease;
}

.work-category-tab img {
  display: block;
  width: 132px;
  height: 132px;
  object-fit: contain;
  transition: transform 180ms ease, opacity 180ms ease;
}

.work-category-tab span {
  position: absolute;
  bottom: calc(100% - 10px);
  left: 50%;
  z-index: 4;
  width: max-content;
  max-width: 180px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(37, 72, 51, 0.88);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -4px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.work-category-tab:hover,
.work-category-tab:focus-visible,
.work-category-tab.is-active {
  transform: translateY(-2px);
  filter: drop-shadow(0 10px 22px rgba(35, 50, 38, 0.12));
}

.work-category-tab:hover img,
.work-category-tab:focus-visible img {
  transform: scale(1.04);
}

.work-category-tab:hover span,
.work-category-tab:focus-visible span {
  opacity: 1;
  transform: translate(-50%, -10px);
}

.work-category-panel[hidden] {
  display: none;
}

.work-category-panel {
  min-width: 0;
}

.gallery-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
}

.gallery-track {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-auto-columns: clamp(230px, 23vw, 330px);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--green) rgba(37, 72, 51, 0.12);
}

.gallery-slide {
  margin: 0;
  scroll-snap-align: start;
}

.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  cursor: zoom-in;
}

.gallery-open img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery-image {
  display: block;
  width: 100%;
  height: 420px;
  border-radius: var(--radius);
  background-position: center;
  background-size: cover;
}

.slider-button {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(185, 154, 87, 0.4);
  border-radius: 50%;
  color: var(--green);
  background: rgba(255, 252, 246, 0.92);
  box-shadow: var(--shadow);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.slider-prev {
  left: 14px;
}

.slider-next {
  right: 14px;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr;
  gap: 12px;
}

.studio-grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
}

.studio-photo {
  width: 100%;
  height: 320px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background-position: center;
  background-size: cover;
  cursor: zoom-in;
}

.studio-grid img:first-child,
.studio-grid .studio-photo:first-child {
  grid-row: span 2;
  height: 652px;
}

.price {
  background: var(--green);
  color: var(--white);
}

.price .eyebrow,
.price .section-note {
  color: #eadfbe;
}

.price-switcher {
  display: grid;
  gap: 24px;
}

.price-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.price-tab {
  min-width: 0;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid rgba(234, 223, 190, 0.35);
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 700;
  line-height: 1;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}

.price-tab.is-active {
  color: var(--white);
  border-color: var(--gold-soft);
}

.price-panels {
  position: relative;
  overflow: hidden;
}

.price-panel[hidden] {
  display: none;
}

.price-panel.is-active {
  animation: priceSlideInRight 260ms ease both;
}

.price-panel.slide-from-left {
  animation-name: priceSlideInLeft;
}

.price-panel.slide-from-right {
  animation-name: priceSlideInRight;
}

.price-panel.slide-out-left {
  animation: priceSlideOutLeft 240ms ease both;
}

.price-panel.slide-out-right {
  animation: priceSlideOutRight 240ms ease both;
}

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

.price-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.price-group {
  padding: 24px;
  color: var(--ink);
  background: rgba(255, 252, 246, 0.96);
}

.price-group h3 {
  color: var(--green);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
}

.price-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(70, 77, 66, 0.12);
}

.price-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.price-list strong {
  display: block;
  margin-bottom: 4px;
}

.price-list small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.price-value {
  color: var(--green);
  font-weight: 900;
  white-space: nowrap;
}

@keyframes priceSlideInRight {
  from {
    opacity: 0;
    transform: translateX(42px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes priceSlideInLeft {
  from {
    opacity: 0;
    transform: translateX(-42px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes priceSlideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(-42px);
  }
}

@keyframes priceSlideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(42px);
  }
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.contact-card {
  padding: clamp(24px, 4vw, 42px);
}

.address {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.route-note {
  display: inline-block;
  margin-top: 8px;
  color: var(--green);
  font-size: 15px;
  font-weight: 800;
}

.socials {
  margin-top: 22px;
}

.social-link {
  display: grid;
  width: 92px;
  min-height: 92px;
  place-items: center;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
  color: var(--green);
  font-weight: 800;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(35, 50, 38, 0.12);
}

.social-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  overflow: hidden;
}

.social-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.social-icon svg * {
  fill: currentColor;
}

.social-link small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.social-whatsapp .social-icon {
  background: #25d366;
  color: var(--white);
}

.social-whatsapp .social-icon svg {
  width: 30px;
  height: 30px;
  transform: translate(1px, -1px);
}

.social-telegram .social-icon {
  background: #2aabee;
  color: var(--white);
}

.social-instagram .social-icon {
  background: linear-gradient(135deg, #f9ce34, #ee2a7b 48%, #6228d7);
  color: transparent;
}

.social-instagram .social-icon svg * {
  fill: none;
  stroke: var(--white);
  stroke-width: 5;
}

.social-instagram .social-icon svg circle:last-child {
  fill: var(--white);
  stroke: none;
}

.social-youtube .social-icon {
  background: transparent;
  color: #cf2029;
}

.social-youtube .social-icon svg path {
  fill: var(--white);
}

.social-max .social-icon {
  background: linear-gradient(135deg, #18a9ff, #874fe4);
  color: var(--white);
}

.social-vk .social-icon {
  background: #4f7daa;
  color: var(--white);
}

.social-vk .social-icon svg {
  width: 32px;
  height: 32px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(8, 14, 10, 0.86);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(96vw, 1280px);
  max-height: 88vh;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  font-size: 42px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 14px 20px;
  padding: 28px clamp(16px, 5vw, 72px) 96px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer > span:last-of-type {
  justify-self: end;
  text-align: right;
}

.developer-credit {
  grid-column: 1 / -1;
  justify-self: center;
  color: rgba(37, 72, 51, 0.56);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  transition: color 180ms ease;
}

.developer-credit strong {
  color: rgba(37, 72, 51, 0.78);
  font-weight: 900;
}

.developer-credit:hover,
.developer-credit:focus-visible {
  color: var(--green);
}

.developer-credit:hover strong,
.developer-credit:focus-visible strong {
  color: var(--green);
}

.mobile-booking {
  position: fixed;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 30;
  display: none;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--green-2));
  box-shadow: 0 20px 46px rgba(31, 36, 32, 0.28);
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.mobile-booking.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 1320px) {
  .promo-hero {
    grid-template-columns: minmax(0, 500px) minmax(440px, 620px);
    gap: 22px;
  }

  .promo-services {
    gap: 0 14px;
    font-size: clamp(27px, 2.35vw, 34px);
  }

  .promo-services span {
    gap: 14px;
  }

  .promo-actions .button {
    min-height: 58px;
    font-size: 16px;
  }

  .promo-photo img {
    width: min(100%, 700px);
    max-height: 700px;
  }
}

@media (min-width: 1121px) and (max-width: 1240px) {
  .promo-hero {
    grid-template-columns: minmax(0, 430px) minmax(420px, 560px);
    gap: 18px;
  }

  .promo-copy {
    max-width: 430px;
  }

  .promo-services {
    gap: 0 10px;
    font-size: clamp(24px, 2.05vw, 29px);
  }

  .promo-services span {
    gap: 10px;
  }

  .promo-actions {
    gap: 14px;
  }

  .promo-offer {
    width: min(106%, 560px);
  }

  .promo-photo img {
    width: min(100%, 560px);
    max-height: 640px;
  }
}

@media (max-width: 1120px) {
  .promo-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .promo-copy {
    max-width: none;
  }

  .promo-photo {
    order: -1;
    min-height: 520px;
    justify-content: center;
  }

  .promo-photo::before {
    display: none;
  }

  .promo-photo img {
    width: min(100%, 520px);
    height: auto;
    max-height: 560px;
    border-radius: var(--promo-photo-radius);
    clip-path: inset(0 round var(--promo-photo-radius));
    object-position: center top;
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, #000 2.5%, #000 97.5%, transparent 100%),
      linear-gradient(180deg, transparent 0%, #000 2.5%, #000 97.5%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(90deg, transparent 0%, #000 2.5%, #000 97.5%, transparent 100%),
      linear-gradient(180deg, transparent 0%, #000 2.5%, #000 97.5%, transparent 100%);
    mask-composite: intersect;
  }

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

  .gallery-track {
    grid-auto-columns: clamp(250px, 36vw, 330px);
  }
}

@media (max-width: 900px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .site-header {
    grid-template-columns: auto 1fr;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

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

  .about {
    min-height: auto;
  }

  .about-photo {
    order: -1;
    min-height: 460px;
    margin: 0 calc(clamp(16px, 5vw, 72px) * -1) 10px;
    background-position: center;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 82%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 82%, transparent 100%);
  }

  .hero {
    min-height: auto;
  }

  .promo-hero {
    gap: 24px;
    padding-top: 28px;
    background:
      linear-gradient(180deg, rgba(255, 250, 242, 0.92) 0%, rgba(255, 250, 242, 0.5) 44%, var(--paper) 100%);
  }

  .promo-copy {
    order: 2;
    max-width: none;
  }

  .promo-photo {
    order: 1;
    min-height: 500px;
    margin-right: 0;
    border-radius: var(--radius);
    justify-content: center;
    --promo-photo-radius: 12px;
  }

  .promo-photo::before {
    display: none;
  }

  .promo-photo img {
    width: min(100%, 480px);
    height: 500px;
    min-height: 500px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-card,
  .hero-image,
  .hero-card img {
    height: auto;
    min-height: 430px;
  }

  .trust-row,
  .price-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

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

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

  .portfolio-tabs {
    gap: 18px;
  }

  .studio-grid img:first-child,
  .studio-grid .studio-photo:first-child {
    grid-row: auto;
    height: 320px;
  }
}

@media (max-width: 640px) {
  .brand img {
    width: 64px;
    height: 64px;
  }

  .brand span {
    font-size: 22px;
  }

  .header-actions {
    display: none;
  }

  h1 {
    font-size: 52px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .promo-hero {
    padding-top: 18px;
  }

  .promo-services {
    gap: 0 8px;
    padding: 18px 0;
    font-size: clamp(20px, 5vw, 24px);
  }

  .promo-services span {
    gap: 8px;
  }

  .promo-services span:not(:last-child)::after {
    width: 5px;
    height: 5px;
  }

  .promo-actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .promo-actions .button {
    min-height: 58px;
    width: 100%;
  }

  .promo-offer {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .promo-photo,
  .promo-photo img {
    min-height: 0;
  }

  .promo-photo {
    min-height: auto;
  }

  .promo-photo img {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .hero-logo {
    display: none;
  }

  .trust-row,
  .service-grid,
  .studio-grid,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .price-tabs {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }

  .price-tab {
    flex: 0 0 auto;
    min-width: 42%;
    scroll-snap-align: start;
  }

  .work-category-tabs {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }

  .work-category-tab {
    width: 112px;
    height: 112px;
  }

  .work-category-tab img {
    width: 108px;
    height: 108px;
  }

  .gallery-track {
    grid-auto-columns: min(74vw, 310px);
    gap: 12px;
    padding: 2px 0 16px;
  }

  .portfolio-tabs {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .portfolio-tab {
    padding-bottom: 10px;
  }

  .about-photo,
  .about-photo img,
  .studio-grid img,
  .studio-grid img:first-child,
  .studio-photo,
  .studio-grid .studio-photo:first-child {
    height: 390px;
  }

  .about-photo {
    min-height: 390px;
  }

  .hero-card,
  .hero-image {
    min-height: 390px;
  }

  .gallery-image,
  .gallery-open img {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .slider-button {
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 34px;
  }

  .section-head {
    display: block;
  }

  .section-note {
    margin-top: 14px;
  }

  .price-list li {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .price-value {
    white-space: normal;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    text-align: center;
  }

  .site-footer > span:last-of-type {
    justify-self: center;
    text-align: center;
  }

  .developer-credit {
    grid-column: auto;
  }

  .mobile-booking {
    display: flex;
  }
}
