/* ================================================================
   KOSINCEVA TATTOO — Layout: container, sections, header, footer
   ================================================================ */


/* ── Container ── */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}


/* ── Section wrapper ── */

.section {
  padding-block: var(--section-py);
}

.section--dark {
  background: var(--c-bg-dark);
  color: var(--c-text-inv);
}

.section--alt {
  background: var(--c-bg-alt);
}

/* Заголовочная зона секции */
.section__header {
  margin-bottom: var(--sp-6);
}

.section__header--center {
  text-align: center;
}

.section__eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--w-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-1);
}

.section--dark .section__eyebrow {
  color: var(--c-text-inv-muted);
}

.section__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--w-bold);
  line-height: var(--lh-tight);
}

@media (min-width: 1024px) {
  .section__title {
    font-size: var(--text-4xl);
  }
}

.section__subtitle {
  margin-top: var(--sp-2);
  font-size: var(--text-lg);
  color: var(--c-text-muted);
  line-height: var(--lh-relaxed);
}

.section--dark .section__subtitle {
  color: var(--c-text-inv-muted);
}


/* ── Site header ── */

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(13, 13, 13, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border-dark);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}

/* Логотип */
.logo {
  font-size: var(--text-lg);
  font-weight: var(--w-bold);     /* KOSINCEVA — bold */
  color: #fff;
  letter-spacing: 0.05em;
  word-spacing: 0.3em;            /* воздух между словами */
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
  white-space: nowrap;
  font-family: var(--font-heading);
}

.logo:hover {
  text-decoration: none;
  opacity: 0.85;
}

.logo__accent {
  font-weight: var(--w-regular);  /* TATTOO — lighter */
  letter-spacing: 0.2em;          /* больше трекинга */
  color: inherit;
}

/* В шапке (тёмный фон) primary-кнопка — белая */
.site-header .btn--primary {
  background: #ffffff;
  color: #0A0A0A;
  border-color: #ffffff;
}
.site-header .btn--primary:hover {
  background: #E5E5E5;
  border-color: #E5E5E5;
  box-shadow: 0 4px 14px rgba(255,255,255,0.12);
  color: #0A0A0A;
}


/* ── Desktop nav ── */

.site-nav {
  display: none;
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
  }

  .site-nav__link {
    font-size: var(--text-sm);
    font-weight: var(--w-medium);
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color var(--ease);
    letter-spacing: 0.01em;
    padding-block: var(--sp-1);
  }

  .site-nav__link:hover,
  .site-nav__link[aria-current="page"] {
    color: #fff;
    text-decoration: none;
  }
}


/* ── Header right group: phone + VK button ── */

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.header-phone {
  display: none;
  font-size: var(--text-sm);
  font-weight: var(--w-medium);
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color var(--ease);
}

.header-phone:hover {
  color: #fff;
  text-decoration: none;
}

@media (min-width: 1024px) {
  .header-phone {
    display: block;
  }
}

/* Текст кнопки ВК: короткий на мобиле, полный на десктопе */
.header-vk-full { display: none; }
.header-vk-short { display: inline; }

@media (min-width: 768px) {
  .header-vk-full { display: inline; }
  .header-vk-short { display: none; }
}

/* Кнопка ВК в шапке — всегда видна (в т.ч. на мобиле) */
.header-vk-cta {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .logo {
    font-size: 0.8rem;
    word-spacing: 0.1em;
    letter-spacing: 0.03em;
  }

  .header-vk-cta {
    padding: 0.35em 0.7em;
    font-size: 0.7rem;
    min-height: 34px;
  }

  .burger {
    flex-shrink: 0;
  }
}


/* ── Hamburger ── */

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-shrink: 0;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .burger { display: none; }
}

.burger__line {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
  transform-origin: center;
}

/* Открытое состояние — управляется JS через класс на <body> */
.nav-open .burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-open .burger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-open .burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ── Mobile nav overlay ── */

.mobile-nav {
  position: fixed;
  inset-block-start: var(--header-h);
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 99;
  background: var(--c-bg-dark);
  display: flex;
  flex-direction: column;
  padding: var(--sp-6) var(--container-px) var(--sp-8);
  transform: translateX(100%);
  transition: transform var(--ease-slow);
  overflow-y: auto;
}

.nav-open .mobile-nav {
  transform: translateX(0);
}

