:root {
  --color-main: #82A642;
  --color-secondary:  #CEEBF4;
  --color-background: #D9F7FA;
  --color-inner: #D9F7FA;
  --color-icon: #263B9F;
  --color-doc: #7D9BC1;
}

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

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  background: var(--color-background);
  font-size: 1em;
  font-weight: 400;
  font-family: 'Montserrat', sans-serif;
}

a {
  text-decoration: none;
}

/* Header */
.header {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  padding: 24px 0;
  display: flex;
  align-items: center;
}

.header--inner {
  position: relative;
  background: var(--color-secondary);
}

.header__block {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__action {
  display: flex;
  align-items: center;
  gap: 24px;
}

@media screen and (max-width: 996px) {
  .header__action {
    display: none;
  }
}


/* LOGO */
.logo {
  position: relative;
}

.logo--header {
  width: 10%;
  height: 10%;
  object-fit: contain; /* НЕ дає картинці спотворитись */
  display: block;
}

/* Info Header */
.info-header {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  list-style: none;
  gap: 6px;
}

.info-header a {
  color: var(--color-inner);
}

.info-header a.phone {
  font-size: 1.125em;
  font-weight: 500;
}

/* Info Header Other */
.info-header-other {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  list-style: none;
  gap: 6px;
}

.info-header-other a {
  color: var(--color-icon);
}

.info-header-other a.phone {
  font-size: 1.125em;
  font-weight: 500;
}

/* Cover */
.cover {
  width: 100%;
  display: flex;
  align-items: center;
  background: #212121;
  height: 80dvh;
  background: url(../img/cover-background.png) no-repeat;
  background-size: cover;
  background-position: center;
}

.cover__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 700px;
}

.cover__content h1 {
  font-size: 2.5em;
  color: var(--color-inner);
  line-height: 1.5;
  font-weight: 700;
}

.cover__content p {
  font-size: 1.25em;
  color: var(--color-inner);
  line-height: 1.5;
}

@media screen and (max-width: 996px) {
  .cover {
    height: 100dvh;
  }

  .cover__content h1 {
    font-size: 2em;
    line-height: 1.25;
  }

  .cover__content p {
    font-size: 1.125em;
    color: var(--color-inner);
  }
}

/* Container */
.container {
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 1320px;
  width: 100%;
  padding: 0 24px;
}

.container__row {
  display: flex;
  justify-content: space-between;
}

.container__col {
  width: 100%;
}

.container__col--auto {
  width: auto;
}

.container__col--center {
  display: flex;
  justify-content: center;
}

.container__col--right {
  display: flex;
  justify-content: flex-end;
}

@media screen and (max-width: 996px) {
  .container__row {
    flex-direction: column;
  }
}

/* BTN */
.btn {
  position: relative;
  border-radius: 2px;
  border: none;
  height: 48px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.5s;
  white-space: nowrap;
}

.btn--main {
  background: var(--color-main);
  color: var(--color-inner);
  font-size: 1em !important;
}

.btn--secondary {
  border: 1px solid var(--color-inner);
  background: none;
  color: var(--color-inner);
}

.btn--doc {
  border: 1px solid var(--color-doc);
  background: none;
  color: var(---color-doc);
  font-size: 0.87em !important;
}
/* Section */

.section {
  padding: 80px 0;
}

.section-market {
  padding: 40px 0;
}

.section--last {
  padding: 0 0 80px 0;
}

/* Content */
.content {
  position: relative;
  display: flex;
  flex-direction: column;
}

.content__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.content__head .title {
  font-size: 2em;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
  color: var(--color-icon);
}

.content__head .subtitle {
  color: #7D9BC1;
  font-weight: 500;
  text-align: center;
}

.content__components {
  margin-top: 64px;
}

.content__components_head {
  margin-top: 0;
  padding-top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.content__components_head_left {
  text-align: left;
}
.content__components_head_right {
  text-align: right;
}
.content a {
  color: var(--color-icon);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}

.content a:hover {
  text-decoration: none;
}


.content p {
  margin-bottom: 16px;
}

.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
  font-size: 1.5em;
  margin: 24px 0;
}

.content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.content ul li {
  position: relative;
  padding-left: 20px;
}

.content ul li:before {
  content: "›";
  position: absolute;
  left: 0;
  line-height: 40%;
  font-size: 2em;
  font-weight: 600;
  color: var(--color-main)
}

@media screen and (max-width: 996px) {
  .content__head .title {
    font-size: 1.5em;
  }
  .content__components {
    margin-top: 40px;
  }
}

