:root {
  --color-bg: #ffffff;
  --color-text: #000000;
  --color-muted: #737378;
  --color-accent: #fe68b9;
  --color-grey-50: #f6f6f6;
  --color-grey-400: #888888;
  --color-black-950: #141414;
  --radius-lg: 20px;
  --radius-md: 10px;
  --shadow-card: 4px 4px 8px 0 rgba(0, 0, 0, 0.1);
  --shadow-modal: 0 0 12px 0 rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
}

.container {
  width: 100%;
  max-width: 1356px;
  margin: 0 auto;
  padding: 0 24px;
}

body.modal-open { position: fixed; width: 100%; left: 0; right: 0; }


.site-header { background: var(--color-bg); }
.brand-block { display: flex; justify-content: center; padding: 32px 0 8px; }
.brand-logo { text-decoration: none; user-select: none; display: inline-block; }
.brand-logo-img { display: block; height: 120px; width: auto; }
.site-nav { padding: 24px; }
.site-nav .nav-list {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 22px;
  justify-content: center;
}
.site-nav li { white-space: nowrap; padding: 0; position: relative; }
.site-nav .nav-list a { display: block; padding: 0 24px; text-decoration: none; color: inherit; }
.site-nav li + li { border-left: 2px solid rgba(20,20,20,.8); }
.site-nav li.active a { font-weight: 800; }


.hero { padding: 40px 0 8px; }
.hero .container { padding-left: 0; padding-right: 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  align-items: stretch;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #e9e9e9;
}
.hero-media {
  width: 100%;
  height: 100%;
  min-height: 360px;
  background: #e6e6e6 center/cover no-repeat;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
.hero-content { display: flex; flex-direction: column; gap: 12px; }
.hero-card { background: transparent; border-radius: 0; padding: 24px; box-shadow: none; height: 100%; }
.hero-toolbar { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; }
.hero-author { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: #ddd center/cover no-repeat;
}
.author-name {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.author-stats {
  color: var(--color-muted);
  font-size: 14px;
}
.hero-title {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 6vw, 96px);
  line-height: 0.9;
  margin: 4px 0;
}
.hero-subtitle { font-size: 18px; color: #111; margin-top: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font: 400 16px/1 "Roboto", sans-serif;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { filter: brightness(0.95); }


.hot-strip { background: var(--color-black-950); color: #fff; }
.hot-strip-inner {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 18px;
}


.news-grid-section { padding: 24px 0 64px; }
.section-title {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 800;
  font-size: 30px;
  margin: 12px 0 16px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.news-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  overflow: hidden;
  cursor: pointer;
}
.news-card:hover { transform: translateY(-2px); }
.news-card:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.news-image { position: relative; width: 100%; padding-top: 62%; background: #ccc center/cover no-repeat; }
.news-body { padding: 16px 18px 16px; display: grid; gap: 12px; }
.news-author-row { display: flex; align-items: center; gap: 12px; }
.news-author-row .avatar { width: 44px; height: 44px; }
.author-block { display: flex; flex-direction: column; }
.news-author-name { font-weight: 700; font-size: 18px; }
.news-author-stats { font-size: 16px; color: var(--color-muted); }
.news-author { display: none; }
.news-title { font-family: "Roboto Condensed"; font-weight: 800; font-size: 34px; line-height: 1.02; }
.news-excerpt { font-size: 18px; color: #6b6b6f; line-height: 1.25; overflow: hidden; }
.news-footer { margin-top: 6px; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 9999px; padding: 8px 12px; box-shadow: 0 8px 20px rgba(0,0,0,.08); width: fit-content; }
.news-footer .avatar { width: 28px; height: 28px; }
.news-footer .meta { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.news-footer .name { font-size: 13px; font-weight: 700; }
.news-footer .name::after { content: "•"; color: var(--color-muted); margin-left: 8px; }
.news-footer .stats { font-size: 13px; color: var(--color-muted); }


.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1; }
.modal-card {
  position: fixed;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(920px, calc(100% - 24px));
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-modal);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  z-index: 2;
}
.modal-close {
  position: absolute; right: 12px;
  display: grid; place-items: center;
  border: none; 
  background: #fff; 
  cursor: pointer;
  font-size: 26px; line-height: 1;
  box-shadow: none;
  z-index: 2;
}
.modal-header { padding: 24px 24px 0; }
.modal-image { width: 100%; height: 380px; background: #ccc center/cover no-repeat; }
.modal-content { padding: 0; display: flex; flex-direction: column; height: 100%; min-height: 0; }
.modal-title { font-family: "Roboto Condensed"; font-weight: 800; font-size: 44px; line-height: 1; margin: 8px 0 6px; }
.modal-author { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.modal-body { font-size: 16px; line-height: 1.25; color: var(--color-black-950); white-space: pre-line; margin-top: 16px; padding: 0 24px 24px; flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }


@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .site-nav .nav-list {
    gap: 0;
    font-size: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding: 0 12px;
    justify-content: flex-start;
  }
  .site-nav .nav-list a { padding: 0 14px; }
  .site-nav li { padding: 0; flex: 0 0 auto; }
  .site-nav li + li { border-left: 1px solid rgba(20,20,20,.7); }
  .site-nav li.active { border-bottom: 3px solid #141414; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal-image { height: 240px; }
  .modal-card { max-height: calc(100vh - 24px); display: flex; flex-direction: column; }
  .modal-content { display: flex; flex-direction: column; height: 100%; }
  .modal-body { flex: 1; overflow-y: auto; }
}
@media (max-width: 520px) {
  .news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .brand-block { padding: 16px 0 4px; }
  .brand-logo-img { height: 72px; }
  .hot-strip-inner {
    height: auto;
    padding: 8px 12px;
    text-align: center;
    font-size: 14px;
    line-height: 1.2;
  }
  .hero { padding: 8px 0; }
  .hero .container { padding-left: 0; padding-right: 0; }
  .hero-card { padding: 16px; }
  .hero-title { font-size: 36px; line-height: 1.02; }
  .hero-subtitle { font-size: 16px; }
  .modal-card { width: calc(100% - 12px); border-radius: 16px; top: max(12px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); max-height: 80vh; }
  .modal-header { padding: 12px 12px 0; }
  .modal-image { height: 150px; }
  .modal-body { padding: 0 12px max(12px, env(safe-area-inset-bottom)); }
  .modal-title { font-size: 24px; margin: 6px 0 4px; }
  .modal-close { top: -8px; right: 8px; width: 36px; height: 36px; font-size: 22px; }
  .modal-card { max-height: 80vh; }
}


.site-nav li:hover { text-decoration: underline; }
.hero-media { cursor: pointer; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
