/*
Theme Name: Творец Пенза
Author: sinoptic
Version: 2.1
Description: Контрастная минималистичная тема для проекта Творец Пенза
*/

/* =========================
   Base
========================= */

:root {
  --bg: #f5f5f3;
  --surface: #ffffff;
  --text: #111111;
  --muted: #666666;
  --line: #dddddd;
  --accent: #111111;
  --accent-inverse: #ffffff;
  --radius: 20px;
  --shadow: 0 8px 24px rgba(0,0,0,0.04);
  --max-width: 1200px;
  --content-width: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.content-center {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
}

/* =========================
   Header
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #e8e8e8;
}

.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  display: block;
  width: auto;
  height: 72px;
  max-width: 320px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 38px;
  margin-left: auto;
  flex-wrap: nowrap;
}

.main-nav a {
  color: #444;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #000;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-left: 22px;
  margin-left: 8px;
  border-left: 1px solid #e5e5e5;
}

.social-link {
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  font-size: 0;
  line-height: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.social-link svg {
  display: block;
  width: 21px;
  height: 21px;
  min-width: 21px;
  min-height: 21px;
  fill: currentColor;
}

.social-link:hover {
  background: #111;
  color: #fff;
  border-color: #111;
  transform: translateY(-2px);
}

/* =========================
   Hero
========================= */

.hero {
  padding: 56px 0 34px;
}

.hero-full {
  width: 100%;
}

.hero-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 56px;
}

.hero-card h1 {
  margin: 0 0 18px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  max-width: 720px;
}

.hero-card p {
  margin: 0;
  max-width: 700px;
  font-size: 18px;
  line-height: 1.5;
  color: #2a2a2a;
}

.hero-card-modern {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 500px;
  gap: 56px;
  align-items: center;
  min-height: 480px;
  padding: 56px 64px;
  position: relative;
}

.hero-content {
  max-width: 640px;
  align-self: center;
}

.hero-lead {
  max-width: 620px;
  margin: 0 0 22px;
  font-size: 28px !important;
  line-height: 1.28 !important;
  color: #111 !important;
}

