/* ============================================================
   Общие стили городских страниц (/tatuaz-warka, /tatuaz-tarczyn, ...)
   Вынесено из inline-блока, чтобы 300 строк CSS не дублировались
   на каждой странице и кэшировались браузером один раз.
   ============================================================ */

.city-main { padding: 140px 0 80px; background: var(--bg-dark); }

.city-hero { max-width: 820px; margin: 0 auto 3.5rem; text-align: center; }
.city-hero h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.7rem, 4.6vw, 2.6rem);
    color: var(--secondary-color);
    margin-bottom: 1.2rem;
    line-height: 1.28;
}
.city-hero p { color: var(--text-light); opacity: 0.85; line-height: 1.75; font-weight: 300; }
.city-hero p + p { margin-top: 1rem; }

/* Три ключевых числа — сразу отвечают «далеко ли это» */
.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    max-width: 820px;
    margin: 2.5rem auto 0;
}
.fact {
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 6px;
    padding: 1.2rem 0.8rem;
    text-align: center;
    background: rgba(212, 175, 55, 0.04);
}
.fact .num {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 1.75rem;
    color: var(--secondary-color);
    line-height: 1.1;
}
.fact .cap {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
    opacity: 0.6;
}

.city-section { max-width: 820px; margin: 0 auto 3.5rem; padding: 0; }
.city-section h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.3rem, 3.4vw, 1.85rem);
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.city-section h3 {
    font-size: 1.05rem;
    color: var(--secondary-color);
    margin: 1.6rem 0 0.6rem;
    font-weight: 600;
}
.city-section p {
    color: var(--text-light);
    opacity: 0.85;
    font-weight: 300;
    line-height: 1.8;
}
.city-section p + p { margin-top: 0.9rem; }
.city-section ul { margin: 0.9rem 0 0 1.1rem; }
.city-section li {
    color: var(--text-light);
    opacity: 0.85;
    font-weight: 300;
    line-height: 1.75;
    margin-bottom: 0.5rem;
}
.city-section strong { color: var(--secondary-color); font-weight: 600; }

/* Кнопка «построить маршрут» — открывает Google Maps сразу с проложенным
   путём от города до студии, человеку не надо ничего вводить руками. */
.route-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.3rem;
    padding: 0.95rem 1.6rem;
    background: var(--secondary-color);
    color: #0a0a0a;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}
.route-cta:hover { background: transparent; color: var(--secondary-color); }
.route-cta i { font-size: 1.05rem; }
.route-cta-note { margin-top: 0.7rem; font-size: 0.88rem; opacity: 0.65; }

.route-table-wrap { overflow-x: auto; margin-top: 1.2rem; }
table.route-table { width: 100%; border-collapse: collapse; min-width: 0; }
table.route-table th, table.route-table td {
    text-align: left;
    padding: 0.8rem 0.7rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.16);
    color: var(--text-light);
    font-size: 0.95rem;
}
table.route-table thead th {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--secondary-color);
    border-bottom-color: rgba(212, 175, 55, 0.4);
}
table.route-table td.best { color: var(--secondary-color); font-weight: 600; }

.price-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
    margin-top: 1.4rem;
}
.price-mini a {
    display: block;
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 6px;
    padding: 1.3rem 1rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
.price-mini a:hover { background: rgba(212, 175, 55, 0.08); border-color: var(--secondary-color); }
.price-mini .srv { display: block; color: var(--text-light); font-weight: 500; margin-bottom: 6px; }
.price-mini .val { display: block; font-family: 'Cinzel', serif; font-size: 1.4rem; color: var(--secondary-color); }

/* ---------- Галерея работ ----------
   Явные width/height на <img> обязательны: браузер резервирует место
   до загрузки, иначе текст прыгает вниз и портится CLS. */
.city-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.8rem;
    margin-top: 1.4rem;
}
.city-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(212, 175, 55, 0.04);
    transition: transform 0.35s ease, border-color 0.35s ease;
}
.city-gallery a { display: block; text-decoration: none; }
.city-gallery a:hover img { transform: scale(1.03); border-color: var(--secondary-color); }
.gallery-note { margin-top: 1rem; font-size: 0.88rem; opacity: 0.65; }

/* ---------- Секции ----------
   Здесь была анимация проявления при скролле: текст прятался через
   opacity:0 и показывался из JS. Убрано намеренно.

   Причина: контент страницы не должен зависеть от того, отработал ли
   JavaScript. Достаточно, чтобы браузер отдал закэшированную старую
   версию CSS (кэш стоит на час) или наблюдатель не сработал — и вся
   страница остаётся пустой, вместе с текстом, который нужен для поиска.
   Плавное появление не стоит такого риска, поэтому .reveal ничего не прячет. */
.reveal { opacity: 1; }

