/*
Theme Name: GPTDay Modern
Author: You
Version: 1.0
Description: Custom theme built to match ChatGPT blog design
*/

body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #111;
  margin: 0;
  padding: 0;
}
.custom-img {
  max-width: 420px;
  max-height: 320px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  /* margin-left: auto; */
  /* margin-right: auto; */
}
.container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  gap: 40px;
}

/* Ð´Ñ€ÑƒÐ³Ð¸Ðµ ÑÑ‚Ð¸Ð»Ð¸ Ð´Ð¾Ð±Ð°Ð²Ð¸Ð¼ Ð¿Ð¾ÑÐ»Ðµ */


.hero {
  text-align: left;
  margin-bottom: 40px;
}
.hero-logo {
  width: 140px;
  height: auto;
}
.hero h1 {
  font-size: 2.5rem;
  margin: 10px 0;
}
.hero p {
  font-size: 1.1rem;
  color: #555;
}
section h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.post-card {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  width: calc(33.333% - 13.33px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.post-card img {
  max-width: 100%;
  border-radius: 6px;
}
.post-card h3 {
  font-size: 1rem;
  margin: 10px 0;
}
.post-card .post-date {
  font-size: 0.8rem;
  color: #888;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.sidebar-logo {
  width: 60px;
  height: auto;
  margin-bottom: 10px;
}
.about-me, .subscribe {
  background: #f3f3f3;
  padding: 20px;
  border-radius: 8px;
}
.about-me p {
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.learn-more {
  font-size: 0.9rem;
  color: #198754;
  text-decoration: none;
}
.subscribe input[type="email"] {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.subscribe button {
  background: #198754;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}
@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
  }
  .post-card {
    width: 100%;
  }
}


/* ÐÐ°Ð²Ð¸Ð³Ð°Ñ†Ð¸Ð¾Ð½Ð½Ð¾Ðµ Ð¼ÐµÐ½ÑŽ */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
nav ul li a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
}
nav ul li a:hover {
  color: #198754;
}

/* Ð¡ÑÑ‹Ð»ÐºÐ¸ Ð² Ñ‚ÐµÐºÑÑ‚Ðµ */
a {
  text-decoration: none;
  color: inherit;
}
a:hover {
  text-decoration: underline;
  color: #198754;
}

/* Ð¡ÐµÐºÑ†Ð¸Ð¸ Ð¸ Ð¾Ñ‚ÑÑ‚ÑƒÐ¿Ñ‹ */
section {
  margin-bottom: 60px;
}

/* Ð—Ð°Ð³Ð¾Ð»Ð¾Ð²ÐºÐ¸ Ð¸ Ñ‚ÐµÐºÑÑ‚ */
body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #111;
  margin: 0;
  padding: 0;
}
h1 {
  font-size: 2rem;
  font-weight: bold;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}

/* ÐšÐ°Ñ€Ñ‚Ð¾Ñ‡ÐºÐ¸ */
.post-card {
  width: 32%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.post-card h3 {
  font-size: 1rem;
  margin-top: 10px;
  flex-grow: 1;
}


/* Hero improvements */
.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}
.hero-logo {
  width: 140px;
  height: auto;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
}
.hero p {
  font-size: 1.2rem;
  color: #555;
  max-width: 600px;
}

/* Grid fix */
.post-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.post-card {
  width: 32%;
  min-height: 320px;
  box-sizing: border-box;
}

/* Subscribe form styling */
.subscribe form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.subscribe input, .subscribe button {
  font-size: 1rem;
  padding: 12px;
}

/* Footer links lighter */
footer ul li a {
  color: #bbb;
}
footer ul li a:hover {
  color: white;
}



/* === Layout for homepage === */
.container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin: 0 auto;
  padding: 40px 20px;
  max-width: 1200px;
}

.main-content {
  flex: 3;
}

.sidebar {
  flex: 1;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  /* gap: 24px; */
  margin-top: 20px;
}

.post-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
}

.post-card img {
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}

.post-card h3 {
  font-size: 1rem;
  margin-top: 12px;
}

.post-date {
  font-size: 0.85rem;
  color: #666;
}



