/* === VARIABLES & RESET === */
:root {
  --coffee: #2c2c2c;
  --sand: #f5f1ea;
  --white: #ffffff;
  --terra: #c15b36;
  --terra-hover: #a54826;
  --text-main: #1a1a1a;
  --text-muted: #666;
  --line: #e0e0e0;
  --font-serif: "Cinzel", serif;
  --font-sans: "Lato", sans-serif;
  --container: 1140px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--font-sans);
  background-color: var(--sand);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
img {
  max-width: 100%;
  display: block;
}
ul {
  list-style: none;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--coffee);
  line-height: 1.2;
}
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 25px;
  letter-spacing: -1px;
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 600;
}
p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.italic-accent {
  font-style: italic;
  color: var(--terra);
  font-family: var(--font-serif);
}
.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 40px;
}
.center {
  text-align: center;
  margin: 0 auto 60px;
  max-width: 800px;
}

/* === BUTTONS === */
.btn-terra {
  display: inline-block;
  padding: 15px 35px;
  background: var(--terra);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}
.btn-terra:hover {
  background: var(--terra-hover);
}

.btn-line {
  padding: 10px 25px;
  border: 1px solid var(--coffee);
  color: var(--coffee);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  transition: 0.3s;
}
.btn-line:hover {
  background: var(--coffee);
  color: var(--white);
}

.link-u {
  text-decoration: underline;
  color: var(--coffee);
  font-weight: 700;
}
.read-btn {
  display: inline-block;
  margin-top: 15px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--terra);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.full {
  width: 100%;
  text-align: center;
}

/* === LAYOUT === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: 100px 0;
}
.bg-coffee {
  background: var(--coffee);
  color: #dcdcdc;
}
.bg-coffee h2 {
  color: var(--white);
}
.bg-sand {
  background: #ebe6de;
}

/* === HEADER === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(245, 241, 234, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 20px 0;
  backdrop-filter: blur(5px);
}
.h-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-type {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.desk-menu {
  display: flex;
  gap: 30px;
}
.desk-menu a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400;
  color: var(--coffee);
}
.desk-menu a.active,
.desk-menu a:hover {
  color: var(--terra);
  text-decoration: line-through;
}

.h-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}
.burger {
  display: none;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}
.line {
  width: 100%;
  height: 2px;
  background: var(--coffee);
  position: absolute;
  left: 0;
  transition: 0.3s;
}
.l1 {
  top: 0;
}
.l2 {
  bottom: 0;
}
.burger:hover .l1 {
  top: 5px;
}
.burger:hover .l2 {
  bottom: 5px;
}

/* === MOBILE MENU === */
.mob-curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--sand);
  z-index: 2000;
  padding: 30px;
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
.mob-curtain.open {
  transform: translateY(0);
}
.mc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}
.mc-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
}
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
}
.mc-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  margin-bottom: 60px;
}
.mc-nav a {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--coffee);
}
.mc-footer {
  text-align: center;
}

/* === HERO === */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.issue-date {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--terra);
}
.hero-divider {
  width: 50px;
  height: 2px;
  background: var(--coffee);
  margin-bottom: 30px;
}
.hero-btns {
  display: flex;
  gap: 30px;
  align-items: center;
}
.hero-img {
  position: relative;
}
.hero-img img {
  width: 100%;
  height: auto;
  display: block;
  filter: sepia(20%);
}
.img-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--white);
  padding: 15px 30px;
  border: 1px solid var(--coffee);
  font-family: var(--font-serif);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}

/* === JOURNAL GRID === */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.j-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}
.j-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}
.j-card.span-2 {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.jc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jc-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
.jc-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  margin-bottom: 10px;
}

/* === TECH === */
.split-layout {
  display: flex;
  gap: 80px;
  align-items: center;
  flex-direction: column;
}
.sl-txt {
  flex: 1;
}
.sl-stat {
  width: 300px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 40px;
}
.tech-list {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.tech-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 5px;
}
.stat-number {
  margin-bottom: 40px;
}
.stat-number .num {
  display: block;
  font-size: 3rem;
  font-family: var(--font-serif);
  color: var(--terra);
}
.stat-number .lbl {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
}

/* === PHILOSOPHY === */
.quote-block {
  text-align: center;
  margin-bottom: 80px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
blockquote {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--coffee);
  margin-bottom: 20px;
  line-height: 1.3;
}
cite {
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  color: var(--terra);
}

.features-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  border-top: 1px solid #dcdcdc;
  padding-top: 60px;
}
.feat-item i {
  color: var(--coffee);
  width: 30px;
  height: 30px;
  margin-bottom: 20px;
}
.feat-item h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === FAQ === */
.narrow {
  max-width: 800px;
  margin: 0 auto;
}
.accordion {
  border-top: 1px solid var(--coffee);
}
.acc-row {
  border-bottom: 1px solid var(--coffee);
}
.acc-btn {
  width: 100%;
  padding: 25px 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--coffee);
  text-align: left;
}
.plus {
  font-size: 1.5rem;
  transition: 0.3s;
}
.acc-row.active .plus {
  transform: rotate(45deg);
  color: var(--terra);
}
.acc-content {
  max-height: 0;
  overflow: hidden;
  transition: 0.4s ease;
}
.acc-content p {
  padding-bottom: 25px;
  margin: 0;
  color: #555;
}
.acc-row.active .acc-content {
  max-height: 200px;
}

