.ag-product {
  padding: 28px 0 55px;
}

.ag-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.ag-product h1,
.ag-product h2,
.ag-product h3,
.ag-product p {
  margin-top: 0;
}

.ag-product__title {
  margin: 0 0 26px;
  color: #243537;
  font-size: 31px;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .2px;
}

/* TOP */
.ag-product-top {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(250px, .82fr) minmax(300px, .9fr);
  gap: 28px;
  align-items: start;
}

.ag-gallery {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
}

.ag-gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ag-gallery__thumb {
  width: 72px;
  height: 82px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #ddd;
  background: #f5f5f5;
  cursor: pointer;
}

.ag-gallery__thumb.is-active {
  border: 2px solid #ffb000;
}

.ag-gallery__thumb img,
.ag-gallery__main > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ag-gallery__main > img {
  aspect-ratio: 4 / 5;
  background: #f1f1f1;
}

.ag-gallery__hint {
  margin-top: 9px;
  color: #687476;
  font-size: 12px;
}

.ag-product-info {
  padding-top: 2px;
}

.ag-specs {
  margin: 0 0 22px;
  padding: 0 0 19px;
  border-bottom: 1px solid #ddd;
}

.ag-specs > div {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
}

.ag-specs dt {
  flex: 0 0 auto;
  margin: 0;
  color: #f5a900;
  font-weight: 700;
}

.ag-specs dd {
  margin: 0;
  font-weight: 600;
}

.ag-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 5px;
}

.ag-price__prefix,
.ag-price__unit {
  font-size: 20px;
  font-weight: 700;
}

.ag-price strong {
  color: #ffb000;
  font-size: 43px;
  line-height: 1;
}

.ag-price-note {
  max-width: 360px;
  margin-bottom: 28px !important;
  color: #687476;
  font-size: 13px;
}

.ag-product-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ag-product a {
  color: #315b86;
}

.ag-product a:hover {
  text-decoration: none;
}

/* QUOTE */

.ag-quote {
    padding: 24px 24px 22px;
    background: #f3f3f3;
}

.ag-quote h2 {
    margin: 0 0 6px;
    color: #182729;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.ag-quote__intro {
    margin: 0 0 20px !important;
    color: #687476;
    font-size: 14px;
    line-height: 1.5;
}

.ag-quote label {
    display: block;
    margin: 16px 0 7px;
    color: #182729;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
}

.ag-quote em {
    color: #e1442e;
    font-style: normal;
}


/* обычные поля */

.ag-quote input,
.ag-quote select,
.ag-quote textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cbd0d1;
    border-radius: 0;
    outline: none;
    background: #fff;
    color: #263638;
    font: inherit;
}

.ag-quote input:focus,
.ag-quote select:focus,
.ag-quote textarea:focus {
    border-color: #ffb000;
}

.ag-quote textarea {
    min-height: 82px;
    resize: vertical;
}


/* размер: ширина × высота */

.ag-size-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.ag-size-fields > span {
    text-align: center;
    color: #263638;
    font-weight: 700;
}


/*
 * jquery.main.js автоматически оборачивает input[type=number]
 * в .number-holder и добавляет кнопки +/-.
 *
 * В форме расчёта они нам не нужны.
 */

.ag-quote .number-holder {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

.ag-quote .number-holder input[type="number"] {
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 10px 12px;
}

/* полностью скрываем старые +/- только внутри нашей формы */

.ag-quote .number-holder .button-inc,
.ag-quote .number-holder .button-dec {
    display: none !important;
}


/* убираем нативные стрелки number */

.ag-quote input[type="number"]::-webkit-inner-spin-button,
.ag-quote input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.ag-quote input[type="number"] {
    -moz-appearance: textfield;
}


/* select */

.ag-quote select {
    cursor: pointer;
}


/* кнопка */

.ag-quote .ag-btn--primary {
    width: 100%;
    min-height: 48px;
    margin-top: 16px;
    padding: 11px 15px;
    border: 1px solid #ffb000;
    background: #ffb000;
    color: #172527;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.ag-quote .ag-btn--primary:hover {
    background: #f2a600;
    border-color: #f2a600;
}


/* подпись под кнопкой */

.ag-quote__response {
    margin: 9px 0 15px !important;
    color: #7b8586;
    font-size: 12px;
    line-height: 1.4;
}


/* вторичная кнопка */
.ag-quote .ag-btn--secondary {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 46px;
    padding: 10px 15px;

    border: 1px solid #315b86;
    background: #fff;
    color: #315b86 !important;

    font-size: 14px;
    text-align: center;
    text-decoration: none;
}

.ag-quote .ag-btn--secondary:hover {
    background: #315b86;
    color: #fff !important;
    text-decoration: none;
}
/* TRUST */
.ag-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 22px;
  border: 1px solid #ddd;
  background: #fff;
}