/* === Hero section with search === */
.hero-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  background: #f9f9f9;
  padding: 40px 24px;
  border-radius: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 2;
}

.hero-text h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 1.1rem;
  color: #555;
}

.hero-search {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-search form {
  width: 100%;
  max-width: 300px;
}

.hero-search input[type="search"] {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}



/* === Layout adjustment to allow full-width hero === */
.content-grid {
  display: flex;
  /* gap: 40px; */
  align-items: flex-start;
  margin-top: 0.5rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Optional: space between hero and content */
.hero-centered {
  margin-bottom: 40px;
}



/* === Global container to center all page content === */
.site-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}


.main-section {
  background: #fff;
  /* border-radius: 20px; */
  padding: 20px;
  margin: 20px 0;
  border-radius: 22px;
  box-shadow: 0 4px 32px rgba(44, 136, 255, 0.12);
  /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05); */
}


/* Layout & Grid */
.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  /* gap: 2rem; */
  margin-top: 0.5rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  /* gap: 1.5rem; */
  margin-top: 1rem;
}

/* Hero Section */
.hero-centered {
  background: #f9f9f9;
  padding: 3rem 1rem;
  text-align: center;
}
.hero-centered h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero-centered p {
  font-size: 1.2rem;
  color: #555;
}

/* Post Cards */
.post-card {
  background: #fff;
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: box-shadow 0.3s ease;
}
.post-card:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.post-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.post-card .post-date {
  font-size: 0.9rem;
  color: #888;
  margin: 0.5rem 0;
}
.post-card h3 {
  font-size: 1.1rem;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.sidebar .widget {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 1.5rem;
  border-radius: 8px;
}
.sidebar .about-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 1rem;
}
.sidebar h3 {
  margin-top: 0;
}
.sidebar form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sidebar input[type="email"] {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.sidebar button {
  padding: 0.5rem;
  background: #1a7f64;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.sidebar button:hover {
  background: #166b54;
}


/* Header */
.site-header {
  background: white;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e5e5e5;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}
.main-nav .nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav .nav-list li a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
}
.search-icon form {
  display: flex;
  gap: 0.3rem;
}
.search-icon input[type="search"] {
  padding: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.search-icon input[type="submit"] {
  background: #1a7f64;
  color: white;
  border: none;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
}

/* Footer */
.site-footer {
  background: #111;
  color: white;
  padding: 3rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer ul li {
  margin-bottom: 0.5rem;
}
.site-footer ul li a {
  color: #ccc;
  text-decoration: none;
}
.site-footer ul li a:hover {
  color: white;
}
.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
}

/* === ÐœÐ°ÐºÐµÑ‚Ð½Ñ‹Ðµ Ð´Ð¾Ñ€Ð°Ð±Ð¾Ñ‚ÐºÐ¸ Ð¿Ð¾Ð´ Ð´Ð¸Ð·Ð°Ð¹Ð½ ChatGPT === */
body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #111;
  margin: 0;
  padding: 0;
}

a, .learn-more, nav ul li a:hover {
  color: #10a37f;
}

.post-card {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 20px;
  border-radius: 10px;
  width: 100%;
  transition: box-shadow 0.2s ease;
}

.post-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.post-card .post-date {
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 5px;
}

h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: #111;
}

/* === Hero Centered Style Fix === */
.hero-centered {
  background: #fff !important;
  text-align: center;
  padding: 30px 20px;
}

.hero-centered .hero-logo {
  width: 140px;
  height: auto;
}

.hero-centered h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.hero-centered p {
  font-size: 1.25rem;
  color: #444;
  max-width: 700px;
  margin: 0 auto;
}

/* Centered Hero Section */
.hero-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.hero-centered .hero-inner > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  
}

.hero-centered img {
  width: 100px;
  height: auto;
}

.hero-centered h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
}

.hero-centered p {
  font-size: 1.25rem;
  color: #555;
  margin-top: 0.5rem;
}