/* === CONTACT FORM === */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
}
.cl-txt h2 {
  margin-bottom: 30px;
}
.contacts-grid {
  margin: 40px 0;
}
.cg-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #dcdcdc;
  padding: 15px 0;
}
.cg-item .lbl {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: #999;
}
.cg-item .val {
  font-weight: 700;
  color: var(--coffee);
}
.note {
  font-size: 0.8rem;
  font-style: italic;
  opacity: 0.7;
}

.atelier-form {
  background: var(--white);
  padding: 50px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.inp-row {
  margin-bottom: 25px;
}
.inp-row label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-serif);
  font-size: 0.9rem;
}
.inp-row input {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid #ccc;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  transition: 0.3s;
}
.inp-row input:focus {
  outline: none;
  border-bottom-color: var(--terra);
}
.chk-row {
  margin-bottom: 30px;
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
}
.chk-row a {
  text-decoration: underline;
  color: var(--coffee);
}

/* === FOOTER === */
.footer {
  background: var(--coffee);
  color: #999;
  padding: 80px 0 20px;
}
.f-wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.f-logo {
  font-family: var(--font-serif);
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.f-contacts-dup {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--white);
  font-size: 0.9rem;
}
.f-links h5 {
  color: var(--white);
  margin-bottom: 20px;
  font-family: var(--font-serif);
  font-size: 1rem;
}
.f-links a {
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.f-links a:hover {
  color: var(--terra);
}
.f-copy {
  border-top: 1px solid #444;
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
}

/* === COOKIE === */
.cookie-strip {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  padding: 15px;
  border-top: 1px solid #dcdcdc;
  z-index: 5000;
  display: none;
}
.cs-content {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.btn-text {
  background: none;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--terra);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .desk-menu,
  .h-controls .btn-line {
    display: none;
  }
  .burger {
    display: block;
  }
  .hero-layout,
  .split-layout,
  .contact-layout,
  .f-wrap {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .hero-layout {
    text-align: center;
  }
  .hero-divider {
    margin: 0 auto 30px;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-img {
    order: -1;
  }
  .journal-grid {
    grid-template-columns: 1fr;
  }
  .j-card.span-2 {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .jc-img {
    height: 250px;
  }
  .sl-stat {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    padding-left: 0;
    display: flex;
    justify-content: space-around;
  }
  .features-row {
    grid-template-columns: 1fr 1fr;
  }
  .atelier-form {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 60px 0;
  }
  h1 {
    font-size: 2.5rem;
  }
  .features-row {
    grid-template-columns: 1fr;
  }
}

.pages {
  padding: 120px 0;
}

.pages-wrap {
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto 20px;
}

.pages h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 40px;
  text-align: center;
}

.text-wrapper {
  background: #f8fafc;
  padding: 50px 40px;
  border-radius: 20px;
  line-height: 1.8;
}

.text-wrapper h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  padding-bottom: 5px;
}

.text-wrapper h3 {
  color: #000000;
  margin-bottom: 20px;
}

.text-wrapper p {
  color: #64748b;
  margin-bottom: 20px;
}

.text-wrapper ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.text-wrapper ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: #1e293b;
}

.text-wrapper ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--primary);
  top: 0;
}

.text-wrapper strong {
  color: var(--color-error);
}

.text-wrapper a {
  color: #001eff;
  text-decoration: underline;
  font-weight: 600;
}

.text-wrapper ol {
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: #000000;
}

.margin {
  margin: 120px 0 50px;
  font-size: 40px;
}

@media (max-width: 768px) {
  .pages {
    padding: 100px 0 60px;
  }
  .pages h1 {
    font-size: 22px;
    margin-bottom: 30px;
  }
  h3 {
    font-size: 18px;
  }
  .text-wrapper {
    padding: 30px 20px;
  }
  .text-wrapper h2 {
    font-size: 24px;
    margin-top: 30px;
  }
  .margin {
    margin: 80px 0 30px;
    font-size: 28px;
  }
}

/* --- CONTACT PAGE SPECIFIC STYLES --- */
.contact-page-main {
  padding-top: 180px;
  padding-bottom: 120px;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cp-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  letter-spacing: -2px;
  color: var(--accent);
  margin-bottom: 30px;
  line-height: 1;
}

.cp-divider {
  width: 60px;
  height: 1px;
  background-color: var(--accent);
  margin: 0 auto 40px auto;
}

.cp-status {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-muted);
  border: 1px solid var(--line);
  display: inline-block;
  padding: 10px 20px;
  margin-bottom: 60px;
  background: #fcfcfc;
}

.cp-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cp-label {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.cp-phone-link {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--accent);
  line-height: 1.2;
  border-bottom: 2px solid transparent;
  transition: 0.3s;
  margin-bottom: 40px;
}

.cp-phone-link:hover {
  border-bottom-color: var(--accent);
  opacity: 0.8;
}

.cp-address-box {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  width: 100%;
  max-width: 400px;
}

.cp-addr {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 10px;
}

.cp-email {
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-size: 1rem;
}

.cp-email a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cp-email a:hover {
  color: var(--accent);
}

@media (max-width: 600px) {
  .contact-page-main {
    padding-top: 140px;
    text-align: center;
  }

  .cp-phone-link {
    font-size: 2rem;
  }
}