.ag-trust__item {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  border-right: 1px solid #ddd;
}

.ag-trust__item:last-child {
  border-right: 0;
}

.ag-trust__icon {
    display: block;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    object-fit: contain;
}

/* STEPS */
.ag-order-steps {
  margin-top: 12px;
  padding: 20px 22px;
  background: #f4f4f4;
}

.ag-order-steps h2,
.ag-ties h2,
.ag-description h2,
.ag-benefits h2 {
  color: #111;
  font-size: 21px;
}

.ag-order-steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.ag-order-steps article {
  display: flex;
  gap: 12px;
}

.ag-step-number {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #858b8c;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.ag-order-steps h3 {
  margin-bottom: 4px;
  color: #111;
  font-size: 14px;
}

.ag-order-steps p {
  margin-bottom: 0;
  color: #596466;
  font-size: 13px;
}

/* TIES */
.ag-ties {
  margin-top: 22px;
}

.ag-ties__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.ag-ties article img {
  width: 100%;
  aspect-ratio: 1.7 / 1;
  display: block;
  object-fit: cover;
  background: #f1f1f1;
}

.ag-ties h3 {
  margin: 8px 0 0;
  color: #111;
  font-size: 13px;
}

.ag-ties p {
  margin-bottom: 0;
  color: #263638;
  font-size: 12px;
}

.ag-ties__more {
  margin-top: 20px;
  text-align: center;
}

.ag-ties__more a {
  color: #263638;
}

/* CONSULTATION */
.ag-consultation {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 20px;
  align-items: center;
  margin-top: 28px;
  padding: 20px 26px;
  background: #fff9e9;
}

.ag-consultation__icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 4px solid #ffb000;
  border-radius: 50%;
  color: #ffb000;
  font-size: 29px;
  font-weight: 700;
}

.ag-consultation h2 {
  margin-bottom: 2px;
  color: #111;
  font-size: 20px;
}

.ag-consultation p {
  margin-bottom: 0;
  color: #596466;
}

.ag-btn--outline {
  min-width: 245px;
  border-color: #ffb000;
  background: #fff;
  color: #182729 !important;
}

/* DETAILS */
.ag-details {
  margin-top: 28px;
}

.ag-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid #d7d7d7;
  white-space: nowrap;
}

.ag-tabs a {
  position: relative;
  padding: 12px 24px 14px 0;
  margin-right: 28px;
  color: #394547;
  text-decoration: none;
}

.ag-tabs a.is-active {
  color: #111;
  font-weight: 700;
}

.ag-tabs a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 78px;
  height: 4px;
  background: #ffb000;
}

.ag-details__content {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, .85fr);
  gap: 55px;
  padding-top: 28px;
}

.ag-description p {
  max-width: 720px;
  color: #354244;
  line-height: 1.65;
}

.ag-benefits {
  padding: 20px 22px;
  background: #f4f4f4;
}

.ag-benefits h2 {
  margin-bottom: 12px;
  font-size: 18px;
}

.ag-benefits ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ag-benefits li {
  position: relative;
  margin: 8px 0;
  padding-left: 27px;
  color: #596466;
}

.ag-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -2px;
  color: #ffb000;
  font-size: 20px;
  font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 1020px) {
  .ag-product-top {
    grid-template-columns: 1.1fr .9fr;
  }

  .ag-quote {
    grid-column: 1 / -1;
  }

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

  .ag-trust__item:nth-child(2) {
    border-right: 0;
  }

  .ag-trust__item:nth-child(-n+2) {
    border-bottom: 1px solid #ddd;
  }

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

@media (max-width: 700px) {
  .ag-product {
    padding-top: 20px;
  }

  .ag-container {
    width: min(100% - 28px, 1180px);
  }

  .ag-product__title {
    font-size: 25px;
  }

  .ag-product-top,
  .ag-details__content {
    grid-template-columns: 1fr;
  }

  .ag-gallery {
    grid-template-columns: 1fr;
  }

  .ag-gallery__thumbs {
    order: 2;
    flex-direction: row;
    overflow-x: auto;
  }

  .ag-gallery__thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 70px;
  }

  .ag-gallery__main {
    order: 1;
  }

  .ag-trust,
  .ag-order-steps__grid {
    grid-template-columns: 1fr;
  }

  .ag-trust__item {
    border-right: 0;
    border-bottom: 1px solid #ddd;
  }

  .ag-trust__item:last-child {
    border-bottom: 0;
  }

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

  .ag-consultation {
    grid-template-columns: 50px 1fr;
  }

  .ag-consultation .ag-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .ag-tabs a {
    margin-right: 20px;
  }
}

