/* Guide des Aidants en Haute-Savoie - оформление по разделу 6 спека.
   Токены раздела 6 вынесены в :root, цвета больше нигде не повторяются.
   Префикс классов ga- свой у этого сайта: общих стилей между дропами нет. */

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/roboto-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/roboto-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/roboto-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/roboto-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Roboto Slab";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/roboto-slab-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto Slab";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/roboto-slab-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Roboto Slab";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/roboto-slab-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ga-bg: #ffffff;
  --ga-text: #3f403f;
  --ga-accent: #213572;
  --ga-dark: #1a1a1a;
  --ga-border: #e5e7eb;
  --ga-muted: #484c61;
  --ga-link: #135796;
  --ga-wrap: 1160px;
  --ga-prose: 760px;
  --ga-gap: 24px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ga-bg);
  color: var(--ga-text);
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

a {
  color: var(--ga-link);
}

a:hover,
a:focus {
  color: var(--ga-accent);
}

h1,
h2,
h3 {
  font-family: "Roboto Slab", Georgia, serif;
  color: var(--ga-accent);
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 16px;
}

.ga-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ga-accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 20;
}

.ga-skip:focus {
  left: 0;
  color: #fff;
}

/* ---- шапка ---- */

.ga-head {
  background: var(--ga-bg);
  border-bottom: 1px solid var(--ga-border);
}

.ga-head-in {
  max-width: var(--ga-wrap);
  margin: 0 auto;
  padding: 0 var(--ga-gap);
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ga-logo {
  font-family: "Roboto Slab", Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--ga-accent);
  text-decoration: none;
  line-height: 1.2;
  padding: 14px 0;
}

.ga-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.ga-nav a {
  font-weight: 500;
  font-size: 15px;
  color: var(--ga-text);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.ga-nav a:hover,
.ga-nav a:focus,
.ga-nav a[aria-current="page"] {
  color: var(--ga-accent);
  border-bottom-color: var(--ga-accent);
}

.ga-burger {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--ga-border);
  border-radius: 6px;
  cursor: pointer;
  padding: 10px 9px;
}

.ga-burger span {
  display: block;
  height: 2px;
  background: var(--ga-accent);
  margin: 4px 0;
}

/* ---- основная сетка ---- */

.ga-main {
  max-width: var(--ga-wrap);
  margin: 0 auto;
  padding: 0 var(--ga-gap) 56px;
}

.ga-crumbs {
  font-size: 13px;
  color: var(--ga-muted);
  margin: 18px 0 10px;
}

.ga-crumbs a {
  color: var(--ga-muted);
}

.ga-crumbs-sep {
  margin: 0 7px;
}

.ga-crumbs-current {
  color: var(--ga-accent);
}

.ga-h1 {
  font-size: 35px;
  margin: 10px 0 8px;
  max-width: var(--ga-prose);
}

.ga-meta {
  font-size: 13px;
  color: var(--ga-muted);
  margin: 0 0 26px;
}

.ga-prose {
  max-width: var(--ga-prose);
}

/* Кегль H2 задан в разделе 6 (26-28 px) и должен быть одинаковым во всех
   блоках страницы, а не только внутри .ga-prose: иначе заголовок секции на
   главной наследует 1.5em от браузера и выпадает из нормы. */
.ga-prose h2,
.ga-intro h2,
.ga-split-text h2,
.ga-faq > h2,
.ga-cards-wrap > h2,
.ga-subscribe > h2 {
  font-size: 26px;
  margin: 34px 0 12px;
}

.ga-intro h2,
.ga-split-text h2,
.ga-subscribe > h2 {
  margin-top: 0;
}

.ga-prose h3 {
  font-size: 20px;
  margin: 24px 0 10px;
}

.ga-prose p {
  margin: 0 0 16px;
  line-height: 1.65;
}

.ga-prose ul,
.ga-prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.ga-prose li {
  margin-bottom: 8px;
}

.ga-note {
  border-left: 3px solid var(--ga-accent);
  background: #f7f8fb;
  padding: 14px 18px;
  margin: 0 0 20px;
}

