/* =========================================================
   САЙТ СВЕТЛАНЫ БОРОДИНОЙ
   ========================================================= */

:root {
  --paper: #F6F4F2;
  --paper-deep: #ECE8E4;
  --ink: #20354B;
  --ink-soft: #4A5A6A;
  --ink-mute: #78858F;
  --navy: #2F4E6F;
  --navy-deep: #20354B;
  --accent: #A83745;
  --line: #E2DBD5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'PT Serif', Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, nav, button, .sans {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
}

/* =========================================================
   КОНТЕЙНЕР
   ========================================================= */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

/* =========================================================
   HEADER
   ========================================================= */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 244, 242, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

header .container { padding-left: 48px; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  position: relative;
}

.brand {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand small {
  display: block;
  font-family: 'PT Serif', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mute);
  font-weight: 400;
  margin-top: 2px;
}

nav ul { display: flex; gap: 34px; list-style: none; }

nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  transition: color .2s;
}

nav a:hover { color: var(--accent); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--ink);
  transition: 0.3s;
}

/* =========================================================
   СЕКЦИИ И ТЕКСТ (Глобальные настройки)
   ========================================================= */
section {
  padding: 80px 0; /* Стандартный отступ между секциями */
  border-top: 1px solid var(--line);
}

/* Первая секция под шапкой (без верхней границы и с меньшим отступом сверху) */
section.first-section {
  padding: 40px 0 80px;
  border-top: none;
}

.section-label {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Oswald', 'Manrope', sans-serif;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--navy-deep);
  margin-bottom: 40px;
  max-width: 780px;
}

.about-text { max-width: 720px; font-size: 19px; line-height: 1.75; color: var(--ink); }
.about-text p + p { margin-top: 22px; }

/* =========================================================
   HERO / БЛОК "ОБО МНЕ"
   ========================================================= */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: start;
}

.hero-content { display: block; }

.hero-photo {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background: var(--paper-deep);
  box-shadow: 0 30px 60px -30px rgba(32, 53, 75, 0.25);
}

.offset-down { margin-top: 120px; }

.hero-photo img { width: 100%; height: auto; display: block; }

/* =========================================================
   СПИСКИ
   ========================================================= */
.about-text ul { list-style: none; padding-left: 0; margin-top: 16px; }

.about-text li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.about-text li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

/* =========================================================
   METHOD GRID (С чем работаю)
   ========================================================= */
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  margin-top: 20px;
}

.method-item h3 {
  font-family: 'Oswald', 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--navy-deep);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.method-item p { color: var(--ink-soft); font-size: 16px; margin-top: 8px; }

/* =========================================================
   CONTACT (Верхние две колонки)
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  margin-bottom: 40px;
}

.contact-box {
  background: var(--paper-deep);
  padding: 48px;
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}

.contact-box h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 24px;
}

.contact-box p { font-size: 18px; line-height: 1.75; color: var(--ink); margin-bottom: 16px; }

.checklist { list-style: none; padding: 0; }

.checklist li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 16px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
}

.checklist li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }

/* =========================================================
   БЛОК "КАК ЗАПИСАТЬСЯ"
   ========================================================= */
.full-width-cta {
  background: var(--navy-deep);
  padding: 80px 0;
  border-top: 4px solid var(--accent);
  margin-top: 40px;
}

.quote-label {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C9B79B;
  margin-bottom: 24px;
}

.quote-text {
  font-family: 'PT Serif', Georgia, serif;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.5;
  font-style: italic;
  color: #F2EDE4;
  margin-bottom: 32px;
  max-width: 880px;
}