.hero-note {
  margin-top: 14px;
  max-width: 600px;
  color: var(--muted);
  font-size: 15px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid #e7e7e7;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stats strong {
  display: block;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-stats span {
  color: var(--muted);
  font-size: 14px;
}

.hero-authors {
  justify-self: end;
  align-self: center;
  display: grid;
  grid-template-columns: repeat(2, 240px);
  gap: 18px;
  width: 498px;
  max-width: 498px;
}

.hero-author-card {
  width: 240px;
  min-height: 210px;
  max-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 22px;
  background: #f1f1ef;
  border: 1px solid #e2e2e2;
  box-shadow: 0 14px 30px rgba(0,0,0,0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.hero-author-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0,0,0,0.08);
}

.hero-author-img {
  height: 240px;
  min-height: 240px;
  background-size: cover;
  background-position: center;
}

.hero-author-card > div:last-child {
  padding: 14px 18px 16px;
  background: #fff;
}

.hero-author-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.hero-author-card span {
  color: var(--muted);
  font-size: 14px;
}

.card-big,
.card-wide {
  min-height: 210px;
}

.card-wide {
  grid-column: auto;
}

.img-1 {
  background:
    radial-gradient(circle at 30% 30%, #ffffff 0 8%, transparent 9%),
    linear-gradient(135deg, #d8d2c8, #f4f1ec);
}

.img-2 {
  background:
    radial-gradient(circle at 65% 40%, #111 0 9%, transparent 10%),
    radial-gradient(circle at 40% 60%, #777 0 7%, transparent 8%),
    linear-gradient(135deg, #eeeeee, #d8d8d8);
}

.img-3 {
  background:
    linear-gradient(45deg, transparent 45%, rgba(0,0,0,.14) 46% 54%, transparent 55%),
    linear-gradient(135deg, #c7a77b, #ead7b8);
}

.img-4 {
  background:
    radial-gradient(circle at 22% 42%, #111 0 7%, transparent 8%),
    radial-gradient(circle at 55% 50%, #777 0 6%, transparent 7%),
    radial-gradient(circle at 78% 38%, #222 0 5%, transparent 6%),
    linear-gradient(135deg, #efefef, #d9d9d9);
}

/* =========================
   Buttons
========================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid var(--accent);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-dark {
  background: var(--accent);
  color: var(--accent-inverse);
}

.button-light {
  background: transparent;
  color: var(--accent);
}

/* =========================
   Sections
========================= */

.section {
  padding: 34px 0 64px;
}

.section-head {
  margin-bottom: 18px;
}

.section-title {
  margin: 0 0 10px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-text {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
}

/* =========================
   Authors showcase
========================= */

.authors-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.author-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.author-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.07);
}

.author-tile-link {
  display: block;
  color: inherit;
}

.author-tile-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ececec;
}

.author-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-tile-title-wrap {
  padding: 12px 14px 14px;
}

.author-tile-title {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
}

/* =========================
   Categories
========================= */

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

.category-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.06);
}

.category-card h3 {
  margin: 0 0 8px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 24px;
  line-height: 1.1;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* =========================
   Archive
========================= */

.archive-top {
  padding: 42px 0 12px;
}

.taxonomy-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.taxonomy-filter a {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
}

.taxonomy-filter a.is-active,
.taxonomy-filter a:hover {
  background: var(--accent);
  color: var(--accent-inverse);
  border-color: var(--accent);
}

/* =========================
   Master page
========================= */

.master-page {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.master-avatar-block {
  text-align: top;
}

.master-avatar {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  border-radius: 999px;
  overflow: hidden;
  background: #ececec;
  border: 1px solid var(--line);
}

.master-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.master-name {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.master-section {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.master-section-title {
  margin: 0 0 16px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.master-text,
.master-about {
  color: #2a2a2a;
  max-width: 760px;
  font-size: 17px;
}

.master-about p:first-child {
  margin-top: 0;
}

.master-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-item {
  display: block;
  border-radius: 12px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.master-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.master-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.master-socials a:hover {
  background: #111;
  color: #fff;
  transform: translateY(-1px);
}

.master-profile {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.master-hero-block,
.master-section-block {
  width: 100%;
}

.master-profile-top {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: center;
}

.master-avatar-wrap {
  display: flex;
  justify-content: center;
}

.master-avatar-placeholder {
  background: #e9e9e9;
}

.master-intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.master-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.master-tags span {
  display: inline-flex;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
}

.master-divider {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin-bottom: 20px;
}

.master-masonry {
  column-count: 3;
  column-gap: 16px;
}

.master-pin {
  display: block;
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 18px;
  overflow: hidden;
  background: #ececec;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.master-pin:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.08);
}

.master-pin img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   Lightbox
========================= */

.master-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 30px;
}

.master-lightbox.is-open {
  display: flex;
}

.master-lightbox-inner {
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.master-lightbox-inner img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
}

.master-lightbox-close,
.master-lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,0.12);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
}

.master-lightbox-close {
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  font-size: 30px;
  line-height: 1;
}

.master-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 34px;
  line-height: 1;
}

.master-lightbox-prev {
  left: 18px;
}

.master-lightbox-next {
  right: 18px;
}

body.lightbox-open {
  overflow: hidden;
}

/* =========================
   Footer
========================= */

.site-footer {
  margin-top: 20px;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

/* =========================
   Responsive
========================= */

@media (max-width: 1100px) {
  .authors-showcase,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-card-modern {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: auto;
  }

  .hero-authors {
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .header-inner {
    min-height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
    flex-wrap: wrap;
    gap: 16px;
  }

  .logo-img {
    height: 58px;
    max-width: 260px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
    flex-wrap: wrap;
    margin-left: 0;
  }

  .social-links {
    margin-left: auto;
    padding-left: 18px;
  }

  .master-profile-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .master-tags,
  .master-socials {
    justify-content: center;
  }

  .master-masonry {
    column-count: 2;
  }
}

@media (max-width: 820px) {
  .authors-showcase,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-card {
    padding: 34px 38px;
  }

  .hero-card p {
    font-size: 18px;
  }
}

@media (max-width: 620px) {
  .hero {
    padding: 36px 0 24px;
  }

  .hero-card-modern {
    padding: 28px;
  }

  .hero-lead {
    font-size: 22px !important;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-stats {
    gap: 18px;
    flex-wrap: wrap;
  }

  .hero-authors {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }

  .hero-author-card,
  .card-big,
  .card-wide {
    width: 100%;
    min-height: 200px;
    max-height: none;
  }
}

@media (max-width: 520px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .logo-img {
    height: 48px;
    max-width: 220px;
  }

  .main-nav {
    gap: 12px 18px;
  }

  .main-nav a {
    font-size: 15px;
  }

  .social-links {
    gap: 8px;
    padding-left: 12px;
  }

  .social-link {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .social-link svg {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
  }

  .authors-showcase,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 32px 0 20px;
  }

  .section {
    padding: 26px 0 42px;
  }

  .master-avatar {
    width: 140px;
    height: 140px;
  }

  .master-section-title {
    font-size: 24px;
  }

  .master-about {
    font-size: 16px;
  }

  .master-masonry {
    column-count: 1;
  }

  .master-lightbox {
    padding: 18px;
  }

  .master-lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }
}
/* === MASTER SINGLE PINTEREST STYLE === */

.master-single {
  padding: 42px 0 80px;
}

.master-back {
  display: inline-flex;
  margin-bottom: 34px;
  color: #555;
  font-size: 15px;
}

.master-back:hover {
  color: #000;
}

.master-profile-hero {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 56px;
  align-items: center;
  padding: 36px 0 48px;
  border-bottom: 1px solid var(--line);
}

.master-profile-left {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: center;
}

.master-profile-avatar {
  width: 220px;
  height: 220px;
  border-radius: 999px;
  overflow: hidden;
  background: #ececec;
  border: 1px solid var(--line);
}

.master-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.master-profile-info h1 {
  margin: 0 0 16px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.master-chip {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 9px 15px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 15px;
}

.master-location {
  color: var(--muted);
  margin-bottom: 18px;
}

.master-profile-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.master-profile-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
  transition: 0.2s ease;
}

.master-profile-socials a:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

.master-profile-meta {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-left: 42px;
  border-left: 1px solid var(--line);
}

.master-profile-meta div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.master-profile-meta strong {
  font-family: "Manrope", Arial, sans-serif;
  font-size: 28px;
  line-height: 1;
}

.master-profile-meta span {
  color: var(--muted);
  font-size: 14px;
}

.master-about-block {
  padding: 42px 0 34px;
  border-bottom: 1px solid var(--line);
}

.master-about-block h2,
.master-works-block h2 {
  margin: 0 0 18px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.master-about-text {
  max-width: 760px;
  color: #2a2a2a;
  font-size: 17px;
}

.master-about-text p:first-child {
  margin-top: 0;
}

.master-works-block {
  padding-top: 38px;
}

.master-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.master-pinterest-grid {
  column-count: 4;
  column-gap: 18px;
}

.master-pin-card {
  display: block;
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: 22px;
  overflow: hidden;
  background: #ececec;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.master-pin-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0,0,0,0.08);
}

.master-pin-card img {
  width: 100%;
  height: auto;
  display: block;
}

.master-empty {
  color: var(--muted);
}

@media (max-width: 1100px) {
  .master-pinterest-grid {
    column-count: 3;
  }
}

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

  .master-profile-meta {
    flex-direction: row;
    padding-left: 0;
    padding-top: 24px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 700px) {
  .master-profile-left {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .master-profile-avatar {
    margin: 0 auto;
    width: 180px;
    height: 180px;
  }

  .master-profile-socials {
    justify-content: center;
  }

  .master-location {
    text-align: center;
  }

  .master-pinterest-grid {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .master-single {
    padding-top: 28px;
  }

  .master-profile-info h1 {
    font-size: 42px;
  }

  .master-pinterest-grid {
    column-count: 1;
  }

  .master-profile-meta {
    flex-wrap: wrap;
  }
}
/* === MASTER PROFILE VISUAL POLISH === */

.master-single {
  padding: 34px 0 80px;
}

.master-back {
  margin-bottom: 26px;
  font-size: 15px;
  color: #555;
}

.master-profile-hero {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 48px;
  align-items: center;
  padding: 36px 0 52px;
  border-bottom: 1px solid var(--line);
}

.master-profile-left {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.master-profile-avatar {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  box-shadow: 0 18px 42px rgba(0,0,0,0.08);
}

.master-profile-info h1 {
  max-width: 620px;
  margin: 0 0 18px;
  font-size: clamp(46px, 5vw, 76px);
  line-height: 0.94;
  letter-spacing: -0.06em;
  word-break: normal;
  overflow-wrap: normal;
}

.master-chip {
  margin-bottom: 18px;
  padding: 10px 18px;
  font-size: 15px;
}

.master-location {
  font-size: 16px;
}

.master-profile-meta {
  padding-left: 40px;
  gap: 28px;
}

.master-profile-meta strong {
  font-size: 30px;
}

.master-about-block {
  padding: 44px 0 38px;
}

.master-about-block h2,
.master-works-block h2 {
  font-size: 30px;
}

.master-about-text {
  max-width: 820px;
  font-size: 18px;
  line-height: 1.75;
}

.master-works-block {
  padding-top: 42px;
}

.master-pinterest-grid {
  column-count: 4;
  column-gap: 20px;
}

.master-pin-card {
  margin-bottom: 20px;
  border-radius: 24px;
}

@media (max-width: 900px) {
  .master-profile-hero {
    grid-template-columns: 1fr;
  }

  .master-profile-left {
    grid-template-columns: 180px 1fr;
    gap: 28px;
  }

  .master-profile-avatar {
    width: 180px;
    height: 180px;
  }

.master-profile-info h1 {
    margin: 0 0 18px;

    font-family: "Inter", sans-serif;
    font-size: clamp(38px, 4vw, 58px);

    font-weight: 400;

    line-height: 1.02;

    letter-spacing: -0.035em;

    color: #111;

    max-width: 620px;
}
}  .master-profile-info h1 {
    font-size: clamp(42px, 8vw, 62px);
  }
}

@media (max-width: 620px) {
  .master-profile-left {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .master-profile-meta {
    justify-content: center;
  }
}
.master-lightbox{

position:fixed;

inset:0;

display:none;

align-items:center;

justify-content:center;

background:rgba(0,0,0,.9);

z-index:99999;

}

.master-lightbox.active{

display:flex;

}

.master-lightbox img{

max-width:90vw;

max-height:90vh;

border-radius:18px;

box-shadow:0 30px 80px rgba(0,0,0,.45);

}

.lb-close{

position:absolute;

top:30px;

right:35px;

width:48px;

height:48px;

border:0;

border-radius:50%;

background:#fff;

cursor:pointer;

font-size:28px;

}

.lb-prev,
.lb-next{

position:absolute;

top:50%;

transform:translateY(-50%);

width:54px;

height:54px;

border:0;

border-radius:50%;

background:#fff;

cursor:pointer;

font-size:34px;

}

.lb-prev{

left:35px;

}

.lb-next{

right:35px;

}

body.lb-open{

overflow:hidden;

}
/* =========================================================
   MOBILE UX UPDATE
   Вставить в самый низ style.css
========================================================= */

/* Header desktop structure */
.header-menu {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

.mobile-menu-toggle {
  display: none;
}

/* Better hero images */
.hero-author-img img,
.hero-author-placeholder,
.author-tile-placeholder {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.75) 0 9%, transparent 10%),
    linear-gradient(135deg, #dedbd3, #f5f2ec);
}

.author-tile-category {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

/* Profile polish */
.master-profile-info h1 {
  font-family: "Inter", Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.master-profile-avatar {
  width: 165px;
  height: 165px;
}

.master-profile-left {
  grid-template-columns: 165px minmax(0, 1fr);
  gap: 34px;
}

.master-profile-meta {
  padding-left: 32px;
}

/* Lightbox mobile-friendly */
.master-lightbox.active {
  display: flex;
}

.lb-close,
.lb-prev,
.lb-next {
  z-index: 2;
}

/* Tablet */
@media (max-width: 900px) {
  body.mobile-menu-open {
    overflow: hidden;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    min-height: 74px;
    padding-top: 10px;
    padding-bottom: 10px;
    flex-wrap: nowrap;
  }

  .logo-img {
    height: 52px;
    max-width: 220px;
  }

  .mobile-menu-toggle {
    width: 46px;
    height: 46px;
    margin-left: auto;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #dedede;
    border-radius: 999px;
    background: #fff;
    color: #111;
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    width: 18px;
    height: 2px;
    display: block;
    background: currentColor;
    border-radius: 999px;
    transition: transform .2s ease, opacity .2s ease;
  }

  body.mobile-menu-open .mobile-menu-toggle span:first-child {
    transform: translateY(4.5px) rotate(45deg);
  }

  body.mobile-menu-open .mobile-menu-toggle span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  .header-menu {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 86px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0,0,0,.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease;
  }

  body.mobile-menu-open .header-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav {
    width: 100%;
    order: initial;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav a {
    width: 100%;
    padding: 15px 4px;
    border-bottom: 1px solid #eeeeee;
    font-size: 18px;
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .social-links {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    justify-content: flex-start;
  }

  /* Mobile hero */
  .hero {
    padding: 24px 0 18px;
  }

  .hero-card,
  .hero-card-modern {
    padding: 28px;
    border-radius: 24px;
  }

  .hero-card-modern {
    display: block;
    min-height: auto;
  }

  .hero-card h1 {
    font-size: clamp(42px, 12vw, 64px);
    line-height: .94;
  }

  .hero-lead {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }

  .hero-note {
    font-size: 15px;
  }

  .hero-authors {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 24px;
    padding-top: 18px;
  }

  .hero-stats strong {
    font-size: 24px;
  }

  .hero-stats span {
    font-size: 12px;
  }

  /* Sections */
  .section {
    padding: 28px 0 44px;
  }

  .section-title {
    font-size: clamp(30px, 9vw, 42px);
  }

  .section-text {
    font-size: 16px;
  }

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

  .category-card {
    padding: 20px;
    border-radius: 18px;
  }

  .category-card h3 {
    font-size: 22px;
  }

  .authors-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .author-tile {
    border-radius: 16px;
  }

  .author-tile-title-wrap {
    padding: 10px 12px 12px;
  }

  .author-tile-title {
    font-size: 15px;
  }

  /* Master single */
  .master-single {
    padding: 24px 0 56px;
  }

  .master-back {
    margin-bottom: 18px;
  }

  .master-profile-hero {
    display: block;
    padding: 22px 0 34px;
  }

  .master-profile-left {
    display: block;
    text-align: center;
  }

  .master-profile-avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto 22px;
  }

  .master-profile-info h1 {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
  }

  .master-chip {
    margin-bottom: 10px;
  }

  .master-location {
    margin-bottom: 14px;
  }

  .master-profile-socials {
    justify-content: center;
  }

  .master-profile-meta {
    margin-top: 24px;
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: center;
    gap: 34px;
  }

  .master-profile-meta strong {
    font-size: 24px;
  }

  .master-about-block {
    padding: 30px 0;
  }

  .master-about-block h2,
  .master-works-block h2 {
    font-size: 26px;
  }

  .master-about-text {
    font-size: 16px;
    line-height: 1.75;
  }

  .master-pinterest-grid {
    column-count: 2;
    column-gap: 12px;
  }

  .master-pin-card {
    margin-bottom: 12px;
    border-radius: 18px;
  }

  .lb-close {
    top: 16px;
    right: 16px;
  }

  .lb-prev,
  .lb-next {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }

  .lb-prev {
    left: 12px;
  }

  .lb-next {
    right: 12px;
  }

  .master-lightbox img,
  .lb-image {
    max-width: 92vw;
    max-height: 82vh;
    border-radius: 14px;
  }
}

/* Small phones */
@media (max-width: 520px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-inner {
    min-height: 68px;
  }

  .logo-img {
    height: 44px;
    max-width: 190px;
  }

  .header-menu {
    top: 78px;
    left: 12px;
    right: 12px;
    border-radius: 20px;
  }

  .hero-card,
  .hero-card-modern {
    padding: 24px;
  }

  .hero-card h1 {
    font-size: 44px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }

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

  .master-pinterest-grid {
    column-count: 1;
  }
}
/* =========================================================
   For Authors Page
   Вставить в самый низ style.css
========================================================= */

.author-apply-page {
  padding-bottom: 70px;
}

.author-apply-hero {
  padding: 56px 0 28px;
}

.author-apply-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 56px;
}

.author-apply-hero-card h1 {
  margin: 0 0 18px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .95;
  letter-spacing: -0.05em;
}

.author-apply-hero-card p {
  max-width: 720px;
  margin: 0;
  color: #2a2a2a;
  font-size: 22px;
  line-height: 1.45;
}

.author-apply-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.author-apply-note {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: 22px;
  background: #f5f5f3;
  border: 1px solid var(--line);
}

.author-apply-note strong {
  font-family: "Manrope", Arial, sans-serif;
  font-size: 22px;
  line-height: 1.1;
}

.author-apply-note span {
  color: var(--muted);
  font-size: 15px;
}

.author-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.author-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.author-step span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 700;
}

.author-step h3 {
  margin: 0 0 8px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 24px;
  line-height: 1.1;
}

.author-step p {
  margin: 0;
  color: var(--muted);
}

.author-benefits {
  margin-top: 42px;
}

.author-benefits h2,
.author-form-text h2 {
  margin: 0 0 18px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.author-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.author-benefits-grid div {
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.author-benefits-grid div::before {
  content: "✓";
  margin-right: 8px;
  font-weight: 700;
}

.author-form-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.author-form-text {
  position: sticky;
  top: 130px;
}

.author-form-text p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.form-message {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 16px;
  font-size: 15px;
}

.form-success {
  background: #eef8ef;
  border: 1px solid #cfe9d1;
}

.form-error {
  background: #fff1f1;
  border: 1px solid #f0caca;
}

.author-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.author-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.author-form label.full {
  grid-column: 1 / -1;
}

.author-form span {
  color: #333;
  font-size: 15px;
  font-weight: 600;
}

.author-form input,
.author-form textarea {
  width: 100%;
  border: 1px solid #dddddd;
  border-radius: 14px;
  background: #f9f9f8;
  padding: 14px 15px;
  font: inherit;
  color: #111;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}

.author-form input:focus,
.author-form textarea:focus {
  border-color: #111;
  background: #fff;
}

.author-form textarea {
  resize: vertical;
}

.author-form small {
  color: var(--muted);
  font-size: 13px;
}

.author-consent {
  flex-direction: row !important;
  align-items: flex-start;
}

.author-consent input {
  width: auto;
  margin-top: 6px;
}

.author-consent span {
  font-weight: 400;
  color: var(--muted);
}

.author-form button {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .author-apply-hero {
    padding: 28px 0 18px;
  }

  .author-apply-hero-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px;
    border-radius: 24px;
  }

  .author-apply-hero-card h1 {
    font-size: clamp(42px, 12vw, 62px);
  }

  .author-apply-hero-card p {
    font-size: 18px;
  }

  .author-steps,
  .author-benefits-grid {
    grid-template-columns: 1fr;
  }

  .author-form-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .author-form-text {
    position: static;
  }

  .author-form {
    grid-template-columns: 1fr;
    padding: 22px;
    border-radius: 22px;
  }

  .author-apply-actions {
    flex-direction: column;
  }
}
.master-profile-socials {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #f2f2f2;
    color: #333;
    transition: 0.2s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
}

.social-icon.vk:hover {
    background: #2787f5;
    color: #fff;
}

.social-icon.tg:hover {
    background: #229ed9;
    color: #fff;
}
.hero-author-card {
  width: 300px;
  min-height: 320px;
  max-height: 320px;
}