/* --- ROTANOVA_NAIL_ZP | Premium Style --- */
:root {
    --black: #101114;
    --gray-dark: #202329;
    --gray-mid: #343943;
    --gray-light: #f3f4f6;
    --white: #ffffff;
    --accent: #9ca3af;
    --line: #d7dbe2;
    --font-body: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
    --font-display: "Cormorant Garamond", Georgia, serif;
  }
  
  /* БАЗА */
  body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    background-color: var(--gray-light);
    color: var(--black);
    line-height: 1.75;
    letter-spacing: 0.01em;
    scroll-behavior: smooth;
    background-image: linear-gradient(180deg, #ffffff 0%, #eef2f7 45%, #e8edf5 100%);
  }

  * {
    box-sizing: border-box;
  }

  section,
  footer {
    width: 100%;
    margin: 0;
    padding-left: 20px;
    padding-right: 20px;
  }

  section > *,
  footer > * {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }
  
  h1, h2, h3 {
    margin-top: 0;
    line-height: 1.2;
    text-wrap: balance;
  }

  h1, h2 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.03em;
  }

  h3 {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.01em;
  }
  
  h2 {
    text-transform: none;
    font-size: clamp(1.8rem, 2vw + 1rem, 2.5rem);
    margin-bottom: 25px;
    color: var(--gray-dark);
    text-align: center;
    font-weight: 800;
  }

  p, li, input, textarea, button, a {
    font-family: var(--font-body);
  }

  p, li {
    font-size: clamp(1rem, 0.4vw + 0.95rem, 1.08rem);
  }
  
  /* КНОПКИ */
  .btn {
    display: inline-block;
    padding: 12px 30px;
    margin: 10px;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    line-height: 1.2;
    opacity: 1;
    visibility: visible;
  }
  .btn.primary {
    background: linear-gradient(135deg, #0f1114 0%, #2b3039 100%);
    color: var(--white);
    border: 1px solid #2e333b;
  }
  .btn.primary:hover {
    background: linear-gradient(135deg, #1a1d23 0%, #3a414d 100%);
    color: var(--white);
  }
  .btn.secondary {
    border: 1px solid #aeb4bf;
    color: var(--gray-dark);
    background: #f3f5f8;
  }
  .btn.secondary:hover {
    background: #e6e9ee;
    color: var(--gray-dark);
    border-color: #989faa;
  }

  .btn:focus-visible,
  a:focus-visible,
  input:focus-visible,
  textarea:focus-visible,
  button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
  }
  
  /* HERO */
  .hero {
    background: url("images/hero.webp") center/cover no-repeat;
    color: var(--white);
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
    padding: 48px 20px 48px;
    box-sizing: border-box;
  }
  .hero .overlay {
    background: linear-gradient(160deg, rgba(14, 16, 19, 0.82) 0%, rgba(32, 36, 43, 0.72) 100%);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 760px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
  }
  .cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    padding-left: 4px;
    padding-right: 4px;
    box-sizing: border-box;
  }
  .cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
  }
  .brand-logo-frame {
    position: relative;
    width: min(360px, 92vw);
    margin: 0 auto 14px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    aspect-ratio: 1 / 1;
    background: rgba(10, 11, 14, 0.92);
  }
  .brand-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    margin: 0;
    border: none;
    transform: translate(-50%, -50%);
    object-fit: contain;
    object-position: center center;
    display: block;
    image-rendering: auto;
  }
  .hero .overlay > h1,
  .hero .overlay > p {
    width: 100%;
    max-width: 100%;
  }
  .hero h1 {
    font-size: clamp(2.3rem, 4vw + 1rem, 4rem);
    margin-bottom: 8px;
    letter-spacing: 0.03em;
  }
  .hero p {
    font-size: clamp(1.08rem, 0.8vw + 0.9rem, 1.3rem);
    font-weight: 500;
    margin-bottom: 20px;
  }
  .hero-proof {
    margin: -2px 0 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(235, 241, 250, 0.9);
    letter-spacing: 0.01em;
  }
  
  /* ABOUT */
  .about {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(145deg, #fbfcfe 0%, #eef2f8 100%);
  }

  .about p {
    max-width: 900px;
    margin: 0 auto 14px;
  }
  .master-photo {
    width: auto;
    max-width: min(420px, 100%);
    height: auto;
    border-radius: 18px;
    margin: 0 auto 24px;
    display: block;
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(16, 17, 20, 0.14);
  }
  .features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
  }
  .feature {
    width: 280px;
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    transition: 0.3s;
    border: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(17, 19, 23, 0.08);
  }
  .feature:hover {
    background: #eef1f5;
    color: var(--gray-dark);
    transform: translateY(-2px);
  }
  
  /* SERVICES */
  .services {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(160deg, #0f1216 0%, #1c2027 48%, #323844 100%);
    color: var(--white);
    width: 100%;
  }
  .service-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
  }
  .service-columns div {
    background: linear-gradient(180deg, #2b3039 0%, #1d2128 100%);
    border-radius: 10px;
    padding: 25px;
    width: 280px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  .services h3 {
    color: #c8ced8;
    font-size: 1.3rem;
  }
  .service-columns h3 {
    text-align: center;
    margin-bottom: 14px;
  }
  .service-columns ul {
    text-align: left;
    padding-left: 20px;
    margin: 0;
  }
  .service-columns li {
    margin-bottom: 8px;
  }
  .service-columns li:last-child {
    margin-bottom: 0;
  }
  
  /* PORTFOLIO */
  .portfolio {
    background: linear-gradient(145deg, #f4f6fa 0%, #e6ebf3 100%);
    padding: 80px 20px;
  }
  .portfolio .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
  }
  .portfolio img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    border-radius: 14px;
    border: 1px solid #cfd4dd;
    box-shadow: 0 10px 24px rgba(16, 17, 20, 0.14);
    filter: none;
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
  }
  .portfolio img:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 30px rgba(16, 17, 20, 0.2);
    filter: none;
  }
  .portfolio .more {
    margin-top: 20px;
  }
  
  /* URGENT */
  .urgent {
    background: linear-gradient(135deg, #e9edf3 0%, #c5cedb 100%);
    color: #171a1f;
    padding: 60px 20px;
    text-align: center;
    width: 100%;
  }
  .urgent .btn.secondary {
    background: linear-gradient(135deg, #12151a 0%, #2f3642 100%);
    border-color: #2f3642;
    color: #ffffff;
  }
  .urgent .btn.secondary:hover {
    background: linear-gradient(135deg, #1d222a 0%, #434d5d 100%);
    border-color: #434d5d;
    color: #ffffff;
  }
  
  /* REVIEWS */
  .reviews {
    background: linear-gradient(145deg, #fcfdff 0%, #eef2f8 100%);
    padding: 80px 20px;
  }
  .review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    align-items: start;
  }
  .review-card {
    margin: 0;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: 0 10px 26px rgba(16, 17, 20, 0.1);
    overflow: hidden;
    padding: 10px;
  }
  .review-shot {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #fafbfc 0%, #eef1f6 100%);
    border-radius: 10px;
    min-height: 200px;
    padding: 8px;
  }
  .review-shot img {
    width: 100%;
    height: auto;
    max-height: min(640px, 78vh);
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 8px;
  }
  
  /* STEPS */
  .steps {
    background: linear-gradient(160deg, #12151a 0%, #20252e 52%, #3a414f 100%);
    color: var(--white);
    padding: 80px 20px;
    width: 100%;
  }
  .steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    text-align: center;
  }
  .step-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 18px 14px;
    display: grid;
    gap: 10px;
    justify-items: center;
  }
  .step-badge {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: #f2f5fb;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
  }
  
  /* FORM */
  .form {
    background: linear-gradient(145deg, #fafcff 0%, #e8edf5 100%);
    padding: 80px 20px;
    text-align: center;
  }
  .form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: min(420px, 100%);
    margin: 0 auto;
  }
  .form input,
  .form textarea {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #c8cdd5;
    background: #ffffff;
    color: #1a1d22;
    font: inherit;
  }
  .form textarea {
    min-height: 110px;
    resize: vertical;
  }
  .form button {
    background: var(--black);
    color: var(--white);
    border: none;
  }
  .form button:hover {
    background: var(--gray-dark);
    color: var(--white);
  }
  .hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
  }
  .form-status {
    margin: 4px 0 0;
    font-size: 0.95rem;
    color: #dfe6f5;
  }

  /* MAP */
  .map-section {
    background: linear-gradient(145deg, #f2f5fb 0%, #e3e9f3 100%);
    padding: 80px 20px;
  }
  .map-frame {
    max-width: 980px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #c8d0dc;
    box-shadow: 0 14px 30px rgba(16, 17, 20, 0.16);
  }
  .map-frame iframe {
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
  }
  .map-route-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 18px auto 0;
    font-weight: 700;
    text-align: center;
  }
  
  /* FOOTER */
  footer {
    background: linear-gradient(160deg, #0b0d11 0%, #1a1f27 55%, #2e3541 100%);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
    width: 100%;
  }
  .contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  .contact-icon {
    color: #cfd6e2;
    font-size: 0.9rem;
    line-height: 1;
  }
  .contact-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .contact-link {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    text-decoration: none;
    color: #e7edf8;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, transform 0.2s ease;
  }
  .contact-link svg {
    width: 15px;
    height: 15px;
    display: block;
    fill: currentColor;
  }
  .contact-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
  }
  .contact-actions .contact-link:nth-child(1) {
    background: rgba(115, 96, 242, 0.24);
    border-color: rgba(140, 124, 255, 0.62);
    color: #e9e5ff;
  }
  .contact-actions .contact-link:nth-child(2) {
    background: rgba(34, 158, 217, 0.24);
    border-color: rgba(78, 185, 236, 0.62);
    color: #e2f6ff;
  }
  .contact-actions .contact-link:nth-child(3) {
    background: rgba(39, 174, 96, 0.24);
    border-color: rgba(91, 205, 136, 0.62);
    color: #e6ffef;
  }

  @media (max-width: 640px) {
    .map-route-btn {
      display: flex;
      width: min(320px, 100%);
      margin: 18px auto 0;
      justify-content: center;
      text-align: center;
      font-weight: 700;
    }

    .hero .overlay {
      padding: 26px 18px;
    }

    .hero h1 {
      font-size: 2.1rem;
    }

    .btn {
      display: block;
      margin: 10px auto;
      width: min(320px, 100%);
    }
  }
  
  /* THANK-YOU POPUP */
  #thankYou {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: linear-gradient(135deg, #0f1218 0%, #2f3744 100%);
    color: var(--white);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
  .hidden {
    display: none;
  }

  .telegram-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 999px;
    text-decoration: none;
    background: linear-gradient(135deg, #229ed9 0%, #1978a6 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 28px rgba(5, 17, 30, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  }
  .telegram-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(5, 17, 30, 0.42);
    filter: brightness(1.05);
  }
  .telegram-float__icon {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.95rem;
  }

  @media (max-width: 640px) {
    .telegram-float {
      right: 12px;
      left: 12px;
      bottom: 12px;
      justify-content: center;
      padding: 12px 14px;
      font-size: 0.92rem;
    }
  }

  /* NIGHT LUXURY (єдина палітра сайту) */
  body.theme-night {
    color: #e7ebf2;
    background-image: linear-gradient(180deg, #0f1115 0%, #1a202a 100%);
  }
  body.theme-night h2 { color: #eceff6; }
  body.theme-night .about { background: linear-gradient(145deg, #151922 0%, #212836 100%); }
  body.theme-night .about p { color: #dde3ef; }
  body.theme-night .feature {
    background: linear-gradient(180deg, #1d2430 0%, #252d3b 100%);
    border-color: #3a4454;
    color: #e6ebf5;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  }
  body.theme-night .feature:hover { background: #2a3342; color: #fff; }
  body.theme-night .services { background: linear-gradient(160deg, #0b0d12 0%, #1b2230 48%, #303a4c 100%); }
  body.theme-night .service-columns div {
    background: linear-gradient(180deg, #252d3a 0%, #171d28 100%);
    border-color: rgba(255, 255, 255, 0.12);
  }
  body.theme-night .portfolio { background: linear-gradient(145deg, #151a23 0%, #222b38 100%); }
  body.theme-night .portfolio .more,
  body.theme-night .portfolio .more a { color: #dde4f0; }
  body.theme-night .portfolio img { border-color: #394457; }
  body.theme-night .urgent { background: linear-gradient(135deg, #3a4352 0%, #59667b 100%); color: #fff; }
  body.theme-night .reviews { background: linear-gradient(145deg, #131823 0%, #212938 100%); }
  body.theme-night .review-card {
    background: #1a1f28;
    border-color: #3a4454;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  }
  body.theme-night .review-shot {
    background: linear-gradient(180deg, #1c212a 0%, #252d3a 100%);
  }
  body.theme-night .steps { background: linear-gradient(160deg, #090b0f 0%, #1b2331 50%, #313e55 100%); }
  body.theme-night .form { background: linear-gradient(145deg, #121722 0%, #232c3b 100%); }
  body.theme-night .form input,
  body.theme-night .form textarea {
    background: #0f141d;
    color: #eaf0fb;
    border-color: #384457;
  }
  body.theme-night .map-section {
    background: linear-gradient(145deg, #141a24 0%, #202938 100%);
  }
  body.theme-night .map-frame {
    border-color: #3a465a;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  }
  body.theme-night footer { background: linear-gradient(160deg, #08090d 0%, #1f2735 60%, #3a475f 100%); }
  body.theme-night .btn.primary {
    background: linear-gradient(135deg, #8e96a7 0%, #c2cad9 100%);
    color: #0f1218;
    border-color: #aeb8ca;
  }
  body.theme-night .btn.primary:hover {
    background: linear-gradient(135deg, #b4bece 0%, #dde5f4 100%);
    color: #0b0d11;
  }
  body.theme-night .btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: #68758d;
    color: #edf2fb;
  }
  body.theme-night .btn.secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
  }
  body.theme-night .urgent .btn.secondary {
    background: linear-gradient(135deg, #11141a 0%, #394254 100%);
    color: #fff;
    border-color: #394254;
  }
  body.theme-night .step-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.16);
  }
  body.theme-night .step-badge {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
  }
  body.theme-night .contact-icon {
    color: #dfe6f4;
  }