.quote-author { font-family: 'Manrope', sans-serif; font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.quote-role { font-family: 'Manrope', sans-serif; font-size: 13px; color: #C9B79B; margin-bottom: 40px; }

.quote-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 28px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  text-decoration: none;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 600;
  transition: all .25s ease;
}

.btn-dark img { flex-shrink: 0; display: block; object-fit: contain; }
.btn-dark:hover { background: #fff; border-color: #fff; color: var(--navy-deep); }

/* =========================================================
   КНОПКИ ДЛЯ СТРАНИЦЫ СОТРУДНИЧЕСТВО
   ========================================================= */
.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 30px;
  background: var(--navy-deep);
  color: #fff !important;
  text-decoration: none !important;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 2px;
  transition: all .25s ease;
  border: 1px solid transparent;
}

.btn-action:hover { background: var(--accent); transform: translateY(-1px); }
.btn-action img { display: block; flex-shrink: 0; }

/* =========================================================
   COOPERATION PAGE GRID
   ========================================================= */
.cooperation-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 40px;
}

.cooperation-photo { width: 100%; border-radius: 4px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(32, 53, 75, 0.25); }
.cooperation-photo img { width: 100%; height: auto; display: block; }

/* =========================================================
   СТРАНИЦА "ИЗ ПРАКТИКИ" (БЛОГ)
   ========================================================= */
.notes-image-wrapper {
  margin: 40px 0 60px 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 40px -20px rgba(32,53,75,0.15);
}
.notes-image-wrapper img { width: 100%; height: auto; display: block; }
.notes-list { display: flex; flex-direction: column; gap: 40px; }

.note-card {
  display: block;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 40px;
}

.note-card h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 24px;
  color: var(--navy-deep);
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.note-card p { font-size: 17px; color: var(--ink-soft); line-height: 1.6; max-width: 720px; }

.read-more {
  display: inline-block;
  margin-top: 16px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: var(--paper-deep);
  padding: 60px 0 50px;
  border-top: 1px solid var(--line);
}

/* =========================================================
   ПЛАНШЕТЫ И ТЕЛЕФОНЫ (до 900px)
   ========================================================= */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  header .container { padding-left: 32px; }
  
  section { padding: 40px 0; }
  section.first-section { padding: 30px 0 40px; }

  body { font-size: 16px; line-height: 1.5; }
  .about-text { font-size: 17px; line-height: 1.55; }
  .about-text p + p { margin-top: 12px; }
  .section-title { font-size: 26px; margin-bottom: 24px; }
  
  /* Мобильная версия блока "Обо мне" */
  .hero-grid { display: flex; flex-direction: column; gap: 24px; }
  .hero-content { display: contents; }
  .hero-header { order: 1; }
  .hero-photo { order: 2; max-width: 100%; margin: 0; }
  .hero-text { order: 3; }
  
  .method-grid { grid-template-columns: 1fr; gap: 32px; }
  .method-item h3 { margin-bottom: 8px; padding-bottom: 8px; }
  .method-item p { margin-top: 4px; }

  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .contact-box { padding: 24px; }
  .contact-box h3 { margin-bottom: 12px; }
  .contact-box h3[style*="margin-top: 32px"] { margin-top: 20px !important; }
  .contact-box p, .checklist li { font-size: 16px; line-height: 1.5; }

  .full-width-cta { padding: 40px 0; margin-top: 30px; }
  .quote-text { font-size: 20px; margin-bottom: 20px; }
  .quote-role { margin-bottom: 24px; }
  .quote-actions { flex-direction: column; gap: 12px; }
  .btn-dark { width: 100%; padding: 14px 20px; }
  
  .cooperation-grid { grid-template-columns: 1fr; gap: 32px; }
  .cooperation-photo { order: -1; max-width: 100%; margin: 0; }
  .cooperation-topics-grid { grid-template-columns: 1fr !important; gap: 24px !important; }

  .notes-image-wrapper { margin: 20px 0 30px 0; }
  .notes-list { gap: 24px; }
  .note-card { padding-bottom: 24px; }
  .note-card h3 { font-size: 20px; margin-bottom: 8px; }
  .note-card p { font-size: 16px; line-height: 1.5; }
}

/* Бургер-меню для мобилок */
@media (max-width: 760px) {
  .menu-toggle { display: flex; }
  #nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    padding: 20px 0;
  }
  #nav-menu.active { display: block; }
  #nav-menu ul { flex-direction: column; align-items: center; gap: 20px; }
  #nav-menu a { font-size: 18px; }
}