@media (max-width: 420px) {
  .ag-ties__grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px 10px;
  }

  .ag-size-fields {
    grid-template-columns: 1fr 14px 1fr;
  }
}

/* JS states */
.ag-ties article {
  padding: 5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}

.ag-ties article:hover,
.ag-ties article.is-selected {
  border-color: #ffb000;
  background: #fffaf0;
}

.ag-quote input.is-error,
.ag-quote select.is-error,
.ag-quote textarea.is-error {
  border-color: #d94332;
}

.ag-btn--primary.is-success {
  background: #263638;
  border-color: #263638;
  color: #fff;
}

.ag-modal-open {
  overflow: hidden;
}

.ag-image-modal {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px;
  background: rgba(0, 0, 0, .78);
}

.ag-image-modal img {
  max-width: min(1000px, 92vw);
  max-height: 90vh;
  object-fit: contain;
  background: #fff;
}

.ag-image-modal__close {
  position: fixed;
  top: 18px;
  right: 25px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 42px;
  line-height: 42px;
  cursor: pointer;
}
.ag-tab-panel {
    display: none;
}

.ag-tab-panel.is-active {
    display: block;
}

.ag-tab-text {
    padding: 28px 0 10px;
    max-width: 850px;
}

.ag-tab-text h2 {
    margin: 0 0 18px;
    color: #111;
    font-size: 21px;
}

.ag-tab-text p {
    margin: 0 0 15px;
    color: #354244;
    line-height: 1.65;
}


/* Характеристики */

.ag-characteristics {
    max-width: 700px;
    margin: 0;
}

.ag-characteristics > div {
    display: grid;
    grid-template-columns: 230px 1fr;
    border-bottom: 1px solid #e2e2e2;
}

.ag-characteristics dt,
.ag-characteristics dd {
    margin: 0;
    padding: 11px 14px;
}

.ag-characteristics dt {
    background: #f4f4f4;
    font-weight: 600;
}

.ag-characteristics dd {
    background: #fff;
}


@media (max-width: 700px) {

    .ag-characteristics > div {
        grid-template-columns: 1fr;
    }

    .ag-characteristics dt {
        padding-bottom: 4px;
    }

    .ag-characteristics dd {
        padding-top: 4px;
    }
}

/* CERTIFICATES */

.ag-tab-text--wide {
    max-width: none;
}

.ag-certificates-slider {
    position: relative;
    margin: 5px -9px 0;
    padding: 0 45px;
}

.ag-certificate {
    padding: 0 9px;
}

.ag-certificate a {
    display: block;
    height: 310px;
    padding: 10px;
    border: 1px solid #ddd;
    background: #f7f7f7;
}

.ag-certificate img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #fff;
}


/* стрелки Slick */

.ag-certificates-slider .slick-prev,
.ag-certificates-slider .slick-next {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 34px;
    height: 50px;
    padding: 0;
    border: 0;
    background: transparent;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 0;
}

.ag-certificates-slider .slick-prev {
    left: 4px;
}

.ag-certificates-slider .slick-next {
    right: 4px;
}

.ag-certificates-slider .slick-prev::before,
.ag-certificates-slider .slick-next::before {
    content: "";
    position: absolute;
    top: 15px;
    width: 18px;
    height: 18px;
    border-top: 2px solid #555;
    border-right: 2px solid #555;
}

.ag-certificates-slider .slick-prev::before {
    left: 10px;
    transform: rotate(-135deg);
}

.ag-certificates-slider .slick-next::before {
    right: 10px;
    transform: rotate(45deg);
}

.ag-certificates-slider .slick-prev:hover::before,
.ag-certificates-slider .slick-next:hover::before {
    border-color: #ffb000;
}

