:root {
  color-scheme: dark;
  --bg: #6d8b74;
  --bg-deep: #5f7d66;
  --ink: #f7f4ee;
  --muted: rgba(247, 244, 238, 0.72);
  --chip: #4e6b56;
  --card: #7e9b84;
  --card-deep: #6f8d76;
  --plus: #3c5844;
  --shadow: 0 14px 28px rgba(36, 58, 42, 0.18);
  --font: "Outfit", system-ui, sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: #567563;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

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

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

p,
h1,
h2,
h3 {
  margin: 0;
}

::selection {
  background: var(--plus);
  color: #fff;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

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

.skip-link:focus {
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  left: 12px;
  top: 12px;
  z-index: 80;
  padding: 8px 12px;
  background: var(--plus);
}

.phone {
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 18px 108px;
  background: linear-gradient(180deg, #73967a 0%, var(--bg) 28%, #648272 100%);
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}

.brand {
  min-width: 0;
}

.hello {
  color: var(--muted);
  font-size: 0.95rem;
}

.who {
  margin-top: 2px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bell,
.search button,
.add {
  display: grid;
  place-items: center;
  background: var(--chip);
  color: #fff;
  box-shadow: var(--shadow);
}

.bell {
  width: 54px;
  height: 54px;
  border-radius: 16px;
}

.bell svg,
.search button svg,
.dock svg,
.save svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search {
  display: flex;
  order: 3;
  flex: 1 1 100%;
  gap: 12px;
  margin-top: 22px;
}

.search input {
  flex: 1;
  min-width: 0;
  height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: var(--chip);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.search input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.search button {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 16px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin: 26px 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs button {
  position: relative;
  flex: 0 0 auto;
  padding: 8px 10px 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.98rem;
  font-weight: 500;
}

.tabs button[aria-selected="true"] {
  color: #fff;
  font-weight: 700;
}

.tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 10px;
  bottom: 4px;
  width: 22px;
  height: 3px;
  border-radius: 99px;
  background: #fff;
}

h1,
.promo h2,
.profile h2 {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.plant-card {
  position: relative;
  padding: 12px 12px 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, #8aa78f, var(--card-deep));
  box-shadow: var(--shadow);
}

.plant-card.is-hidden {
  display: none;
}

.save {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, 0.8);
}

.save.is-on {
  color: #fff;
}

.save.is-on svg {
  fill: currentColor;
}

.plant-photo {
  height: 150px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
}

.plant-photo img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.plant-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.plant-row h3 {
  font-size: 1rem;
  font-weight: 600;
}

.plant-row p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.92rem;
}

.add {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 12px;
  font-size: 1.4rem;
  line-height: 1;
}

.empty {
  margin-top: 18px;
  color: var(--muted);
}

.promo,
.profile {
  margin-top: 34px;
}

.promo p,
.profile p {
  margin-top: 8px;
  max-width: 28ch;
  color: var(--muted);
  line-height: 1.45;
}

.promo-call {
  display: inline-flex;
  margin-top: 14px;
  min-height: 42px;
  padding: 0 16px;
  align-items: center;
  border-radius: 14px;
  background: var(--plus);
  font-weight: 600;
}

.profile a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.fine {
  margin-top: 16px;
  font-size: 0.85rem;
}

.dock {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 30;
  display: flex;
  justify-content: space-around;
  width: min(394px, calc(100% - 36px));
  transform: translateX(-50%);
  padding: 12px 8px 14px;
  border-radius: 26px 26px 18px 18px;
  background: #4d6854;
  box-shadow: 0 10px 30px rgba(28, 46, 32, 0.28);
}

.dock button {
  width: 48px;
  height: 40px;
  color: rgba(255, 255, 255, 0.55);
}

.dock button[aria-current="page"],
.dock button.is-on {
  color: #fff;
}

.order-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: end center;
  background: rgba(28, 46, 32, 0.45);
}

.order-drawer.open {
  display: grid;
}

.order-panel {
  width: min(430px, 100%);
  padding: 22px 18px 28px;
  border-radius: 24px 24px 0 0;
  background: #f6f3ec;
  color: #1d2a22;
}

.order-panel h2 {
  font-size: 1.6rem;
}

.picked {
  margin: 4px 0 14px;
  color: #5d6b62;
}

.order-panel label {
  display: block;
  margin-bottom: 10px;
  color: #5d6b62;
  font-size: 0.82rem;
}

.order-panel input,
.order-panel textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #1d2a22;
}

.order-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.send,
.close-order,
.order-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--plus);
  color: #fff;
  font-weight: 600;
}

.order-actions a,
.close-order {
  background: #e4efe6;
  color: #244033;
}

.close-order {
  margin-top: 12px;
}

.order-success {
  display: none;
  margin: 8px 0;
  line-height: 1.5;
}

.order-panel.is-sent form {
  display: none;
}

.order-panel.is-sent .order-success {
  display: block;
}

@media (min-width: 980px) {
  body {
    display: block;
    background: linear-gradient(180deg, #73967a 0%, #648272 100%);
  }

  .phone {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    min-height: 100vh;
    padding: 36px 0 48px;
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) 300px;
    grid-template-areas:
      "dock top side"
      "dock tabs side"
      "dock main side";
    column-gap: 28px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .top {
    grid-area: top;
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    align-items: center;
    gap: 24px;
  }

  .search {
    order: 0;
    margin-top: 0;
    flex: unset;
  }

  .tabs {
    grid-area: tabs;
    margin-top: 18px;
  }

  main {
    grid-area: main;
  }

  .side {
    grid-area: side;
    position: sticky;
    top: 36px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .promo,
  .profile {
    margin-top: 0;
    padding: 22px 18px;
    border-radius: 22px;
    background: rgba(78, 107, 86, 0.55);
  }

  .promo p,
  .profile p {
    max-width: none;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .dock {
    position: sticky;
    top: 36px;
    left: auto;
    bottom: auto;
    z-index: 30;
    transform: none;
    grid-area: dock;
    width: 72px;
    height: fit-content;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 16px 8px;
    border-radius: 24px;
  }

  .order-drawer {
    place-items: center;
  }

  .order-panel {
    width: min(440px, calc(100% - 48px));
    border-radius: 24px;
  }
}

@media (min-width: 1200px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .plant-photo,
  .plant-photo img {
    height: 180px;
  }
}