/* Grid */
.grid {
  display: grid;
  gap: 40px;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid__item {
  position: relative;
  display: flex;
  align-items: center;
}

.grid__item--right {
  justify-content: flex-end;
}

@media screen and (max-width: 996px) {
  .grid {
    gap: 24px;
  }

  .grid--2 {
    grid-template-columns: repeat(1, 1fr);
  }

  .grid--3 {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Card */
.card {
  background: #ffffff;
  padding: 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-radius: 4px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;
  width: 100%;
}

.card--center {
  align-items: center;
}

.card--market {
  align-items: center;
  box-sizing: border-box;
}

.card--inline {
  justify-content: center;
}

.card .title {
  font-weight: 600;
  font-size: 1.25em;
  margin: 0;
  color: var(--color-icon);
}

.card .list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--color-icon);
}

.card .list li {
  position: relative;
  padding-left: 20px;
  display: flex;
  align-items: center;
}

.card .list li:before {
  content: "›";
  position: absolute;
  left: 0;
  font-size: 2em;
  font-weight: 600;
  color: #7D9BC1
}

.card .price {
  display: flex;
  align-items: flex-end;
  line-height: 1;
  gap: 2px;
  color: var(--color-icon);
}

.card .price__value {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--color-icon);
}

.card .price__currency {
  font-size: 1em;
  font-weight: 500;
}

.card .icon {
  font-size: 5em;
  color: #7D9BC1;
  opacity: 1;
}

.card .description {
  font-size: 1em;
}

.card .description--center {
  text-align: center;
  color: var(--color-icon);
}

@media screen and (max-width: 760px) {
  .card {
    padding: 24px;
  }
}

/* Contacts */
.contacts {
  display: flex;
  justify-content: space-between;
}

.contacts__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25em;
  font-weight: 500;
}

.contacts__item .icon {
  font-size: 1.25em;
  opacity: 1;
  color: var(--color-main);
}

.contacts__item .btn--main {
  font-size: 0.75em !important;
  color: #ffffff;
}

.contacts__item a {
  color: var(--color-icon);
}

@media screen and (max-width: 1200px) {
  .contacts {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
}

@media screen and (max-width: 760px) {
  .contacts__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1em;
    font-weight: 500;
  }
}

/* buyer */
.buyer {
  display: flex;
  justify-content: space-between;
}

.buyer__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25em;
  font-weight: 500;
}

.buyer__item .icon {
  font-size: 1.25em;
  opacity: 1;
  color: var(--color-main);
}

.buyer__item .btn--main {
  font-size: 0.75em !important;
  color: #ffffff;
}

.buyer__item a {
  color: var(--color-icon);
}

@media screen and (max-width: 1200px) {
  .buyer {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
}

@media screen and (max-width: 760px) {
  .buyer__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1em;
    font-weight: 500;
  }
}

/* Footer */
.footer {
  display: flex;
  align-items: center;
  background: var(--color-secondary);
  padding: 40px 0;
  width: 100%;
  color: var(--color-icon);
}

.footer__block {
  display: flex;
}

.company-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;
  font-size: 0.75em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.nav a {
  color: var(--color-icon);
  font-size: 0.875em;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}

.nav a:hover {
  text-decoration: none;
}

@media screen and (max-width: 996px) {
  .footer {
    justify-content: center;
  }
  .footer__block {
    width: 100%;
    justify-content: center;
  }
  .company-info {
    align-items: center;
  }
  .nav {
    flex-direction: column;
    gap: 12px;
  }
}

@media screen and (max-width: 760px) {
  .footer {
    flex-direction: column;
  }
}
.content__components_headtext {
    margin: auto;
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}
.headtext_left {
    text-align: left;
}
.headtext_right {
    text-align: right;
}



/* Accordion (details/summary) styles */
.accordion-list { gap: 16px; display: flex; flex-direction: column; }

/* Прибрати дефолтну маркерну іконку */
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__summary::marker { content: none; }

/* Summary як кнопка з заголовком */
.accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 12px 16px;
  background:  var(--color-secondary);
  border-radius: 8px;
  border: 1px solid var(--color-icon);
  font-weight: 700;
  font-size: 1.1rem;
  transition: background .15s ease;
  user-select: none;
}

/* Якщо в summary є h4, прибираємо його стандартні відступи */
.accordion__summary h4.title {
  margin: 0;
  font-size: 1cm;
  line-height: 1;
  font-family: 'Montserrat', sans-serif;
}

/* Hover/focus */
.accordion__summary:hover,
.accordion__summary:focus {
  background: var(--color-secondary);
  outline: none;
}

/* Стрілочка (псевдоелемент) */
.accordion__summary::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 10px solid var(--color-icon);
  border-bottom: 10px solid var(--color-icon);
  transform: rotate(-45deg);
  transition: transform .25s ease;
  margin-left: 12px;
}

/* Поворот стрілки при відкритті */
details[open] > .accordion__summary::after {
  transform: rotate(45deg);
}

/* Тіло акордеону — плавне ховання/показ */
.accordion__body {
  overflow: hidden;
  padding: 0 8px;
  border-left: 1px solid rgba(0,0,0,0.04);
  border-right: 1px solid rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  border-radius: 0 0 8px 8px;
  max-height: 0;
  transition: max-height .35s ease, padding .25s ease;
}

/* Коли відкрито */
details[open] .accordion__body {
  padding: 12px 8px 16px;
  max-height: 2000px; /* достатньо високе для більшості вмістів */
}

/* Тонка адаптація для внутрішнього grid */
.accordion__body .content__components { padding: 0; }

/* Мобільні корективи */
@media (max-width: 640px) {
  .accordion__summary { font-size: 1rem; padding: 10px; }
  .accordion__body { padding: 10px 6px 14px; }
}
