/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root{
  --bg: #F8F9FA;
  --text: #1E1E1E;
  --accent: #4E9F3D;
  --accent-2: #FFC857;
  --muted: #6B7280;
  --card: #FFFFFF;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

/* Utilities */
.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header { background: #fff; border-bottom: 1px solid #ddd; padding: 0.5rem 1rem; position: sticky; top: 0; z-index: 50; }
.header__container { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; }
.header__logo { font-family: 'Montserrat', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.header__menu { display: flex; list-style: none; gap: 1rem; }
.header__menu a { text-decoration: none; color: var(--text); font-weight: 500; transition: color .25s ease; }
.header__menu a:hover { color: var(--accent); }

/* Main */
.main { display: block; }

/* Hero */
.hero { position: relative; overflow: clip; padding: 3.5rem 0 2.5rem; }
.hero__container { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px){
  .hero__container{ grid-template-columns: 1.1fr 0.9fr; }
}

.hero__content { padding: 0 1rem; }
.hero__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.hero__lead { margin-top: .75rem; color: var(--muted); max-width: 52ch; }

.hero__typed-wrap { margin-top: 1rem; font-weight: 500; display: flex; align-items: center; gap: .25rem; }
.hero__typed-prefix { color: var(--muted); }
.hero__typed { color: var(--accent); white-space: nowrap; }
.hero__caret{
  width: 10px; height: 1.2em; border-right: 2px solid var(--accent);
  animation: caret 1s step-end infinite;
}
@keyframes caret { 50% { border-right-color: transparent; } }

.hero__cta { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.btn{
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1rem; border-radius: 14px; text-decoration: none;
  box-shadow: var(--shadow); transition: transform .08s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  will-change: transform;
}
.btn:active{ transform: translateY(1px) scale(.98); }
.btn__icon{ width: 18px; height: 18px; }
.btn--primary{ background: var(--accent); color: #fff; }
.btn--primary:hover{ background: #3f8732; box-shadow: 0 12px 40px rgba(78,159,61,.25); }
.btn--ghost{ background: #fff; color: var(--text); border: 1px solid #e5e7eb; }
.btn--ghost:hover{ border-color: var(--accent); color: var(--accent); }

.hero__bullets{ margin-top: 1rem; display: grid; gap: .5rem; list-style: none; }
.hero__bullets-item{ display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); }
.hero__bullets-item i{ width: 18px; height: 18px; color: var(--accent); }

.hero__media{ position: relative; padding: 0 1rem; }
.hero__image{
  width: 100%; height: auto; border-radius: 18px; background: #e5efe8;
  box-shadow: var(--shadow); transform: translateY(0); transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.hero__media:hover .hero__image{ transform: translateY(-4px); }
.hero__badge{
  position: absolute; bottom: -12px; left: 20px; background: #fff; color: var(--text);
  border: 1px solid #e5e7eb; border-radius: 12px; padding: .5rem .75rem; font-size: .9rem;
  display: inline-flex; align-items: center; gap: .4rem; box-shadow: var(--shadow);
}
.hero__badge i{ width: 16px; height: 16px; color: var(--accent); }

.hero__bg{
  position: absolute; inset: -20% -10% auto -10%; height: 60%;
  background: radial-gradient(600px 200px at 20% 30%, rgba(78,159,61,.18), transparent 70%),
              radial-gradient(700px 240px at 80% 30%, rgba(255,200,87,.18), transparent 70%);
  pointer-events: none; z-index: -1;
}

/* Footer */
.footer { background-color: #1E1E1E; color: #fff; padding: 2rem 1rem; }
.footer__container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.footer__logo { font-family: 'Montserrat', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--accent); }
.footer__col h4 { margin-bottom: 0.8rem; font-size: 1rem; color: var(--accent-2); }
.footer__col ul { list-style: none; }
.footer__col ul li { margin-bottom: 0.5rem; }
.footer__col ul li a { text-decoration: none; color: #fff; transition: color .25s ease; }
.footer__col ul li a:hover { color: var(--accent); }
.footer__col p { margin-bottom: 0.5rem; font-size: 0.95rem; }

/* Pages (будут использованы для policy-страниц на этапе 5) */
.pages .container { max-width: 840px; }
.pages h1{ font-family: 'Montserrat', sans-serif; font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 1rem 0; }
.pages h2{ font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin: 1rem 0 .25rem; }
.pages p{ margin: .75rem 0; color: var(--text); }
.pages ul{ margin: .75rem 0 1rem 1.1rem; }
.pages a{ color: var(--accent); text-decoration: underline; }

/* --- существующие корневые переменные, базовые стили и Hero остаются без изменений --- */

.daily { padding: 2.5rem 0; }
.daily__container { }
.daily__header { margin: 0 1rem 1.25rem; }
.daily__title{
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.3rem, 3.2vw, 2rem);
}
.daily__desc{ color: var(--muted); margin-top: .35rem; }

.daily__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0 1rem;
}
@media (min-width: 700px){
  .daily__grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1050px){
  .daily__grid{ grid-template-columns: repeat(3, 1fr); }
}

.daily-card{
  background: var(--card);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.daily-card:hover{
  transform: translateY(-2px);
  border-color: rgba(78,159,61,.35);
  box-shadow: 0 12px 34px rgba(78,159,61,.10);
}

.daily-card__icon i{ width: 22px; height: 22px; color: var(--accent); }
.daily-card__title{ font-weight: 700; }
.daily-card__text{ color: var(--muted); }

.prompt{ margin-top: .25rem; }
.prompt__toggle{
  width: 100%;
  background: #fff;
  border: 1px dashed #cad3d8;
  color: var(--text);
  border-radius: 12px;
  padding: .6rem .75rem;
  display: inline-flex; align-items: center; gap: .5rem;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.prompt__toggle:hover{ border-color: var(--accent); background: #f9fff7; }
.prompt__toggle[aria-expanded="true"] i{ transform: rotate(180deg); transition: transform .2s ease; }

.prompt__panel{
  margin-top: .6rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fbfbfb;
  padding: .6rem .6rem .6rem .6rem;
}
.prompt__code{
  max-height: 180px;
  overflow: auto;
  background: #f3f6f4;
  border-radius: 10px;
  padding: .6rem .75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .92rem;
  line-height: 1.5;
  white-space: pre-wrap;
}
.prompt__copy{
  margin-top: .5rem;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem .8rem;
  border-radius: 12px; border: 1px solid #d9e6d9;
  background: #fff; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.prompt__copy:hover{ background: #f9fff7; border-color: var(--accent); }

.daily-card__cta{ margin-top: .25rem; }

/* Toast */
.toast{
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  background: #1e293b; color: #fff; padding: .6rem .9rem; border-radius: 12px;
  font-size: .95rem; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.toast--show{ opacity: 1; transform: translate(-50%, -4px); }

/* --- политики (pages) и остальные ранее добавленные стили остаются --- */

/* Work section */
.work { padding: 2.5rem 0; }
.work__header { margin: 0 1rem 1.25rem; }
.work__title{
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.3rem, 3.2vw, 2rem);
}
.work__desc{ color: var(--muted); margin-top: .35rem; }

.work__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0 1rem;
}
@media (min-width: 700px){
  .work__grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1050px){
  .work__grid{ grid-template-columns: repeat(3, 1fr); }
}

/* Learning section */
.learning { padding: 2.5rem 0; }
.learning__header { margin: 0 1rem 1.25rem; }
.learning__title{
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.3rem, 3.2vw, 2rem);
}
.learning__desc{ color: var(--muted); margin-top: .35rem; }

.learning__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0 1rem;
}
@media (min-width: 700px){
  .learning__grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1050px){
  .learning__grid{ grid-template-columns: repeat(3, 1fr); }
}

/* Timeline */
.learning__timeline{
  margin: 1.5rem 1rem 0;
  background: var(--card);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.timeline__item{
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: .75rem;
  position: relative;
  padding: .5rem 0;
}
.timeline__item + .timeline__item{ border-top: 1px dashed #e5e7eb; }
.timeline__dot{
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  margin-top: .4rem;
  box-shadow: 0 0 0 4px rgba(78,159,61,.15);
}
.timeline__content h4{ font-weight: 700; margin-bottom: .15rem; }
.timeline__content p{ color: var(--muted); }

/* Fun section */
.fun { padding: 2.5rem 0; }
.fun__header { margin: 0 1rem 1.25rem; }
.fun__title{
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.3rem, 3.2vw, 2rem);
}
.fun__desc{ color: var(--muted); margin-top: .35rem; }

.fun__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0 1rem;
}
@media (min-width: 700px){
  .fun__grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1050px){
  .fun__grid{ grid-template-columns: repeat(3, 1fr); }
}

/* Contact section */
.contact { padding: 2.5rem 0; }
.contact__header { margin: 0 1rem 1.25rem; }
.contact__title{
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.3rem, 3.2vw, 2rem);
}
.contact__desc{ color: var(--muted); margin-top: .35rem; }

.contact__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0 1rem;
}
@media (min-width: 980px){
  .contact__grid{ grid-template-columns: minmax(0, 1fr) 0.9fr; align-items: start; }
}

.contact__form{
  background: var(--card);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.form__row{ margin-bottom: .9rem; }
.form__label{ display: block; margin-bottom: .35rem; font-weight: 600; }
.form__input{
  width: 100%; padding: .7rem .8rem; border: 1px solid #d7dee2; border-radius: 12px;
  background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.form__input:focus{ outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(78,159,61,.15); }
.form__input--sm{ max-width: 160px; }
.form__row--captcha .captcha__wrap{ display: inline-flex; align-items: center; gap: .5rem; }
.captcha__q{ font-weight: 700; color: var(--accent); }
.captcha__refresh i{ width: 18px; height: 18px; }

.form__row--check .form__check{ display: flex; gap: .55rem; align-items: flex-start; }
.form__check a{ color: var(--accent); text-decoration: underline; }

.form__error{
  display: block; margin-top: .35rem; color: #b42318; font-size: .9rem; min-height: 1.1em;
}
.form__input--invalid{ border-color: #b42318; box-shadow: 0 0 0 3px rgba(180,35,24,.12); }

.form__submit{ margin-top: .2rem; }

.form__success{
  margin-top: .9rem; background: #ecfdf3; border: 1px solid #bbf7d0; color: #065f46;
  border-radius: 12px; padding: .7rem .8rem; display: flex; align-items: center; gap: .5rem;
}
.form__success i{ color: var(--accent); width: 20px; height: 20px; }

/* Sidebar */
.contact__info{
  background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 16px; padding: 1rem;
}
.contact__list{ list-style: none; display: grid; gap: .6rem; margin-bottom: .8rem; }
.contact__list i{ width: 18px; height: 18px; color: var(--accent); margin-right: .4rem; vertical-align: -3px; }
.contact__image{ width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow); }

/* Small helper for disabled submit */
.btn[disabled]{ opacity: .7; cursor: not-allowed; }

/* Cookie consent */
.cookie-consent{
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  gap: .7rem;
  z-index: 1000;
}
.cookie-consent__text{
  font-size: .95rem;
  line-height: 1.4;
}
.cookie-consent__text a{
  color: var(--accent);
  text-decoration: underline;
}
.cookie-consent__actions{
  display: flex;
  gap: .5rem;
  justify-content: flex-end;
}

/* Policy pages */
.policy-page{
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.policy-page h1,
.policy-page h2{
  font-family: 'Montserrat', sans-serif;
  margin-bottom: .6rem;
}
.policy-page p{
  margin-bottom: 1rem;
}
.policy-page ul{
  list-style: disc;
  padding-left: 1.3rem;
  margin-bottom: 1rem;
}
.policy-page li{
  margin-bottom: .5rem;
}

/* Fix: reliably hide elements with [hidden] */
[hidden] { display: none !important; }
/* Extra safety for the success box */
.form__success[hidden] { display: none !important; }