@media (min-width: 1024px) {
  .mobile-nav { display: none; }
}

.mobile-nav__link {
  font-size: var(--text-3xl);
  font-weight: var(--w-bold);
  color: #fff;
  text-decoration: none;
  padding-block: var(--sp-1);
  transition: color var(--ease);
  border-bottom: 1px solid var(--c-border-dark);
}

.mobile-nav__link:first-child {
  border-top: 1px solid var(--c-border-dark);
}

.mobile-nav__link:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.mobile-nav__contacts {
  margin-top: auto;
  padding-top: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.mobile-nav__phone {
  font-size: var(--text-xl);
  font-weight: var(--w-semibold);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color var(--ease);
}

.mobile-nav__phone:hover {
  color: #fff;
  text-decoration: none;
}


/* ── Header offset (body needs padding-top = header height) ── */

.page-body {
  padding-top: var(--header-h);
}


/* ── Breadcrumb ── */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25em 0.5em;
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  padding-block: var(--sp-3);
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: '/';
  opacity: 0.4;
}

.breadcrumb__link {
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color var(--ease);
}

.breadcrumb__link:hover {
  color: var(--c-text);
  text-decoration: none;
}

.breadcrumb__current {
  color: var(--c-text);
}


/* ── Site footer ── */

.site-footer {
  background: var(--c-bg-dark);
  color: var(--c-text-inv-muted);
  padding-block: var(--sp-10);
  border-top: 1px solid var(--c-border-dark);
}

.site-footer__grid {
  display: grid;
  gap: var(--sp-8) var(--sp-6);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: var(--sp-6);
  }
}

.site-footer__col-title {
  font-size: var(--text-xs);
  font-weight: var(--w-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-inv-muted);
  margin-bottom: var(--sp-2);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  font-style: normal;
}

.site-footer__link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color var(--ease);
  line-height: var(--lh-normal);
}

.site-footer__link:hover {
  color: #fff;
  text-decoration: none;
}

.site-footer__tagline {
  font-size: var(--text-sm);
  color: var(--c-text-inv-muted);
  line-height: var(--lh-relaxed);
  margin-top: var(--sp-2);
}

.site-footer__ig-note {
  font-size: var(--text-xs);
  color: var(--c-text-inv-muted);
  opacity: 0.7;
  display: block;
  margin-top: 0.2em;
}

/* ── Кнопки мессенджеров в футере ── */

.footer-channels {
  display: grid;
  gap: var(--sp-2);
  grid-template-columns: 1fr;
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--c-border-dark);
}

@media (min-width: 640px) {
  .footer-channels {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-channel-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--w-semibold);
  color: #fff;
  line-height: 1;
  transition: transform var(--ease), filter var(--ease);
  min-height: 44px;
}

.footer-channel-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
  filter: brightness(1.1);
}

.footer-channel-btn svg {
  flex-shrink: 0;
}


.site-footer__bottom {
  margin-top: var(--sp-8);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border-dark);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.site-footer__copy {
  font-size: var(--text-xs);
  color: var(--c-text-inv-muted);
  opacity: 0.6;
}

.site-footer__legal-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  line-height: var(--lh-relaxed);
  max-width: 760px;
}

.site-footer__legal-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--ease);
}

.site-footer__legal-link:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* ── Legal pages ── */

.legal-page {
  padding-block: var(--sp-10);
}

.legal-content {
  max-width: 760px;
  margin-top: var(--sp-6);
}

.legal-content h2 {
  font-size: var(--text-xl);
  font-weight: var(--w-semibold);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-2);
  color: var(--c-text);
}

.legal-content h3 {
  font-size: var(--text-base);
  font-weight: var(--w-semibold);
  margin-top: var(--sp-3);
  margin-bottom: var(--sp-1);
  color: var(--c-text);
}

.legal-content p {
  font-size: var(--text-base);
  line-height: var(--lh-relaxed);
  color: var(--c-text-muted);
  margin-bottom: var(--sp-2);
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.4em;
  margin-bottom: var(--sp-2);
}

.legal-content li {
  font-size: var(--text-base);
  line-height: var(--lh-relaxed);
  color: var(--c-text-muted);
  margin-bottom: 0.4em;
}

.legal-content a {
  color: var(--c-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-updated {
  margin-top: var(--sp-8);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border);
  font-size: var(--text-sm);
  color: var(--c-text-muted);
}
