:root {
  --feed-yellow: #ffd955;
  --feed-green: #3d8058;
  --feed-ink: #24352a;
  --feed-paper: #fffdf7;
  --feed-line: #e5dfd0
}

.feed-hero,.feed-steps,.feed-videos,.feed-form-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(42px,6vw,86px) 24px
}

.feed-hero {
  position: relative;
  margin-top: 18px;
  border-radius: 30px;
  background: linear-gradient(112deg,#fff2b4,#ffe785);
  overflow: hidden
}

.feed-hero:after {
  content: '✦ 〰';
  position: absolute;
  right: 7%;
  top: 18%;
  font-size: clamp(3rem,9vw,8rem);
  color: rgba(61,128,88,.2);
  transform: rotate(-12deg)
}

.feed-hero>* {
  position: relative;
  z-index: 1;
  max-width: 760px
}

.feed-hero h1 {
  margin: 8px 0 18px;
  font-size: clamp(2.5rem,6vw,5.4rem);
  line-height: .94;
  letter-spacing: -.06em;
  color: var(--feed-ink)
}

.feed-hero p {
  font-size: 1.1rem;
  line-height: 1.6
}

.feed-hero p:last-child {
  max-width: 620px;
  font-size: .95rem
}

.eyebrow {
  margin: 0;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--feed-green)
}

.feed-steps {
  padding-top: 72px;
  padding-bottom: 32px
}

.feed-steps h2,.feed-videos h2,.feed-form-wrap h2 {
  font-size: clamp(1.8rem,3vw,3rem);
  letter-spacing: -.04em;
  color: var(--feed-ink)
}

.feed-steps ol {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
  padding: 0;
  margin: 26px 0 0;
  counter-reset: step;
  list-style: none
}

.feed-steps li {
  min-height: 138px;
  padding: 26px 22px;
  border: 1px solid var(--feed-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 7px 0 rgba(61,128,88,.07);
  font-size: 1.1rem;
  line-height: 1.4
}

.feed-steps li:before {
  counter-increment: step;
  content: '0' counter(step);
  display: block;
  margin-bottom: 12px;
  font-weight: 800;
  color: var(--feed-green)
}

.feed-videos {
  padding-top: 42px
}

.feed-videos>p {
  max-width: 650px;
  color: #59655c
}

.feed-video-grid {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 14px;
  margin-top: 28px
}

.feed-video-grid figure {
  margin: 0;
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--feed-line);
  box-shadow: 0 8px 22px rgba(36,53,42,.07)
}

.feed-video-grid video {
  display: block;
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  background: #e9e8e0
}

.feed-video-grid figcaption {
  padding: 12px 13px;
  font-size: .82rem;
  font-weight: 600;
  color: #465248
}

.feed-form-wrap {
  padding-top: 52px;
  padding-bottom: 92px
}

.feed-form-wrap form {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
  max-width: 980px;
  padding: clamp(22px,4vw,46px);
  border: 1px solid var(--feed-line);
  border-radius: 28px;
  background: var(--feed-paper);
  box-shadow: 0 20px 50px rgba(36,53,42,.09)
}

.feed-form-wrap form>label,.feed-form-wrap fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--feed-ink);
  font-weight: 700
}

.feed-form-wrap fieldset {
  grid-column: 1/-1
}

.feed-form-wrap legend {
  margin-bottom: 10px;
  font-size: 1.05rem;
  font-weight: 800
}

.feed-form-wrap input:not([type=radio]):not([type=checkbox]),.feed-form-wrap select,.feed-form-wrap textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid #d4d1c7;
  border-radius: 12px;
  background: #fff;
  color: var(--feed-ink);
  font: inherit;
  font-weight: 400;
  outline: none;
  transition: border-color .2s,box-shadow .2s
}

.feed-form-wrap textarea {
  min-height: 108px;
  resize: vertical
}

.feed-form-wrap input:focus,.feed-form-wrap select:focus,.feed-form-wrap textarea:focus {
  border-color: var(--feed-green);
  box-shadow: 0 0 0 4px rgba(61,128,88,.15)
}

.feed-form-wrap fieldset>label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 8px 8px 0;
  padding: 12px 15px;
  border: 1px solid #d9d5c8;
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
  cursor: pointer
}

.feed-form-wrap fieldset>label:has(input:checked) {
  border-color: var(--feed-green);
  background: #ecf5e7;
  box-shadow: inset 0 0 0 1px var(--feed-green)
}

.feed-form-wrap input[type=radio] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--feed-green)
}

.feed-form-wrap fieldset>label:last-child {
  display: inline-flex;
  align-items: center
}

.feed-form-wrap fieldset>label:last-child input {
  width: 112px;
  min-height: 42px;
  padding: 8px;
  margin-left: 5px
}

