/*
Theme Name: Мой Май
Description: Адаптивная тема пространства ногтевого сервиса «Мой Май».
Version: 1.2.2
Text Domain: moy-may
*/
:root {
  --bg: #e5dbd3;
  --paper: #f2eee9;
  --ink: #424729;
  --olive: #64692d;
  --gold: #af905a;
  --white: #fff;
  --serif: "Playfair Display", Georgia, serif;
  --sans: Montserrat, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); font: 400 18px/1.55 var(--sans); }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--olive); outline-offset: 4px; }
.wrap { width: min(1312px, calc(100% - 48px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 50; height: 105px; background: rgb(229 219 211 / 84%); backdrop-filter: blur(10px); }
.nav { height: 105px; display: grid; grid-template-columns: 180px minmax(440px, 1fr) 451px; align-items: center; gap: 56px; }
.brand { width: 80px; height: 73px; display: block; overflow: hidden; mix-blend-mode: multiply; }
.brand img { width: 80px; height: 80px; object-fit: cover; }
.desktop-menu { display: flex; justify-content: flex-end; align-items: center; gap: 32px; font-size: 16px; white-space: nowrap; }
.desktop-menu i, .mobile-menu nav i, .service-tabs i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); display: inline-block; flex: 0 0 auto; }
.desktop-menu a, .header-contacts a { transition: color .2s ease, transform .2s ease; }
.desktop-menu a:hover, .header-contacts a:hover { color: var(--gold); }
.header-contacts { height: 40px; display: flex; align-items: center; gap: 14px; white-space: nowrap; overflow: visible; }
.address-link { width: 229px; display: inline-flex; align-items: center; gap: 12px; font-size: 11px; line-height: 16px; }
.pin { width: 20px; height: 20px; display: inline-grid; place-items: center; color: var(--gold); font-size: 15px; }
.pin::before { content: "◆"; transform: rotate(45deg); font-size: 10px; }
.pin { font-size: 0; }
.header-phone { color: var(--gold); font-size: 13px; font-weight: 500; line-height: 18px; }
.social-icon { width: 70px; height: 70px; border-radius: 50%; background: var(--gold); color: var(--white); display: inline-grid; place-items: center; flex: 0 0 auto; transition: transform .2s ease, filter .2s ease; }
.social-icon:hover { transform: translateY(-2px); filter: brightness(.94); }
.social-icon svg { width: 30px; height: 30px; fill: currentColor; }
.social-icon--small { width: 40px; height: 40px; }
.social-icon--small svg { width: 18px; height: 18px; }
.social-icon--vk { font-size: 16px; font-weight: 600; }
.menu-toggle, .mobile-menu { display: none; }

