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

:root {
  --bg-body: #f3f3ee;
  --bg-page: #fdfdf9;
  --bg-panel: #ffffff;
  --border-soft: #d4d4c4;
  --border-strong: #1f2937;
  --accent-main: #3b7c3a;
  --accent-soft: #e1f0e0;
  --accent-line: #f29f05;
  --text-main: #111827;
  --text-muted: #4b5563;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.7;
}

/* Utility */
a {
  color: var(--accent-main);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Layout: fixed vertical accent bar on the left */
.page-frame {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
}

.page-accent {
  background: repeating-linear-gradient(
    180deg,
    var(--border-strong),
    var(--border-strong) 8px,
    var(--accent-line) 8px,
    var(--accent-line) 12px
  );
}

/* Header */
.site-header {
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-soft);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0.2rem 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--border-strong);
  background: #fefdf5;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.brand-tagline {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.header-meta {
  text-align: right;
  font-size: 0.78rem;
}

.header-meta span {
  display: block;
  color: var(--text-muted);
}

.header-meta a {
  color: var(--text-main);
  font-weight: 600;
}

/* Nav */
.main-nav {
  border-top: 1px solid var(--border-soft);
  margin-top: 0.4rem;
  padding: 0.45rem 0 0.2rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

.main-nav a {
  position: relative;
  padding-bottom: 0.1rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-main);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent-main);
  transition: width 0.18s ease-out;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Main wrapper */
main {
  background: var(--bg-page);
  min-height: calc(100vh - 62px);
}

.main-inner {
  padding: 1.6rem 0 2.4rem;
}

/* Hero */
.hero {
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: #f8f8f1;
  padding: 1.6rem 1.6rem 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 3.1fr) minmax(0, 2.4fr);
  gap: 1.6rem;
  margin-bottom: 2.2rem;
}

/* прибираємо напис у правому верхньому куті */
.hero::before {
  content: none;
}

.hero-left-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.1rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--accent-soft);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.8rem;
}

.hero-left-label span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-main);
}

.hero h1 {
  font-size: 1.7rem;
  line-height: 1.25;
  margin-bottom: 0.55rem;
  max-width: 32rem;
}

.hero p {
  margin-bottom: 0.45rem;
  color: var(--text-muted);
  max-width: 34rem;
  font-size: 0.95rem;
}

.hero-highlight {
  font-weight: 500;
  color: var(--text-main);
}

.hero-meta-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.75rem;
}

.hero-meta-item {
  border-top: 1px solid var(--border-soft);
  padding-top: 0.4rem;
  font-size: 0.8rem;
}

.hero-meta-item span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Hero right */
.hero-right {
  display: grid;
  grid-template-rows: auto auto;
  gap: 0.7rem;
}

.hero-visual-bar {
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  padding: 0.45rem 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  background: #fbfbf6;
}

.hero-visual-bar small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-dots {
  display: flex;
  gap: 0.3rem;
}

.hero-dots span {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
}

.hero-dots span:nth-child(1) {
  background: #fef3c7;
}
.hero-dots span:nth-child(2) {
  background: #bbf7d0;
}
.hero-dots span:nth-child(3) {
  background: #bfdbfe;
}

.hero-form {
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  padding: 0.85rem 1rem;
  background: #ffffff;
  display: grid;
  gap: 0.55rem;
}

.hero-form h2 {
  font-size: 0.98rem;
  margin-bottom: 0.05rem;
}

.hero-form p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.hero-form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.hero-form label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-form input,
.hero-form textarea,
.hero-form select {
  margin-top: 0.16rem;
  padding: 0.45rem 0.6rem;
  border-radius: 7px;
  border: 1px solid var(--border-soft);
  background: #f9fafb;
  font: inherit;
  color: var(--text-main);
  font-size: 0.9rem;
}

.hero-form textarea {
  min-height: 60px;
  resize: vertical;
}

.hero-form button {
  margin-top: 0.35rem;
  justify-self: flex-start;
}

/* Sections */
.section {
  margin-bottom: 2.3rem;
}

.section-header-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.section-header-label::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent-main);
}

.section h1 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.section h2 {
  font-size: 1.25rem;
  margin: 0.8rem 0 0.55rem;
}

.section h3 {
  font-size: 1rem;
  margin: 0.7rem 0 0.4rem;
}

.section p {
  margin-bottom: 0.55rem;
  color: var(--text-muted);
}

.section strong {
  color: var(--text-main);
}

/* Cards */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.card {
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  padding: 0.85rem 0.95rem;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--border-soft);
}

.card-accent::before {
  background: var(--accent-main);
}

.card h3 {
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.88rem;
}

/* Content layout */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 3.1fr) minmax(0, 2.2fr);
  gap: 1.6rem;
}

.content-layout aside {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.content-layout img {
  width: 100%;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
}

/* Lists */
ul,
ol {
  margin-left: 1.3rem;
  margin-bottom: 0.7rem;
}

li {
  margin-bottom: 0.25rem;
}

/* Generic form + button */
form {
  display: grid;
  gap: 0.7rem;
}

label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

input,
textarea,
select {
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: #f9fafb;
  font: inherit;
  color: var(--text-main);
}

textarea {
  resize: vertical;
}

button {
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: #111827;
  color: #f9fafb;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  cursor: pointer;
}

button:hover {
  background: var(--accent-main);
  border-color: var(--accent-main);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-soft);
  background: #111827;
  color: #e5e7eb;
  padding: 1.5rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: space-between;
  font-size: 0.8rem;
}

.footer-inner a {
  color: #c4f1f9;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 10px;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: #111827;
  color: #e5e7eb;
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  border-top: 1px solid #4b5563;
}

.cookie-banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-banner p {
  margin: 0;
  color: #e5e7eb;
}

.cookie-banner a {
  color: #c4f1f9;
  text-decoration: underline;
}

.cookie-banner button {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 0.4rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  background: #e5e7eb;
  color: #111827;
  font-size: 0.78rem;
}

.cookie-banner button:hover {
  background: #d1d5db;
}

/* Responsive */
@media (max-width: 960px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-meta {
    text-align: left;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-meta-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-form-row-2 {
    grid-template-columns: 1fr;
  }
  .content-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 0 1rem;
  }
  .hero-meta-list {
    grid-template-columns: 1fr;
  }
  .cookie-banner-inner {
    align-items: flex-start;
  }
}
.hero-left,
.hero-right {
  min-width: 0;
}
.hero-form input,
.hero-form textarea,
.hero-form select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