.feed-form-wrap .feed-consent {
  grid-column: 1/-1;
  grid-template-columns: 20px 1fr;
  align-items: start;
  font-size: .9rem;
  line-height: 1.45
}

.feed-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--feed-green)
}

.feed-consent a {
  color: var(--feed-green)
}

#feed-form button {
  grid-column: 1/-1;
  justify-self: start;
  min-height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--feed-green);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 0 #28603e;
  transition: transform .15s,box-shadow .15s
}

#feed-form button:hover {
  transform: translateY(2px);
  box-shadow: 0 6px 0 #28603e
}

#feed-result {
  grid-column: 1/-1;
  margin: 0;
  color: var(--feed-green);
  font-weight: 700
}

@media (max-width: 900px) {
  .feed-video-grid {
    grid-template-columns: repeat(3,minmax(0,1fr))
  }
}

@media (max-width: 640px) {
  .feed-hero,.feed-steps,.feed-videos,.feed-form-wrap {
    padding-left: 16px;
    padding-right: 16px
  }
  .feed-hero {
    border-radius: 20px
  }
  .feed-hero:after {
    right: -8px;
    top: 0
  }
  .feed-steps ol {
    grid-template-columns: 1fr
  }
  .feed-steps li {
    min-height: 0
  }
  .feed-video-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory
  }
  .feed-video-grid figure {
    flex: 0 0 72%;
    scroll-snap-align: start
  }
  .feed-form-wrap form {
    grid-template-columns: 1fr;
    padding: 22px 18px;
    border-radius: 20px
  }
  .feed-form-wrap fieldset>label {
    display: flex;
    margin-right: 4px
  }
  .feed-form-wrap form>label {
    grid-column: 1
  }
  .feed-form-wrap .feed-consent {
    grid-column: 1/-1
  }
  #feed-form button {
    width: 100%;
    justify-self: stretch
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto!important;
    transition: none!important
  }
}

.feed-form-intro {
  max-width: 720px;
  margin: 0 0 34px
}

.feed-form-intro h2 {
  margin: 8px 0 12px
}

.feed-form-intro p {
  line-height: 1.55
}

.feed-form-intro__note {
  display: inline-block;
  margin: 4px 0 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eaf4df;
  color: var(--feed-green);
  font-weight: 700;
  font-size: .9rem
}

.feed-form-wrap form {
  display: block;
  max-width: 1120px;
  padding: 44px
}

.feed-form__section {
  display: grid;
  grid-template-columns: 56px minmax(0,1fr);
  gap: 18px;
  padding: 0 0 30px;
  margin: 0 0 30px;
  border-bottom: 1px solid var(--feed-line)
}

.feed-form__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 50%;
  background: var(--feed-green);
  color: #fff;
  font-weight: 800
}

.feed-form__section h3,.feed-form__section legend {
  margin: 0 0 13px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--feed-ink)
}

.feed-form__section label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: var(--feed-ink)
}

.feed-choice-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px
}

.feed-choice-grid>label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid #d9d5c8;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  text-align: center
}

.feed-choice-grid>label:has(input:checked) {
  border-color: var(--feed-green);
  background: #ecf5e7;
  box-shadow: inset 0 0 0 1px var(--feed-green)
}

.feed-choice-grid>label>input[type=radio] {
  position: absolute;
  opacity: 0;
  pointer-events: none
}

.feed-choice-grid>.feed-choice-custom {
  justify-content: flex-start;
  gap: 8px
}

.feed-choice-grid>.feed-choice-custom input[type=number] {
  min-width: 0;
  min-height: 40px;
  padding: 7px 8px;
  border-radius: 9px
}

.feed-choice-grid--messenger {
  grid-template-columns: repeat(3,minmax(0,1fr))
}

.feed-form__grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,.8fr);
  gap: 18px
}

.feed-form__comment {
  grid-column: 1/-1
}

.feed-form__footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px
}

.feed-form__footer .feed-consent {
  grid-column: auto
}

.feed-form__footer #feed-result {
  grid-column: 1/-1
}

.feed-form__footer button {
  grid-column: auto;
  min-width: 260px;
  min-height: 62px;
  font-size: 1.05rem
}

.feed-form__footer button span {
  margin-left: 10px;
  font-size: 1.35em
}

@media (max-width: 800px) {
  .feed-form-wrap form {
    padding: 32px
  }
  .feed-choice-grid {
    grid-template-columns: repeat(2,minmax(0,1fr))
  }
  .feed-form__grid {
    grid-template-columns: 1fr
  }
  .feed-form__footer {
    grid-template-columns: 1fr
  }
  .feed-form__footer button {
    width: 100%;
    grid-column: 1
  }
  .feed-form__footer .feed-consent {
    grid-column: 1
  }
}