.hero { height: 936px; position: relative; overflow: hidden; background: var(--bg); }
.hero-stage { height: 100%; position: relative; }
.ghost { margin: 0; color: transparent; background: linear-gradient(90deg, var(--paper), #e4d9d1 133%); background-clip: text; -webkit-background-clip: text; font: italic 900 300px/.8 var(--serif); pointer-events: none; white-space: nowrap; }
.ghost--hero { position: absolute; z-index: 0; top: 54px; left: max(calc((100vw - 1920px) / 2 - 280px), -280px); color: rgb(242 238 233 / 72%); background: none; font-size: 320px; }
.hero-lockup { position: absolute; z-index: 2; top: 53px; left: 0; width: 416px; height: 140px; display: flex; align-items: center; gap: 22px; }
.hero-lockup__mark { width: 140px; height: 140px; overflow: hidden; flex: 0 0 auto; mix-blend-mode: multiply; }
.hero-lockup__mark img { width: 140px; height: 140px; object-fit: cover; }
.hero-lockup__copy { display: flex; flex-direction: column; color: var(--ink); }
.hero-lockup__copy b { font: 400 40px/1 var(--serif); letter-spacing: .08em; white-space: nowrap; }
.hero-lockup__copy small { margin-top: 14px; font: 500 11px/1.45 var(--sans); letter-spacing: .26em; }
.hero-copy { position: absolute; z-index: 3; top: 283px; left: 0; width: 760px; }
.hero h1 { margin: 0; font: 300 64px/56px var(--serif); letter-spacing: -.02em; }
.hero h1 em { font-style: italic; font-weight: 300; }
.hero h1 .gold { color: var(--gold); }
.hero-photo { position: absolute; z-index: 1; top: -73px; right: 80px; width: 671px; height: 1009px; object-fit: contain; object-position: center top; }
.benefits { position: absolute; z-index: 4; top: 588px; left: 0; width: 600px; height: 264px; padding: 40px 48px; border-radius: 24px; background: var(--gold); color: var(--white); display: flex; flex-direction: column; justify-content: space-between; }
.benefit { min-height: 48px; display: grid; grid-template-columns: 24px 1fr; gap: 16px; align-items: center; font-size: 20px; line-height: 28px; }
.benefit span { font-size: 22px; }
.benefit p { margin: 0; }
.btn { min-height: 64px; display: inline-flex; align-items: stretch; border-radius: 16px; color: var(--white); overflow: hidden; text-transform: uppercase; font-size: 16px; font-weight: 500; letter-spacing: .07em; transition: transform .2s ease, filter .2s ease; }
.btn span { min-width: 206px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 40px; border-radius: 16px; background: var(--olive); }
.btn b { width: 64px; display: inline-flex; align-items: center; justify-content: center; border-radius: 16px; background: var(--olive); font: 400 24px/1 var(--sans); }
.btn:hover { transform: translateY(-2px); filter: brightness(.94); }
.btn--hero { position: absolute; z-index: 5; top: 651px; right: 0; }

.gallery-section { height: 1434px; position: relative; overflow: hidden; background: var(--bg); }
.gallery-card { width: min(1760px, calc(100% - 32px)); height: 714px; margin-inline: auto; position: relative; z-index: 2; border-radius: 40px; background: var(--paper); }
.ghost--gallery { position: absolute; top: -92px; left: 144px; background: linear-gradient(90deg, var(--bg), var(--paper) 146%); }
.gallery-copy { position: absolute; z-index: 4; top: 105px; left: 144px; width: 470px; }
.gallery-copy h2, .section h2 { margin: 0; font: 300 96px/1 var(--serif); letter-spacing: -.03em; }
.service-tabs { display: flex; align-items: center; gap: 40px; font-size: 20px; white-space: nowrap; }
.service-tabs span:not(.active) { color: var(--gold); }
.gallery-copy .service-tabs { margin-top: 50px; }
.gallery-description { margin: 80px 0 0; width: 452px; font-size: 20px; line-height: 32px; }
.gallery-price { margin: 8px 0 34px; color: var(--gold); font: 300 64px/1 var(--serif); }
.btn--compact { min-height: 56px; font-size: 13px; }
.btn--compact span { min-width: 182px; padding-inline: 40px; }
.btn--compact b { width: 56px; }
.gallery-bouquet { position: absolute; z-index: 2; top: -4px; left: 627px; width: 534px; height: 802px; object-fit: contain; transform: rotate(-45deg); filter: drop-shadow(0 15px 40px rgb(175 144 90 / 25%)); }
.gallery-daisy { position: absolute; z-index: 4; top: 365px; left: 1017px; width: 114px; height: 114px; transform: rotate(-45deg); }
.gallery-main { position: absolute; z-index: 3; top: 80px; right: 224px; width: 416px; height: 554px; border-radius: 24px; object-fit: cover; }
.slider-control { position: absolute; z-index: 6; left: 785px; top: 566px; width: 303px; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.slider-control button { width: 80px; height: 48px; border: 0; border-radius: 24px; background: var(--white); font-size: 24px; cursor: default; }
.slider-control p { margin: 0; display: flex; align-items: baseline; color: var(--gold); font: 300 32px/1 var(--serif); }
.slider-control b { color: var(--ink); font-size: 64px; font-weight: 300; }
.gallery-flower-field { position: absolute; inset: 594px 0 0; z-index: 1; overflow: hidden; }
.gallery-flower-field img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }

.section { position: relative; overflow: hidden; }
.prices-section { min-height: 1578px; padding: 104px 0 80px; background: var(--bg); }
.prices-section .ghost { height: 212px; margin: -104px 0 -46px; }
.prices-section h2 { position: relative; z-index: 1; }
.service-tabs--prices { margin-top: 72px; }
.price-list { margin-top: 80px; }
.price { min-height: 129px; display: grid; grid-template-columns: minmax(0, 864px) 192px 192px; gap: 32px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--paper); }
.price > div { font-size: 24px; line-height: 32px; }
.price time { display: flex; align-items: center; gap: 24px; color: var(--olive); font-size: 20px; line-height: 32px; }
.price time span { font-size: 24px; }
.price strong { font-size: 32px; font-weight: 400; line-height: 32px; }
.prices-action { margin-top: 64px; display: flex; justify-content: flex-end; }

.about-section { height: 824px; padding: 0; background: var(--paper); }
.about-grid { height: 100%; display: grid; grid-template-columns: 528px 640px; gap: 144px; align-items: end; }
.about-media img { width: 528px; height: 738px; border-radius: 40px; object-fit: cover; object-position: center 15%; }
.about-copy { position: relative; align-self: stretch; padding-top: 105px; }
.about-copy .ghost { position: absolute; top: 12px; left: 0; }
.about-copy h2 { position: relative; z-index: 1; }
.about-copy > p:last-child { position: relative; z-index: 1; margin: 216px 0 0; font-size: 24px; line-height: 36px; }

.reviews-section { height: 827px; padding: 0; background: var(--bg); }
.reviews-heading { height: 400px; position: relative; display: flex; justify-content: space-between; }
.reviews-heading .ghost { position: absolute; top: 12px; left: 0; }
.reviews-heading h2 { position: absolute; z-index: 1; top: 104px; left: 0; }
.slider-control--reviews { top: 280px; left: auto; right: 0; }
.reviews { width: calc(100vw - max(24px, (100vw - 1312px) / 2)); display: flex; gap: 32px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; padding: 0 24px 16px 0; }
.reviews::-webkit-scrollbar { display: none; }
.review { width: 416px; min-width: 416px; min-height: 350px; padding: 40px; border-radius: 40px; background: var(--paper); display: flex; flex-direction: column; gap: 27px; scroll-snap-align: start; }
.review h3 { margin: 0; font-size: 24px; line-height: 1.2; }
.review small { color: var(--olive); font-size: 16px; }
.review p, .review-body { margin: 0; font-size: 20px; line-height: 28px; }
.review-body p { margin: 0; }
.review-service { margin-top: auto; color: var(--gold); font-size: 16px; line-height: 24px; }

.contacts-section { min-height: 387px; padding: 0; background: var(--paper); }
.contacts-grid { min-height: 387px; display: grid; grid-template-columns: 1fr 304px; gap: 80px; align-items: center; }
.contacts-grid > div:first-child { position: relative; height: 100%; }
.contacts-grid .ghost { position: absolute; z-index: 0; top: 12px; left: -15px; }
.contacts-grid h2 { position: absolute; z-index: 1; top: 104px; left: 0; }
.contact-card { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.full-address { font-size: 20px; line-height: 28px; }
.phone { font-size: 32px; font-weight: 500; line-height: 28px; }
.social { display: flex; gap: 24px; }
.privacy-link { border-bottom: 1px solid currentColor; font-size: 12px; opacity: .68; }
.site-footer { padding: 20px 0 28px; background: var(--paper); font-size: 12px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; }

.legal-page { min-height: 70vh; padding: 90px 0; background: var(--paper); }
.legal-content { max-width: 860px; }
.legal-content h1 { font: 400 clamp(44px, 6vw, 72px)/1.05 var(--serif); }
.legal-content h2 { margin-top: 38px; font: 400 28px/1.2 var(--serif); }
.legal-content a { color: var(--gold); text-decoration: underline; }
.legal-date { margin-top: 50px; font-size: 14px; opacity: .7; }

@media (max-width: 1500px) {
  .nav { grid-template-columns: 130px minmax(360px, 1fr) auto; gap: 24px; }
  .desktop-menu { gap: 20px; font-size: 14px; }
  .header-contacts { gap: 10px; }
  .address-link { width: auto; }
  .hero-photo { right: 0; }
  .gallery-copy { left: clamp(48px, 8vw, 144px); }
  .gallery-main { right: clamp(48px, 11vw, 224px); }
  .gallery-bouquet { left: 43%; }
  .gallery-daisy { left: 57%; }
}

@media (max-width: 1180px) {
  .nav { grid-template-columns: 90px 1fr auto; }
  .brand { width: 64px; height: 64px; }
  .brand img { width: 64px; height: 64px; }
  .desktop-menu { justify-content: center; gap: 14px; font-size: 13px; }
  .header-contacts .address-link { display: none; }
  .hero-photo { right: -80px; opacity: .92; }
  .gallery-bouquet, .gallery-daisy { display: none; }
  .gallery-main { right: 48px; width: 38%; }
  .slider-control { left: 52%; }
  .about-grid { grid-template-columns: 42% 1fr; gap: 8%; }
  .about-media img { width: 100%; }
  .price { grid-template-columns: minmax(0, 1fr) 150px 150px; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 32px, 620px); }
  .site-header, .nav { height: 107px; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.menu-open .site-header { position: fixed; inset: 0; height: 100vh; background: var(--bg); }
  body.menu-open .mobile-menu { position: absolute; height: 100vh; }
  .nav { display: flex; justify-content: space-between; }
  .brand { width: 62px; height: 62px; position: relative; z-index: 3; }
  .brand img { width: 62px; height: 62px; }
  .desktop-menu, .header-contacts { display: none; }
  .menu-toggle { width: 40px; height: 40px; border: 0; padding: 0; background: transparent; position: relative; z-index: 3; display: block; cursor: pointer; }
  .menu-toggle span { position: absolute; left: 7px; width: 26px; height: 2px; background: currentColor; transition: transform .25s ease, top .25s ease; }
  .menu-toggle span:first-child { top: 14px; }
  .menu-toggle span:last-child { top: 24px; }
  .menu-toggle.is-open span:first-child { top: 19px; transform: rotate(45deg); }
  .menu-toggle.is-open span:last-child { top: 19px; transform: rotate(-45deg); }
  .mobile-menu { position: fixed; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 118px 20px 32px; overflow-y: auto; background: var(--bg); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-12px); transition: opacity .25s ease, visibility .25s ease, transform .25s ease; }
  .mobile-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 18px; font-size: 20px; }
  .mobile-menu nav i { margin-block: -5px; }
  .mobile-menu-contacts { width: min(343px, 100%); margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
  .mobile-menu-contacts .address-link { width: 100%; justify-content: center; text-align: center; font-size: 14px; }
  .mobile-contact-row { display: flex; align-items: center; justify-content: center; gap: 12px; }
  .mobile-contact-row .header-phone { font-size: 16px; }
  .mobile-contact-row .social-icon { width: 44px; height: 44px; }
  .mobile-contact-row .social-icon svg { width: 20px; height: 20px; }

  .hero { height: 717px; }
  .ghost--hero, .hero-lockup { display: none; }
  .hero-stage { width: 100%; }
  .hero-photo { top: -86px; left: 8px; right: auto; width: calc(100% - 16px); height: 539px; object-fit: contain; object-position: center top; opacity: 1; }
  .hero-copy { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .benefits { top: 445px; left: 16px; width: calc(100% - 32px); height: 192px; padding: 24px 20px; border-radius: 24px; }
  .benefit { grid-template-columns: 20px 1fr; gap: 12px; min-height: 40px; font-size: 14px; line-height: 20px; }
  .benefit span { font-size: 18px; }
  .btn { min-height: 56px; font-size: 13px; }
  .btn span { min-width: 182px; padding-inline: 32px; }
  .btn b { width: 56px; }
  .btn--hero { top: 349px; left: 50%; right: auto; transform: translateX(-50%); }
  .btn--hero:hover { transform: translateX(-50%) translateY(-2px); }

  .gallery-section { height: 1052px; padding-top: 0; }
  .gallery-card { width: 343px; height: 824px; border-radius: 32px; overflow: hidden; }
  .ghost--gallery { top: -20px; left: 16px; font-size: 112px; }
  .gallery-copy { position: static; width: auto; padding: 58px 24px 0; }
  .gallery-copy h2, .section h2 { font-size: 56px; }
  .gallery-copy .service-tabs { margin-top: 24px; }
  .service-tabs { gap: 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
  .gallery-description { position: absolute; left: 24px; bottom: 112px; width: 200px; margin: 0; font-size: 14px; line-height: 20px; }
  .gallery-price { position: absolute; left: 24px; bottom: 59px; margin: 0; font-size: 36px; }
  .gallery-copy .btn { position: absolute; right: 18px; bottom: 24px; }
  .gallery-bouquet, .gallery-daisy, .slider-control { display: none; }
  .gallery-main { top: 194px; left: 16px; right: auto; width: 311px; height: 414px; border-radius: 20px; }
  .gallery-flower-field { inset: 760px 0 0; }
  .gallery-flower-field img { object-position: center top; }

  .prices-section { min-height: 1087px; padding: 62px 0 54px; }
  .prices-section .ghost { height: auto; margin: 0 0 -28px; font-size: 112px; }
  .service-tabs--prices { margin-top: 34px; }
  .price-list { margin-top: 34px; }
  .price { min-height: 112px; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 20px 0; }
  .price > div { font-size: 14px; line-height: 20px; }
  .price time { grid-column: 1; gap: 8px; font-size: 13px; line-height: 18px; }
  .price strong { grid-column: 2; grid-row: 1 / span 2; font-size: 20px; white-space: nowrap; }
  .prices-action { margin-top: 36px; justify-content: center; }

  .about-section { height: auto; min-height: 985px; padding: 48px 0 60px; }
  .about-grid { display: flex; flex-direction: column; gap: 38px; }
  .about-media { order: 2; }
  .about-media img { width: 343px; height: 480px; border-radius: 32px; object-position: center 15%; }
  .about-copy { order: 1; align-self: auto; padding: 0; }
  .about-copy .ghost { top: -24px; left: 0; font-size: 112px; }
  .about-copy h2 { padding-top: 18px; }
  .about-copy > p:last-child { margin: 42px 0 0; font-size: 14px; line-height: 22px; }

  .reviews-section { height: 641px; padding: 48px 0 42px; }
  .reviews-heading { height: 176px; }
  .reviews-heading .ghost { top: -24px; font-size: 100px; }
  .reviews-heading h2 { top: 18px; }
  .slider-control--reviews { display: none; }
  .reviews { width: calc(100vw - 16px); gap: 16px; }
  .review { width: 310px; min-width: 310px; min-height: 348px; padding: 28px; border-radius: 28px; gap: 20px; }
  .review h3 { font-size: 20px; }
  .review small { font-size: 13px; }
  .review p, .review-body { font-size: 15px; line-height: 22px; }
  .review-service { font-size: 13px; line-height: 19px; }

  .contacts-section { min-height: 374px; padding: 42px 0 36px; }
  .contacts-grid { min-height: 0; display: grid; grid-template-columns: 1fr; gap: 28px; }
  .contacts-grid > div:first-child { height: 92px; }
  .contacts-grid .ghost { top: -22px; left: 0; font-size: 96px; }
  .contacts-grid h2 { top: 14px; }
  .contact-card { gap: 18px; }
  .full-address { font-size: 15px; line-height: 22px; }
  .phone { font-size: 24px; line-height: 28px; }
  .social { gap: 14px; }
  .social-icon { width: 54px; height: 54px; }
  .social-icon svg { width: 23px; height: 23px; }
  .privacy-link { font-size: 11px; }
  .site-footer .wrap { flex-direction: column; gap: 8px; }
}

@media (max-width: 370px) {
  .gallery-card { width: calc(100% - 24px); }
  .gallery-main { width: calc(100% - 32px); }
  .gallery-copy .btn { right: 12px; }
  .benefits { left: 12px; width: calc(100% - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
