/* RINGLY brand — #10492a, #b8e451, Poppins (+ Nata Sans when available) */
:root {
  --color-green-dark: #10492a;
  --color-green-dark-hover: #0d3a22;
  --color-green-lime: #b8e451;
  --color-green-lime-hover: #a5d03f;
  --color-white: #ffffff;
  --color-bg: #f6f9f4;
  --color-text: #10492a;
  --color-text-muted: #3d5c48;
  --color-border: #dce8d8;

  --font-heading: "Poppins", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow: 0 12px 40px rgba(16, 73, 42, 0.12);
  --header-h: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1140px, calc(100% - 2rem));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
}

.btn--lg {
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--color-green-lime);
  color: var(--color-green-dark);
  border-color: var(--color-green-lime);
}

.btn--primary:hover {
  background: var(--color-green-lime-hover);
  border-color: var(--color-green-lime-hover);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--outline:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border-color: transparent;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn__icon {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-green-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo__img {
  display: block;
  object-fit: contain;
  object-position: left center;
}

.logo__img--header {
  height: 52px;
  width: auto;
  max-width: min(280px, 48vw);
}

.logo__img--footer {
  height: 44px;
  width: auto;
  max-width: 220px;
}

.footer__logo {
  display: inline-block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  color: var(--color-white);
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.92;
  transition: opacity 0.2s, color 0.2s;
}

.nav a:hover {
  opacity: 1;
  color: var(--color-green-lime);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switch {
  display: flex;
  margin-left: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  overflow: hidden;
}

.lang-switch__btn {
  border: 0;
  background: transparent;
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  text-transform: lowercase;
}

.lang-switch__btn.is-active {
  background: var(--color-green-lime);
  color: var(--color-green-dark);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.menu-toggle__bar {
  display: block;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--color-green-dark) 0%, #0a3520 100%);
  color: var(--color-white);
  padding: 3.5rem 0 4.5rem;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__title {
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero__text {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 34ch;
  margin-bottom: 1.75rem;
}

.hero__image {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.25));
}

.icon {
  width: 26px;
  height: 26px;
  color: var(--color-green-dark);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section--alt {
  background: var(--color-bg);
}

.section--dark {
  background: var(--color-green-dark);
  color: var(--color-white);
}

.section--cta {
  padding-bottom: 5rem;
}

.section__title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.section__title--left {
  text-align: left;
  margin-bottom: 0.75rem;
}

.section__title--light {
  color: var(--color-white);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--color-green-lime);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-green-lime), #d4f08a);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

/* Devices */
.devices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.devices p {
  color: var(--color-text-muted);
  max-width: 42ch;
}

.device-stack {
  position: relative;
  height: 260px;
}

.device {
  position: absolute;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  background: var(--color-white);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
}

.device__icon {
  width: 40px;
  height: 40px;
  color: var(--color-green-dark);
}

.device__label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.2;
}

.device--laptop {
  width: 200px;
  height: 140px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.device--laptop .device__icon {
  width: 52px;
  height: 52px;
}

.device--phone {
  width: 100px;
  height: 120px;
  left: 4%;
  bottom: 0;
  background: var(--color-green-dark);
  border-color: var(--color-green-dark);
}

.device--phone .device__icon,
.device--phone .device__label {
  color: var(--color-green-lime);
}

.device--tablet {
  width: 120px;
  height: 130px;
  right: 2%;
  top: 8%;
  background: var(--color-bg);
}

/* Industries */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.industry-card {
  text-align: center;
  padding: 1.5rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  transition: transform 0.2s, box-shadow 0.2s;
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.industry-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  background: rgba(16, 73, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.industry-card__icon .icon {
  width: 30px;
  height: 30px;
}

.industry-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

/* Pricing */
.pricing-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 1.5rem;
  align-items: stretch;
  max-width: 900px;
  margin-inline: auto;
}

.price-card {
  position: relative;
  background: var(--color-white);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.price-card--compact {
  padding: 1.25rem 1.1rem;
  border: 2px solid var(--color-green-lime);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.price-card__name {
  font-size: 1.35rem;
  text-align: center;
}

.price-card--compact .price-card__name {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.price-card__price {
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.price-card__amount {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-green-dark);
}

.price-card--compact .price-card__amount {
  font-size: 1.45rem;
}

.price-card__period {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.15rem;
}

.price-card__sub {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
}

/* Calculator */
.price-calculator {
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
}

.price-calculator__head {
  margin-bottom: 1.25rem;
}

.price-calculator__title {
  color: var(--color-white);
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.price-calculator__desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.price-calculator__body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

.price-calculator__field label,
.price-calculator__label {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.price-calculator__stepper {
  display: flex;
  align-items: center;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stepper-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--color-bg);
  color: var(--color-green-dark);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.stepper-btn:hover {
  background: var(--color-green-lime);
}

.price-calculator__stepper input {
  flex: 1;
  min-width: 0;
  border: 0;
  text-align: center;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-green-dark);
  padding: 0.5rem;
  -moz-appearance: textfield;
}

.price-calculator__stepper input::-webkit-outer-spin-button,
.price-calculator__stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calc-tabs {
  display: flex;
  gap: 0.5rem;
}

.calc-tabs__btn {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--color-white);
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.calc-tabs__btn:hover {
  border-color: var(--color-green-lime);
}

.calc-tabs__btn.is-active {
  background: var(--color-green-lime);
  color: var(--color-green-dark);
  border-color: var(--color-green-lime);
  font-weight: 600;
}

.price-calculator__result {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  text-align: center;
}

.price-calculator__result-label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.price-calculator__result-value {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-green-dark);
}

.price-calculator__result-detail {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.price-calculator__monthly {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-green-dark);
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border);
}

.price-card__list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  flex: 1;
  font-size: 0.88rem;
}

.price-card__list--compact {
  margin-bottom: 1rem;
  font-size: 0.78rem;
}

.price-card__list--compact li {
  padding: 0.3rem 0;
}

.price-card__list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.price-card__list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--color-green-lime);
}

/* Partners — utel.uz uslubida */
.partners-section {
  background: var(--color-white);
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.partners-section .section__title {
  margin-bottom: 2.75rem;
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem 3.5rem;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.partners-logos__img {
  display: block;
  flex: 0 1 auto;
  height: 52px;
  width: auto;
  max-width: min(200px, 28vw);
  object-fit: contain;
  object-position: center;
  filter: grayscale(100%) brightness(0.35) contrast(1.05);
  opacity: 0.9;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.partners-logos__img:hover {
  filter: grayscale(0%) brightness(1) contrast(1);
  opacity: 1;
  transform: scale(1.03);
}

@media (min-width: 900px) {
  .partners-logos {
    gap: 2rem 4rem;
  }

  .partners-logos__img {
    height: 56px;
    max-width: 220px;
  }
}

@media (max-width: 600px) {
  .partners-logos {
    gap: 2rem 2rem;
  }

  .partners-logos__img {
    height: 44px;
    max-width: 42vw;
  }
}

/* CTA */
.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}

.cta-box p {
  color: var(--color-text-muted);
  margin: 0;
}

/* Footer */
.footer {
  background: var(--color-green-dark);
  color: var(--color-white);
  padding: 3rem 0 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__tagline {
  margin: 0.75rem 0 0;
  opacity: 0.8;
  font-size: 0.95rem;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer__nav a:hover {
  color: var(--color-green-lime);
}

.footer__social {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer__social a:hover {
  color: var(--color-green-lime);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.25rem;
  font-size: 0.88rem;
  opacity: 0.85;
}

.footer__legal {
  display: flex;
  gap: 1.25rem;
}

.footer__legal a:hover {
  color: var(--color-green-lime);
}

/* Chat FAB */
.chat-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--color-green-lime);
  color: var(--color-green-dark);
  box-shadow: 0 8px 24px rgba(16, 73, 42, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  transition: transform 0.2s;
}

.chat-fab:hover {
  transform: scale(1.06);
}

/* Mobile nav */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .pricing-layout {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    background: var(--color-green-dark);
    padding: 1.5rem;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero__grid,
  .devices {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
  }

  .hero__image {
    max-width: 320px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    flex-direction: column;
    text-align: center;
  }

  .section__title--left {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .features-grid,
  .industries-grid {
    grid-template-columns: 1fr;
  }

  .header__actions .btn--primary.btn--sm {
    display: none;
  }

  .lang-switch {
    display: none;
  }
}

/* Feedback modal */
body.modal-open {
  overflow: hidden;
}

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s;
}

.feedback-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.feedback-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 30, 18, 0.65);
  backdrop-filter: blur(4px);
}

.feedback-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(90vh, 640px);
  overflow-y: auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}

.feedback-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.feedback-modal__close:hover {
  background: var(--color-green-lime);
}

.feedback-modal__title {
  font-size: 1.35rem;
  color: var(--color-green-dark);
  margin: 0 2rem 0.35rem 0;
}

.feedback-modal__subtitle {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.feedback-modal__error {
  margin: 0 0 1rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  background: #fde8e8;
  color: #9b1c1c;
  font-size: 0.85rem;
}

.feedback-form.is-hidden {
  display: none;
}

.feedback-form__field {
  margin-bottom: 1rem;
}

.feedback-form__field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.feedback-form__field input,
.feedback-form__field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feedback-form__field input:focus,
.feedback-form__field textarea:focus {
  outline: none;
  border-color: var(--color-green-lime);
  box-shadow: 0 0 0 3px rgba(184, 228, 81, 0.35);
}

.feedback-form__field textarea {
  resize: vertical;
  min-height: 88px;
}

.feedback-modal__success {
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.feedback-modal__success p {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  color: var(--color-green-dark);
  font-weight: 500;
}

.feedback-modal__success .btn {
  min-width: 140px;
}