.faq-city details {
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
    padding: 1.05rem 0;
}
.faq-city summary {
    cursor: pointer;
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.02rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq-city summary::-webkit-details-marker { display: none; }
.faq-city summary::after {
    content: '+';
    color: var(--secondary-color);
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.faq-city details[open] summary::after { transform: rotate(45deg); }
.faq-city details p { opacity: 0.82; margin-top: 0.85rem; }

.city-cta {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.02));
}
.city-cta h2 { font-family: 'Cinzel', serif; color: var(--secondary-color); font-size: clamp(1.25rem, 3.8vw, 1.7rem); margin-bottom: 0.8rem; }
.city-cta p { color: var(--text-light); opacity: 0.85; font-weight: 300; margin-bottom: 1.7rem; line-height: 1.7; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.cta-row a {
    text-decoration: none;
    padding: 0.9rem 1.7rem;
    border-radius: 3px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--secondary-color);
}
.cta-row a.solid { background: var(--secondary-color); color: #0a0a0a; }
.cta-row a.solid:hover { background: transparent; color: var(--secondary-color); }
.cta-row a.ghost { color: var(--secondary-color); background: transparent; }
.cta-row a.ghost:hover { background: var(--secondary-color); color: #0a0a0a; }

/* Усиленный блок доверия под CTA — снимает возражения до формы */
.cta-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.4rem;
    justify-content: center;
    margin-bottom: 1.6rem;
    font-size: 0.87rem;
    color: var(--text-light);
    opacity: 0.75;
    font-weight: 300;
}
.cta-trust span { display: inline-flex; align-items: center; gap: 0.4rem; }
.cta-trust i { color: var(--secondary-color); font-size: 0.9rem; }

/* ---------- Выбор мастера: два понятных пути вместо одной общей кнопки ---------- */
.masters-pick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.1rem;
    margin: 1.6rem 0 0;
}
.master-pick {
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 8px;
    padding: 1.5rem 1.3rem;
    background: rgba(212, 175, 55, 0.04);
    text-align: left;
}
.master-pick .who {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 3px;
}
.master-pick .what {
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.6;
    color: var(--text-light);
    margin-bottom: 1rem;
}
.master-pick .desc {
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.65;
    opacity: 0.82;
    color: var(--text-light);
    margin-bottom: 1.2rem;
}
.pick-btn {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--secondary-color);
    border-radius: 3px;
    background: var(--secondary-color);
    color: #0a0a0a;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.pick-btn:hover { background: transparent; color: var(--secondary-color); }
.pick-btn + .pick-btn { margin-top: 0.6rem; }
.pick-btn.alt { background: transparent; color: var(--secondary-color); }
.pick-btn.alt:hover { background: var(--secondary-color); color: #0a0a0a; }

/* ---------- Форма заявки ---------- */
.lead-form { margin-top: 1.8rem; text-align: left; }
.lead-form .row { margin-bottom: 1.1rem; }
.lead-form label {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: var(--secondary-color);
    margin-bottom: 0.45rem;
    font-weight: 600;
}
.lead-form input,
.lead-form select,
.lead-form textarea {
    width: 100%;
    padding: 0.85rem 0.9rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 4px;
    color: var(--text-light);
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}
.lead-form textarea { min-height: 96px; resize: vertical; }
.lead-form .hint { font-size: 0.8rem; opacity: 0.55; margin-top: 0.35rem; font-weight: 300; }
.lead-form .phone-wrap { display: flex; align-items: stretch; }
.lead-form .phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 0.8rem;
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-right: 0;
    border-radius: 4px 0 0 4px;
    background: rgba(212, 175, 55, 0.08);
    color: var(--secondary-color);
    font-weight: 600;
    white-space: nowrap;
}
.lead-form .phone-wrap input { border-radius: 0 4px 4px 0; }

.lead-submit {
    width: 100%;
    padding: 1rem;
    background: var(--secondary-color);
    color: #0a0a0a;
    border: 1px solid var(--secondary-color);
    border-radius: 3px;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.3s ease;
}
.lead-submit:hover:not(:disabled) { background: transparent; color: var(--secondary-color); }
.lead-submit:disabled { opacity: 0.65; cursor: default; }
.lead-submit.sending::after {
    content: "";
    display: inline-block;
    width: 14px; height: 14px;
    margin-left: 9px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: lead-spin 0.8s linear infinite;
    vertical-align: -2px;
}
@keyframes lead-spin { to { transform: rotate(360deg); } }

.lead-msg { margin-top: 1rem; padding: 1rem; border-radius: 4px; font-size: 0.95rem; line-height: 1.6; display: none; }
.lead-msg.ok { display: block; background: rgba(76, 175, 80, 0.12); border: 1px solid rgba(76, 175, 80, 0.45); color: #b9e6bb; }
.lead-msg.err { display: block; background: rgba(244, 67, 54, 0.12); border: 1px solid rgba(244, 67, 54, 0.45); color: #ffb4a8; }

/* Плавающая кнопка вынесена в /floating-cta.css — она подключается и к
   старым страницам, где классы city.css вызвали бы конфликты вёрстки. */

@media (prefers-reduced-motion: reduce) {
    .lead-submit.sending::after { animation-duration: 2.5s; }
    .reveal { transition: none; opacity: 1; transform: none; }
    .city-gallery img { transition: none; }
}

@media (max-width: 600px) {
    .city-main { padding: 110px 0 60px; }
    .cta-row a { width: 100%; text-align: center; }
    table.route-table th, table.route-table td { padding: 0.65rem 0.4rem; font-size: 0.9rem; }
    .city-gallery { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.6rem; }
}