/* Updated Hero Section: logo left, text right */
.hero-centered {
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.hero-inner {
  max-width: 900px;
  width: 100%;
}

.hero-flex {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-logo {
  width: 140px;
  height: auto;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin: 0;
}

.hero-text p {
  font-size: 1.25rem;
  color: #555;
  margin-top: 0.5rem;
}

/* === Hero Split Row (final fix) === */
.hero-split-row {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem 2rem;
    background: #fff;
    user-select: none;
}

.hero-split-row .hero-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1000px;
  width: 100%;
}

.hero-split-row .hero-logo {
  width: 110px;
  height: auto;
  border-radius: 12px;
}

.hero-split-row .hero-text {
  flex: 1;
}

.hero-split-row .hero-text h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.hero-split-row .hero-text p {
  font-size: 1.2rem;
  color: #555;
  margin: 0;
}

/* === Split Hero Heading Styling === */
.hero-split-row h1 {
  margin: 0;
  line-height: 1.2;
}


.hero-split-row .line-1,
.hero-split-row .line-2 {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #111;
}


.hero-split-row .line-3 {
  font-size: 1.25rem;
  color: #555;
  margin-top: 1rem;
}

/* === Final Hero Heading Structure === */

.hero-split-row .line-1,
.hero-split-row .line-2 {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #111;
}


.hero-split-row .line-3 {
  font-size: 1.25rem;
  color: #555;
  margin-top: 1rem;
}

/* === True Final Hero Heading === */
.hero-split-row h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  color: #111;
}

.hero-split-row .line-1,
.hero-split-row .line-2 {
  display: block;
}

.hero-split-row .line-3 {
  font-size: 1.25rem;
  color: #555;
  margin-top: 1rem;
}


/* Custom style for large site title */
.logo span {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  line-height: 1.2;
  letter-spacing: -0.5px;
}


.hero-divider {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 1rem 0 0;
}


/* === Added: borders like in screenshot === */
.content-grid {
  display: grid;
  grid-template-columns: 3.5fr 1fr;
  /* gap: 40px; */
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
}

.content-grid > .main-content {
  border-right: 1px solid #e5e7eb;
  padding-right: 1rem;
}
.post-card.horizontal {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid #e5e7eb;
  padding: 20px; /* â¬…ï¸ ÑƒÐ¼ÐµÐ½ÑŒÑˆÐ¸Ð»Ð¸ Ð¾Ñ‚ÑÑ‚ÑƒÐ¿ ÑÐ²ÐµÑ€Ñ…Ñƒ Ð¸ ÑÐ½Ð¸Ð·Ñƒ */
  text-align: left;
  flex-direction: row;
  align-items: center;
  min-height: unset; /* â¬…ï¸ ÑƒÐ±Ð¸Ñ€Ð°ÐµÐ¼ Ð²Ð¾Ð·Ð¼Ð¾Ð¶Ð½Ð¾Ðµ Ð½Ð°ÑÐ»ÐµÐ´Ð¸Ðµ Ð¾Ñ‚ min-height */
}

.post-card.horizontal .thumbnail {
  /* padding-left: 0.5rem; */  /* Ð¾Ñ‚ÑÑ‚ÑƒÐ¿ Ð¾Ñ‚ Ð»ÐµÐ²Ð¾Ð³Ð¾ ÐºÑ€Ð°Ñ */
  display: flex;
  align-items: center;
}

.post-card.horizontal .thumbnail img {
  width: 200px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.post-card.horizontal .post-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 0.5rem;
  margin: 0;
}

.post-card.horizontal .post-card-content h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.post-card.horizontal .post-date {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.25rem;
}
.credits {
  text-align: center;
  font-size: 0.85rem;
  color: #999;
  margin-top: 2rem;
  padding: 0 1rem;
}

.credits a {
  color: #10a37f;
  text-decoration: none;
}