.ga-note p:last-child {
  margin-bottom: 0;
}

.ga-figure {
  margin: 24px 0;
}

.ga-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.ga-figure figcaption {
  font-size: 13px;
  color: var(--ga-muted);
  margin-top: 8px;
}

/* ---- герой ---- */

.ga-hero {
  position: relative;
  margin: 18px 0 32px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ga-dark);
}

.ga-hero-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.55;
}

.ga-hero-wide .ga-hero-img {
  aspect-ratio: 16 / 7;
}

.ga-hero-flat .ga-hero-img {
  aspect-ratio: 21 / 9;
}

.ga-hero-text {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 28px var(--ga-gap);
  max-width: 760px;
}

.ga-hero-h1 {
  color: #fff;
  font-size: 36px;
  margin: 0 0 10px;
}

.ga-hero-sub {
  color: #f2f3f7;
  margin: 0;
  font-size: 17px;
}

/* ---- статья с боковой колонкой ---- */

.ga-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--ga-prose)) 280px;
  gap: 40px;
  align-items: start;
}

.ga-aside-box {
  border: 1px solid var(--ga-border);
  border-radius: 6px;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.ga-aside-title {
  font-size: 17px;
  margin: 0 0 10px;
}

.ga-aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
}

.ga-aside-list li {
  margin-bottom: 9px;
  line-height: 1.4;
}

/* ---- карточки ---- */

.ga-cards-wrap {
  margin-top: 46px;
}

.ga-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ga-gap);
}

.ga-card {
  border: 1px solid var(--ga-border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--ga-bg);
}

.ga-card:hover {
  box-shadow: 0 2px 10px rgba(26, 26, 26, 0.09);
}

.ga-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.ga-card-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ga-card-title {
  font-size: 18px;
  margin: 0 0 8px;
}

.ga-card-title a {
  color: var(--ga-accent);
  text-decoration: none;
}

.ga-card-text {
  font-size: 14px;
  margin: 0 0 14px;
}

.ga-card-more {
  margin-top: auto;
  font-size: 14px;
  font-weight: 500;
}

/* ---- блоки главной ---- */

.ga-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ga-gap);
  margin: 0 0 44px;
}

.ga-pillar {
  border: 1px solid var(--ga-border);
  border-radius: 6px;
  padding: 22px 20px;
}

.ga-pillar-icon {
  width: 34px;
  height: 34px;
  color: var(--ga-accent);
  margin-bottom: 12px;
}

.ga-pillar h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.ga-pillar p {
  margin: 0;
  font-size: 15px;
}

.ga-intro {
  max-width: var(--ga-prose);
  margin: 0 auto 48px;
  text-align: center;
}

.ga-intro p {
  text-align: left;
}

.ga-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}

.ga-split-flip .ga-split-media {
  order: -1;
}

.ga-split-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.ga-split-text h2 {
  margin-top: 0;
}

.ga-split-text p:last-child {
  margin-bottom: 0;
}

/* ---- FAQ ---- */

.ga-faq {
  max-width: var(--ga-prose);
  margin: 46px 0 0;
}

.ga-faq-item {
  border-top: 1px solid var(--ga-border);
  padding: 16px 0 4px;
}

.ga-faq-q {
  font-size: 18px;
  margin: 0 0 8px;
}

/* ---- подписка ---- */

.ga-subscribe {
  margin: 52px 0 0;
  border: 1px solid var(--ga-border);
  border-radius: 8px;
  padding: 28px var(--ga-gap);
  max-width: var(--ga-prose);
}

.ga-sub-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ga-sub-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.ga-sub-input,
.ga-field input,
.ga-field textarea {
  flex: 1 1 260px;
  font: inherit;
  padding: 11px 13px;
  border: 1px solid var(--ga-border);
  border-radius: 6px;
  color: var(--ga-text);
  background: #fff;
}

.ga-sub-note {
  font-size: 13px;
  color: var(--ga-muted);
  margin: 12px 0 0;
}