.ag-certificates-slider .slick-disabled {
    opacity: .25;
    cursor: default;
}


@media (max-width: 700px) {

    .ag-certificates-slider {
        padding: 0 34px;
    }

    .ag-certificate a {
        height: 280px;
    }

}
/* DELIVERY */

.ag-delivery-list {
    max-width: 950px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.ag-delivery-list li {
    position: relative;
    margin-bottom: 14px;
    padding-left: 25px;
    color: #354244;
    line-height: 1.6;
}

.ag-delivery-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffb000;
}


/* Транспортные компании */

.ag-delivery-companies {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 900px;
}

.ag-delivery-company {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 105px;
    padding: 15px 25px;
    border: 1px solid #e1e1e1;
    background: #fff;
}

.ag-delivery-company img {
    display: block;
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
}


@media (max-width: 700px) {

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

    .ag-delivery-company {
        min-height: 90px;
        padding: 12px 18px;
    }

}


@media (max-width: 420px) {

    .ag-delivery-companies {
        grid-template-columns: 1fr;
    }

}   

/* PRODUCT ICONS */

.ag-product-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 26px;
}

.ag-product-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: #315b86;
    text-decoration: none;
    line-height: 1.35;
}

.ag-product-links a:hover {
    color: #ffb000;
}

.ag-product-links__icon {
    display: block;
    width: 33px;
    height: 33px;
    flex: 0 0 33px;
    object-fit: contain;
}


/* TRUST ICONS */

.ag-trust__icon {
    display: block;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    object-fit: contain;
}

.product-section {
    margin: 0 0 22px;
    padding: 0 0 19px;
    border-bottom: 1px solid #ddd;
    color: #263638;
    font-size: 14px;
    line-height: 1.75;
}

.product-section > span {
    color: #f5a900;
    font-weight: 700;
}

.product-section .prod-stock {
    display: inline;
    margin-left: 5px;
    color: #263638;
    font-weight: 600;
}
.ag-gallery__hint {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    color: #687476;
    font-size: 12px;
}

.ag-gallery__hint-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}
.ag-order-steps article {
    position: relative;
}

/* стрелка между этапами */
.ag-order-steps article:not(:last-child)::after {
    content: "›";
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);

    color: #6a6e6e;
    font-size: 68px;
    font-weight: 300;
    line-height: 1;
} 
.ag-consultation .ag-btn--outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 245px;
    min-height: 46px;
    padding: 11px 24px;

    border: 1px solid #ffb000;
    background: #fff;

    color: #182729 !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;

    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.ag-consultation .ag-btn--outline:hover {
    background: #ffb000;
    color: #182729 !important;
    text-decoration: none;
}

.ag-quote .ag-privacy {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 14px 0 18px;
    font-size: 12px;
    line-height: 1.4;
    color: #777;
}

.ag-quote .ag-privacy input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    flex: 0 0 16px;
    width: 16px;
    min-width: 16px;
    max-width: 16px;
    height: 16px;
    min-height: 16px;
    padding: 0;
    margin: 1px 0 0;
    border: 1px solid #aaa;
    border-radius: 2px;
    background: #fff;
    cursor: pointer;
    position: relative;
}

.ag-quote .ag-privacy input[type="checkbox"]:checked {
    border-color: #f5a000;
    background: #f5a000;
}

.ag-quote .ag-privacy input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ag-quote .ag-privacy label {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 400;
    color: #777;
    cursor: pointer;
}

.ag-quote .ag-privacy a {
    font-weight: 400;
    color: #555;
    text-decoration: underline;
}

.ag-quote .ag-privacy a:hover {
    color: #f5a000;
}

.ag-tab-text ul,
.ag-tab-text ol {
    margin: 16px 0;
    padding-left: 24px;
}

.ag-tab-text ul {
    list-style: none;
}

.ag-tab-text ol {
    list-style-position: outside;
}

.ag-tab-text li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 4px;
    line-height: 1.55;
}

.ag-tab-text li:last-child {
    margin-bottom: 0;
}

.ag-tab-text ul > li {
    padding-left: 14px;
}

.ag-tab-text ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f47b20;
}

.ag-tab-text ul ul,
.ag-tab-text ul ol,
.ag-tab-text ol ul,
.ag-tab-text ol ol {
    margin: 8px 0;
}

.ag-tab-text ol > li::marker {
    font-weight: 600;
    color: #555;
}