:root {
  --primary: #9d0b16;
  --primary-dark: #6f0710;
  --ink: #161616;
  --muted: #676767;
  --line: #e6e0dc;
  --paper: #fffaf5;
  --white: #ffffff;
  --soft: #f6eee7;
  --gold: #d8a23a;
  --shadow: 0 16px 40px rgba(35, 24, 18, 0.11);
  --radius: 18px;
  --font-title: Georgia, "Times New Roman", serif;
  --font-body: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img {
  width: 100%;
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 245, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.top-strip {
  background: var(--ink);
  color: var(--white);
  font-size: 0.88rem;
}

.top-strip__content {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-row {
  padding: 22px 0;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 450px) auto;
  gap: 22px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 58px;
  height: 58px;
}

.brand strong {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
  color: var(--primary);
  letter-spacing: -1px;
}

.brand span {
  color: var(--muted);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.search {
  display: flex;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
}

.search input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 13px 16px;
  min-width: 0;
}

.search button,
.contact-form button,
.subscribe-widget button,
.ad-banner a,
.ad-box a {
  border: 0;
  background: var(--primary);
  color: var(--white);
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.search button:hover,
.contact-form button:hover,
.subscribe-widget button:hover,
.ad-banner a:hover,
.ad-box a:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(157, 11, 22, 0.18);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--primary);
  font-size: 1.5rem;
}

.main-nav {
  border-top: 1px solid var(--line);
  border-bottom: 3px solid var(--primary);
  background: var(--white);
}

.nav-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.main-nav a {
  padding: 14px 17px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--gold);
}

.breaking-news {
  background: var(--primary);
  color: var(--white);
}

.breaking-news__grid {
  min-height: 48px;
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 18px;
}

.breaking-news strong {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.ticker {
  overflow: hidden;
  display: flex;
  gap: 40px;
  white-space: nowrap;
}

.ticker span {
  animation: tickerMove 20s linear infinite;
}

@keyframes tickerMove {
  from { transform: translateX(110%); }
  to { transform: translateX(-220%); }
}

.ad-banner {
  margin-block: 28px;
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff 0%, #f8dfc2 52%, #efc16e 100%);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  border: 1px solid rgba(216, 162, 58, 0.35);
}

.ad-banner span,
.ad-box span {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.ad-banner h2,
.ad-banner p {
  margin: 0;
}

.ad-banner h2 {
  font-family: var(--font-title);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.ad-banner a,
.ad-box a {
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  white-space: nowrap;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 24px;
  margin-bottom: 42px;
}

.headline-card,
.mini-card,
.news-card,
.widget,
.opinion-grid article,
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(35, 24, 18, 0.06);
}

.featured {
  position: relative;
}

.featured img {
  height: 430px;
  object-fit: cover;
}

.headline-card__content {
  padding: 28px;
}

.tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  background: rgba(157, 11, 22, 0.1);
  color: var(--primary);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.headline-card h1,
.section-heading h2,
.contact-copy h2,
.widget h2,
.opinion-grid h3,
.news-card h3,
.mini-card h3 {
  font-family: var(--font-title);
  line-height: 1.12;
}

.headline-card h1 {
  margin: 12px 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
}

.headline-card p {
  color: var(--muted);
  font-size: 1.05rem;
}

.headline-card a {
  display: inline-flex;
  color: var(--primary);
  font-weight: 800;
  border-bottom: 2px solid var(--gold);
}

.side-column {
  display: grid;
  gap: 16px;
}

.mini-card {
  display: grid;
  grid-template-columns: 142px 1fr;
  gap: 14px;
  align-items: center;
}

.mini-card img {
  height: 132px;
  object-fit: cover;
}

.mini-card div {
  padding: 12px 16px 12px 0;
}

.mini-card h3 {
  margin: 8px 0 0;
  font-size: 1.18rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 28px;
  align-items: start;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--ink);
  color: var(--white);
}

.news-list {
  display: grid;
  gap: 18px;
}

.news-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  padding: 16px;
}