.credits a:hover {
  text-decoration: underline;
}
body.page-template-page-under-construction {
  background: linear-gradient(120deg, #1656C1 0%, #5bdbff 100%);
}

.dev-container-gptday {
  /* background: rgba(255,255,255,0.07); */
  /* border-radius: 24px; */
  /* box-shadow: 0 6px 32px rgba(0,0,0,0.10); */
  /* padding: 48px 32px; */
  /* max-width: 430px; */
  text-align: center;
  position: relative;
  margin: 64px auto 0 auto;
  color: #070707;
}
.dev-logo-gptday {
  font-size: 48px;
  margin-bottom: 18px;
  filter: drop-shadow(0 4px 16px #32b1ff99);
}
.dev-title-gptday {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.dev-text-gptday {
  font-size: 1.15rem;
  margin-bottom: 32px;
  color: #000000;
  opacity: 0.95;
}
.dev-progress-gptday {
  width: 90%;
  height: 8px;
  background: #d2edff44;
  border-radius: 12px;
  margin: 0 auto 24px auto;
  overflow: hidden;
  position: relative;
}
.dev-progress-bar-gptday {
  height: 100%;
  width: 68%;
  background: linear-gradient(90deg, #44f7ff 0%, #2387e3 100%);
  border-radius: 12px;
  animation: barMoveGPT 2.6s infinite alternate;
}
@keyframes barMoveGPT {
  0% { width: 55%; }
  100% { width: 85%; }
}
.dev-footer-gptday {
  margin-top: 18px;
  font-size: 1rem;
  opacity: 0.82;
  letter-spacing: 0.5px;
}
.dev-blur-gptday {
  position: absolute;
  left: -80px;
  top: -60px;
  width: 170px;
  height: 170px;
  background: #00eaff44;
  border-radius: 60% 40% 45% 55%;
  filter: blur(42px);
  z-index: 0;
  animation: blurAnimGPT 5s infinite alternate;
}
@keyframes blurAnimGPT {
  0% { left: -80px; top: -60px;}
  100% { left: -60px; top: -90px;}
}
@media (max-width: 600px) {
  .dev-container-gptday {padding: 32px 10px;}
  .dev-title-gptday {font-size: 1.35rem;}
  .dev-logo-gptday {font-size: 32px;}
}
#to-top-btn {
  display: none;
  position: fixed;
  bottom: 32px;
  right: 22px;
  background: #2579da;
  color: #fff;
  padding: 12px 19px;
  border-radius: 44px;
  z-index: 99;
  box-shadow: 0 6px 24px #4070ff14;
  border: 0;
  cursor: pointer;
  transition: opacity 0.18s;
  font-size: 1.12em;
}

#reading-progress-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #63a4ff, #83eaf1);
  width: 0;
  z-index: 9999;
  transition: width 0.25s;
}


/* ======= МОБИЛЬНАЯ АДАПТАЦИЯ ======= */
@media (max-width: 900px) {
  /* Главный контейнер: всё в столбик */
  .container, .content-grid {
    display: block !important;
    grid-template-columns: none !important;
    padding: 20px 6px !important;
    gap: 0 !important;
    max-width: 100vw !important;
  }

  .main-content, .sidebar {
    width: 100% !important;
    max-width: 100vw !important;
    border: none !important;
    padding: 0 !important;
    float: none !important;
  }

  /* Сайдбар вниз после контента */
  .sidebar {
    margin-top: 36px;
    margin-left: 0;
    max-width: 100vw;
  }

  /* Карточки: одна колонка, элементы под изображением */
  .post-grid, .post-cards-list {
    display: block !important;
    grid-template-columns: none !important;
  }
  .post-card, .post-card.horizontal {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 0 !important;
    padding: 12px 0.5rem !important;
    min-height: unset !important;
    border-bottom: 1px solid #e5e7eb;
  }
  .post-card img, .post-card .thumbnail img {
    width: 100% !important;
    max-width: 100vw !important;
    height: auto !important;
    margin-bottom: 10px;
    border-radius: 8px;
  }
  .post-card .post-card-content, .post-card.horizontal .post-card-content {
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Меню: в столбик, без отступов, компактно */
  nav ul, .main-nav .nav-list {
    display: block !important;
    gap: 0 !important;
    padding-left: 0 !important;
  }
  nav ul li, .main-nav .nav-list li {
    display: block !important;
    margin-bottom: 10px !important;
    text-align: left;
  }
  nav ul li a, .main-nav .nav-list li a {
    font-size: 1.1rem !important;
    padding: 0.6rem 0.4rem !important;
  }

  /* Поиск: растягиваем, убираем лишние отступы, max-width */
  .search-icon,
  .hero-search,
  .hero-search form,
  .hero-split-row .hero-search {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }
  .search-icon input[type="search"],
  .hero-search input[type="search"] {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    font-size: 1.1em;
  }
  .search-icon input[type="submit"] {
    width: auto;
    padding: 0.5em 1em;
    font-size: 1.1em;
  }

  /* Hero: вертикальное расположение */
  .hero-split, .hero-split-row, .hero-flex {
    flex-direction: column !important;
    gap: 24px !important;
    align-items: flex-start !important;
    padding: 16px 0.5rem !important;
  }
  .hero-logo, .hero-split-row .hero-logo {
    width: 90px !important;
    margin: 0 0 12px 0 !important;
  }
  .hero-split-row .hero-text h1, .hero-split-row h1, .hero-centered h1 {
    font-size: 1.5rem !important;
    line-height: 1.2;
  }
  .hero-centered p, .hero-split-row .hero-text p {
    font-size: 1rem !important;
    max-width: 100vw !important;
  }

  /* Подзаголовки секций — меньше размер */
  section h2, h2 {
    font-size: 1.15rem !important;
    margin-bottom: 0.8rem !important;
  }

  /* Больше не вылазит кнопка вверх */
  #to-top-btn {
    right: 10px !important;
    bottom: 10px !important;
    padding: 10px 16px !important;
    font-size: 1em !important;
  }

  /* Footer: стягиваем в столбик */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    padding: 0 !important;
  }
}

/* Для совсем маленьких экранов */
@media (max-width: 480px) {
  body, .container, .site-container, .main-content, .sidebar, .main-section {
    padding: 0 !important;
  }
  .hero-centered, .hero-split-row, .hero-split, .main-section {
    padding: 0.5rem !important;
  }
}
/* ===== Бургер-меню для мобилок ===== */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-left: 16px;
  z-index: 103;
}
.burger span {
  display: block;
  width: 28px;
  height: 3.5px;
  background: #1a7f64;
  border-radius: 2px;
  transition: all 0.25s;
}