.ga-btn {
  display: inline-block;
  font: inherit;
  font-weight: 500;
  background: var(--ga-accent);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 11px 22px;
  cursor: pointer;
  text-decoration: none;
}

.ga-btn:hover,
.ga-btn:focus {
  background: #182a5d;
  color: #fff;
}

/* ---- форма контакта ---- */

.ga-form {
  max-width: 560px;
  margin: 8px 0 0;
}

.ga-field {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.ga-field label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.ga-field textarea {
  min-height: 150px;
  resize: vertical;
}

/* ---- навигация между статьями ---- */

.ga-pager {
  display: flex;
  gap: var(--ga-gap);
  margin-top: 46px;
  flex-wrap: wrap;
}

.ga-pager a {
  flex: 1 1 260px;
  border: 1px solid var(--ga-border);
  border-radius: 6px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--ga-accent);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 16px;
}

.ga-pager span {
  display: block;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  color: var(--ga-muted);
  margin-bottom: 4px;
}

.ga-pager-next {
  text-align: right;
}

/* ---- страницы 404 и 410 ---- */

.ga-error {
  text-align: center;
  padding: 72px 0 90px;
  max-width: 620px;
  margin: 0 auto;
}

.ga-error-h1 {
  font-size: 40px;
  margin-bottom: 14px;
}

.ga-error-line {
  margin-bottom: 26px;
}

.ga-error-links {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

/* ---- подвал ---- */

.ga-foot {
  background: var(--ga-dark);
  color: #e7e7ea;
  margin-top: 56px;
}

.ga-foot a {
  color: #ffffff;
}

.ga-foot-in {
  max-width: var(--ga-wrap);
  margin: 0 auto;
  padding: 44px var(--ga-gap) 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.ga-foot-logo {
  font-family: "Roboto Slab", Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  color: #fff;
  margin: 0 0 10px;
}

.ga-foot-about {
  margin: 0;
  font-size: 14px;
  color: #bfc2cc;
  max-width: 360px;
}

.ga-foot-title {
  font-size: 15px;
  color: #fff;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ga-foot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
}

.ga-foot-list li {
  margin-bottom: 8px;
}

.ga-foot-zone p {
  margin: 0 0 8px;
  font-size: 15px;
}

.ga-foot-bottom {
  border-top: 1px solid #2c2c2c;
}

.ga-foot-bottom {
  max-width: var(--ga-wrap);
  margin: 0 auto;
  padding: 16px var(--ga-gap) 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #bfc2cc;
}

.ga-foot-bottom p {
  margin: 0;
}

/* ---- мобильные ---- */

@media (max-width: 900px) {
  .ga-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .ga-cards,
  .ga-pillars {
    grid-template-columns: 1fr 1fr;
  }

  .ga-foot-in {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .ga-main,
  .ga-head-in,
  .ga-foot-in,
  .ga-foot-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ga-burger {
    display: block;
  }

  .ga-nav {
    display: none;
    width: 100%;
    order: 3;
  }

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

  .ga-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 6px 0 16px;
  }

  .ga-nav li {
    border-top: 1px solid var(--ga-border);
  }

  .ga-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 0;
  }

  .ga-head-in {
    flex-wrap: wrap;
  }

  /* Длинное название не должно выдавливать бургер на вторую строку:
     логотип ужимается, кнопка остаётся справа в той же строке. */
  .ga-logo {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 16px;
  }

  .ga-h1,
  .ga-hero-h1 {
    font-size: 28px;
  }

  .ga-prose h2 {
    font-size: 23px;
  }

  .ga-cards,
  .ga-pillars,
  .ga-split,
  .ga-foot-in {
    grid-template-columns: 1fr;
  }

  .ga-split-flip .ga-split-media {
    order: 0;
  }

  .ga-hero-text {
    position: static;
    background: var(--ga-dark);
    padding: 20px 16px 24px;
  }

  .ga-hero-img {
    opacity: 1;
  }

  .ga-error {
    padding: 48px 0 60px;
  }

  .ga-error-h1 {
    font-size: 30px;
  }
}