.news-card img {
  height: 150px;
  object-fit: cover;
  border-radius: 14px;
}

.news-card h3 {
  margin: 8px 0;
  font-size: 1.55rem;
}

.news-card p {
  margin: 0 0 8px;
  color: var(--muted);
}

.news-card small {
  color: var(--muted);
  font-weight: 700;
}

.sidebar {
  position: sticky;
  top: 170px;
  display: grid;
  gap: 18px;
}

.widget {
  padding: 22px;
}

.widget h2 {
  margin: 0 0 10px;
  font-size: 1.7rem;
}

.subscribe-widget p,
.trends-widget a,
.ad-box p {
  color: var(--muted);
}

.subscribe-widget form {
  display: grid;
  gap: 10px;
}

.subscribe-widget input,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  outline: none;
  background: var(--white);
}

.subscribe-widget input:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(157, 11, 22, 0.1);
}

.subscribe-widget button {
  border-radius: 12px;
}

.trends-widget ol {
  margin: 0;
  padding-left: 22px;
}

.trends-widget li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.trends-widget li:last-child {
  border-bottom: 0;
}

.trends-widget a:hover {
  color: var(--primary);
}

.ad-box {
  background: linear-gradient(160deg, var(--ink), #3a1518);
  color: var(--white);
}

.ad-box p {
  color: rgba(255, 255, 255, 0.74);
}

.ad-box a {
  margin-top: 8px;
}

.opinion-section {
  margin-top: 50px;
  margin-bottom: 54px;
}

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

.opinion-grid article {
  padding: 22px;
}

.opinion-grid h3 {
  font-size: 1.5rem;
  margin: 12px 0;
}

.opinion-grid p {
  color: var(--muted);
}

.contact-section {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 58px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: center;
}

.contact-copy h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 12px 0;
}

.contact-copy p,
.contact-copy li {
  color: var(--muted);
}

.contact-copy ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}

.contact-form {
  padding: 26px;
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-row label {
  font-weight: 800;
}

.contact-form button {
  border-radius: 12px;
  width: fit-content;
}

.error {
  min-height: 18px;
  color: var(--primary);
  font-weight: 700;
}

.form-row.invalid input,
.form-row.invalid select,
.form-row.invalid textarea {
  border-color: var(--primary);
}

.form-message {
  margin: 0;
  font-weight: 800;
}

.form-message.success {
  color: #167a3d;
}

.form-message.danger {
  color: var(--primary);
}

.site-footer {
  background: #151313;
  color: var(--white);
  padding: 42px 0 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 26px;
}

.brand--footer strong {
  color: var(--white);
  font-size: 2rem;
}

.site-footer p,
.site-footer a,
.site-footer small,
.brand--footer span {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer h3 {
  margin-top: 0;
  color: var(--gold);
}

.site-footer a {
  display: block;
  margin: 8px 0;
}

.site-footer a:hover {
  color: var(--white);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 28px;
  padding-top: 16px;
}

.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-weight: 900;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 0.2s ease;
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

@media (max-width: 960px) {
  .brand-row,
  .hero-layout,
  .content-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .search {
    order: 3;
    grid-column: 1 / -1;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    justify-self: end;
  }

  .main-nav {
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .nav-scroll {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
  }

  .main-nav a {
    padding: 12px 0;
  }

  .sidebar {
    position: static;
  }

  .opinion-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .top-strip__content,
  .ad-banner,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-strip__right {
    display: none;
  }

  .brand strong {
    font-size: 1.7rem;
  }

  .brand span {
    font-size: 0.72rem;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .breaking-news__grid {
    grid-template-columns: 1fr;
    padding: 10px 0;
    gap: 4px;
  }

  .featured img {
    height: 260px;
  }

  .mini-card,
  .news-card {
    grid-template-columns: 1fr;
  }

  .mini-card div,
  .news-card {
    padding: 16px;
  }

  .mini-card img,
  .news-card img {
    height: 190px;
  }

  .contact-form button {
    width: 100%;
  }
}