@media (max-width: 900px) {
  .burger { display: flex !important; }
  .main-nav {
    display: none;
    position: absolute;
    top: 66px;
    right: 12px;
    left: 8px;
    z-index: 102;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 36px #2861ff23;
    padding: 16px 14px 14px 12px;
    animation: fadeInMenu 0.25s;
    flex-direction: column;
    min-width: 170px;
  }
  .main-nav.open { display: flex !important; }
  .nav-list { flex-direction: column !important; gap: 0 !important;}
  .nav-list li {margin: 0 0 10px 0;}
  .nav-list li a {font-size: 1.1rem; padding: 0.45rem;}
  .lang-switch { margin-top: 10px !important;}
  .mobile-search { display: block; margin-top: 18px; }
  .mobile-search input[type="search"] {
    width: 100%;
    padding: 8px 9px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 4px;
  }
  .mobile-search button {
    padding: 7px 16px;
    background: #198754;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 1.1rem;
    cursor: pointer;
  }
  /* Поиск и десктопный поиск скрываем/перемещаем */
  .search-icon { display: none !important; }
}

@media (min-width: 901px) {
  .main-nav { position: static; display: flex !important; flex-direction: row; align-items: center; }
  .nav-list { flex-direction: row !important; gap: 1.5rem; }
  .mobile-search { display: none !important;}
  .lang-switch { margin-left: 18px;}
}

/* Анимация */
@keyframes fadeInMenu {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: none;}
}

.header-inner {
  position: relative;
}
@media (max-width: 900px) {
  .hero h1,
  .hero-centered h1,
  .hero-split-row h1 {
        font-size: 1.25rem !important;
    font-weight: 200 !important;
    line-height: 1.2 !important;
    margin: 0.5rem 0 !important;
    word-break: break-word !important;
    max-width: 100vw !important;
    text-align: left !important; /* или center, если надо */
  }
}



  .hero, .hero-centered, .hero-split-row {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100vw !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    overflow-x: hidden !important;
    margin: 0 !important;
  }
}
@media (max-width: 900px) {
  .container, .site-container {
    max-width: 100vw !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden !important;
  }
}
.hero h1, .hero-centered h1, .hero-split-row h1 {
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}