@media (max-width: 520px) {
  .feed-form-wrap form {
    padding: 22px 18px
  }
  .feed-form__section {
    grid-template-columns: 1fr;
    gap: 12px
  }
  .feed-form__number {
    width: 36px;
    height: 36px;
    font-size: .85rem
  }
  .feed-choice-grid,.feed-choice-grid--messenger {
    grid-template-columns: 1fr
  }
  .feed-choice-grid>label {
    min-height: 56px
  }
  .feed-choice-grid>.feed-choice-custom {
    display: grid;
    grid-template-columns: auto 1fr
  }
  .feed-form-intro {
    margin-bottom: 24px
  }
}

.feed-hero h1 span {
  display: block;
  color: var(--feed-green);
  font-size: 1.1em
}

.feed-selected-cat {
  display: grid;
  grid-template-columns: 116px minmax(0,1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid #c9dfc2;
  border-radius: 18px;
  background: #f4faef
}

.feed-selected-cat img {
  display: block;
  width: 116px;
  height: 116px;
  border-radius: 13px;
  object-fit: cover;
  background: #e5e7df
}

.feed-selected-cat h3 {
  font-size: 1.6rem;
  margin: 3px 0
}

.feed-selected-cat p {
  margin: 0;
  color: #526158
}

.feed-selected-cat__eyebrow {
  font-size: .8rem!important;
  font-weight: 800;
  color: var(--feed-green)!important;
  text-transform: uppercase;
  letter-spacing: .04em
}

.feed-change-cat {
  margin-top: 12px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--feed-green);
  font: inherit;
  font-weight: 800;
  cursor: pointer
}

.feed-cat-select.is-hidden {
  display: none
}

.kgorod-cat-detail__actions .kgv-btn-feed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eaf4df!important;
  color: #285c3c!important
}

@media (max-width: 520px) {
  .feed-selected-cat {
    grid-template-columns: 1fr
  }
  .feed-selected-cat img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3
  }
}

.feed-form__section--contacts {
  margin-bottom: 20px;
  padding-bottom: 22px
}

.feed-form__footer {
  grid-template-columns: minmax(0,1fr) auto;
  gap: 24px;
  padding-top: 2px
}

.feed-form__footer .feed-consent {
  display: grid;
  grid-template-columns: 22px minmax(0,1fr);
  gap: 12px;
  align-items: start;
  max-width: 620px;
  margin: 0;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer
}

.feed-consent input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-content: center;
  width: 21px;
  height: 21px;
  margin: 1px 0 0;
  border: 2px solid var(--feed-green);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: background .18s,border-color .18s,box-shadow .18s
}

.feed-consent input[type=checkbox]::before {
  content: '';
  width: 9px;
  height: 5px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg) scale(0);
  transition: transform .15s
}

.feed-consent input[type=checkbox]:checked {
  background: var(--feed-green)
}

.feed-consent input[type=checkbox]:checked::before {
  transform: rotate(-45deg) scale(1)
}

.feed-consent input[type=checkbox]:hover {
  border-color: #28603e;
  box-shadow: 0 0 0 4px rgba(61,128,88,.12)
}

.feed-consent input[type=checkbox]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255,217,85,.9),0 0 0 6px var(--feed-green)
}

.feed-consent a {
  color: var(--feed-green);
  font-weight: 700;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color .15s,text-decoration-color .15s
}

.feed-consent a:hover {
  color: #28603e;
  text-decoration-color: currentColor
}

.feed-form__footer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 284px;
  min-height: 58px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--feed-yellow);
  color: var(--feed-ink);
  box-shadow: 0 7px 0 #d8b62d;
  font-weight: 800
}

.feed-form__footer button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(126,100,0,.2),0 7px 0 #d8b62d
}

.feed-form__footer button:disabled {
  cursor: wait;
  transform: none;
  background: #e4ddba;
  color: #8b8569;
  box-shadow: none
}

.feed-form__footer button.is-loading::before {
  content: '';
  width: 17px;
  height: 17px;
  border: 2px solid rgba(36,53,42,.28);
  border-top-color: var(--feed-ink);
  border-radius: 50%;
  animation: feed-spin .7s linear infinite
}

@keyframes feed-spin {
  to {
    transform: rotate(360deg)
  }
}

@media (max-width: 800px) {
  .feed-form__footer {
    grid-template-columns: 1fr;
    gap: 16px
  }
  .feed-form__footer .feed-consent {
    max-width: none
  }
  .feed-form__footer button {
    width: 100%;
    min-height: 56px
  }
}

@media (max-width: 520px) {
  .feed-form__section--contacts {
    margin-bottom: 14px;
    padding-bottom: 16px
  }
  .feed-form__footer {
    gap: 14px
  }
  .feed-form__footer .feed-consent {
    gap: 11px;
    font-size: .88rem
  }
}
